{"$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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"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 24, match/switch 17, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":955}}}],"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 22, match/switch 13, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":1072}}}],"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 22, boolean chains 3, match/switch 2 (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 17, match/switch 5, 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 15, match/switch 8 (nesting depth added 13). 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":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 14, match/switch 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":454}}}],"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 15, 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":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5b417fd0bab2b91771221e57e4edd11730be68e25c2b3675d92c1f4aa9dadb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/bumblebee.ex: FileTooLong \u2014 1074 significant lines (blank, comment-only and punctuation-only lines excluded). 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: bumblebee/layers.ex: FileTooLong \u2014 1072 significant lines (blank, comment-only and punctuation-only lines excluded). 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: text/generation.ex: FileTooLong \u2014 751 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"FileTooLong: layers/transformer.ex: FileTooLong \u2014 723 significant lines (blank, comment-only and punctuation-only lines excluded). 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/transformer.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e8562ce5fac1b83c1f9d7a9c18c61feb3b731b4fe38e03916a678cfa248d3b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Layers: TooManyMethods \u2014 36 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/layers.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca6139bfca8f674c6963aa55df4150e498d814d4659d8defa32ba55d3856798"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text/mbart.ex: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"TooManyMethods: Bumblebee: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"026658d1bf91cb58bda18e13c8880a03e216ab65b2d41d72ff3ebe9a1d68b3ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text/bart.ex: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"TooManyMethods: Shared: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type 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: audio/speech_to_text_whisper.ex: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"Duplicated block (23 lines \u00D7 7): lib/bumblebee/text/gemma.ex:272-294 | lib/bumblebee/text/gemma3_text.ex:308-330 | lib/bumblebee/text/llama.ex:276-298 | lib/bumblebee/text/mistral.ex:259-281 | lib/bumblebee/text/phi3.ex:300-322 | lib/bumblebee/text/qwen3.ex:278-300 | lib/bumblebee/text/smollm3.ex:350-372 \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 5 separate duplicated blocks between them, totalling at least 71 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":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20133a1fcf776f716ed2028fe3810fb2bf9a865ceebfeb4eba0bf61031d0c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/bumblebee/text/gpt_neo_x.ex:280-302 | lib/bumblebee/text/phi.ex:286-308 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_neo_x.ex"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"231ff2f0fd977fc4d9d2b261fed771f38d5ea0a6ce0248cf6d7b2d21ee297884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): lib/bumblebee/text/bart.ex:457-477 | lib/bumblebee/text/blenderbot.ex:309-329 | lib/bumblebee/text/m2m100.ex:308-328 \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 8 separate duplicated blocks between them, totalling at least 108 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":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"82647054256513e7d05d1f2164f1a50ec5bfac5a7d389c1b9aadee95474d89ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:325-343 | lib/bumblebee/text/gpt_big_code.ex:329-347 \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 8 separate duplicated blocks between them, totalling at least 115 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":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c10e65b9939e3c18dcf0517c6b7920b4dc97fe260b10b3c4c384406b98fb7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/bumblebee/text/bert.ex:440-457 | lib/bumblebee/text/blip_text.ex:244-261 | lib/bumblebee/text/roberta.ex:392-409 \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 4 separate duplicated blocks between them, totalling at least 51 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":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb3184dc3b591372ad466e1427498cc28adc51e792f79197b8fa6eeeb393a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:181-198 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:211-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 5 separate duplicated blocks between them, totalling at least 61 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":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"355b4bad01033a313eb4dc208238b542d5a14555410b67c08e50af1c4ddf1913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/bumblebee/text/bart.ex:360-377 | lib/bumblebee/text/mbart.ex:357-374 \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 10 separate duplicated blocks between them, totalling at least 129 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":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"543538d55617990fc4e5bcd21e6a80ed8d542e47bb8cdb47c03a6129aa45cd4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/bumblebee/layers/transformer.ex:437-453 | lib/bumblebee/layers/transformer.ex:482-498 \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/transformer.ex"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcd7570a57e4d3a64547342ae8eba58f3b4d17d4e814aeab2201e801edf46a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:362-378 | lib/bumblebee/text/gpt_big_code.ex:366-382 \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 8 separate duplicated blocks between them, totalling at least 115 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":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71481106140a9043dfda0a14a1ea63a4a96c88d4e3611fdb15ec90f6fd3b3a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/bumblebee/text/text_generation.ex:32-48 | lib/bumblebee/text/translation.ex:29-45 \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 3 separate duplicated blocks between them, totalling at least 45 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/text_generation.ex"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c285acd1f89938265633388529f209da5e6674c544918a4e8c784ac744a9ba48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/bumblebee/text/phi.ex:246-261 | lib/bumblebee/text/phi3.ex:260-275 | lib/bumblebee/text/smollm3.ex:289-304 \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 3 separate duplicated blocks between them, totalling at least 39 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/phi.ex"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e28d26aaa882efe46cfc2780ffc777181d3e72a9cae7a88c770ba7df47b4a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:222-237 | lib/bumblebee/text/gpt_big_code.ex:226-241 \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 8 separate duplicated blocks between them, totalling at least 115 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":"57f3d19348070531e578f5b476e973b73f5b36e6e832b90b6033709067bc2138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:244-259 | lib/bumblebee/text/gpt_big_code.ex:248-263 \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 8 separate duplicated blocks between them, totalling at least 115 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":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"4133efe0ece9c0423de276ef432231fbb29fdd2eb427c3cc76cd385fe272695e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/text/text_classification.ex:10-25 | lib/bumblebee/vision/image_classification.ex:14-29 \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/text/text_classification.ex"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d339304073955dfcd66b3c43c33922f104e9ed685ee7456ea1a304e4d178fb96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee.ex:844-859 | lib/bumblebee.ex:1239-1254 \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":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"4543ffd49e85240b519edf1a795306aff937020abeca27a51bd8e5a1bfe86c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8): lib/bumblebee/text/gemma.ex:214-228 | lib/bumblebee/text/gemma3_text.ex:250-264 | lib/bumblebee/text/llama.ex:218-232 | lib/bumblebee/text/mistral.ex:201-215 | lib/bumblebee/text/phi.ex:206-220 | lib/bumblebee/text/phi3.ex:220-234 | lib/bumblebee/text/qwen3.ex:220-234 | lib/bumblebee/text/smollm3.ex:248-262 \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 5 separate duplicated blocks between them, totalling at least 71 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":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5bf0e01f1f4e974c8ba7f7ec93a1eb3fadef5cae386db30006cf96c3a1923e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): lib/bumblebee/multimodal/layout_lm.ex:230-244 | lib/bumblebee/text/bert.ex:250-264 | lib/bumblebee/text/distilbert.ex:214-228 | lib/bumblebee/text/mpnet.ex:226-240 | lib/bumblebee/text/roberta.ex:238-252 \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 5 separate duplicated blocks between them, totalling at least 61 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":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb7e7ac2780dc1f2dcca2b7f2e768723f9133e896876ded186757cefb1c46b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): lib/bumblebee/text/albert.ex:285-301 | lib/bumblebee/text/bert.ex:299-315 | lib/bumblebee/text/distilbert.ex:268-284 | lib/bumblebee/text/mpnet.ex:275-289 | lib/bumblebee/text/roberta.ex:287-303 \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 5 separate duplicated blocks between them, totalling at least 64 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":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db50b016266d4501e4da383bd371f404d70d1f903d62c14c4b61797e6720121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/bumblebee/multimodal/layout_lm.ex:208-222 | lib/bumblebee/text/bert.ex:228-242 | lib/bumblebee/text/distilbert.ex:192-206 \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 5 separate duplicated blocks between them, totalling at least 61 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":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df0f46abff39589bbfc26f09eb9e6fc91dbce1d209400aaaa8373320e096324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/bumblebee/multimodal/layout_lm.ex:293-308 | lib/bumblebee/text/distilbert.ex:317-331 | lib/bumblebee/text/mpnet.ex:320-334 \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 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"563f463daa8e38aadc0e9f24a728ef13d5b857c4af9db27519ebd38430df62cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/diffusion/controlnet.ex:209-223 | lib/bumblebee/diffusion/unet_2d_conditional.ex:202-216 \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 3 separate duplicated blocks between them, totalling at least 39 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":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"33047dd29031c7cfa3c7639b42317dce6f13f78c07ea4fa1dd7e8e8e54f6b381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/bert.ex:475-489 | lib/bumblebee/text/roberta.ex:428-442 \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 11 separate duplicated blocks between them, totalling at least 139 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":"053b724fa81b2f1aa1c7138b551553d505de480826ff6b042a2eee278ef35340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/bert.ex:516-530 | lib/bumblebee/text/roberta.ex:469-483 \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 11 separate duplicated blocks between them, totalling at least 139 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":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6186bbede0131b1c37a89801af664c932ccce81fc43034424927271b4623b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:201-215 | lib/bumblebee/text/gpt_big_code.ex:205-219 \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 8 separate duplicated blocks between them, totalling at least 115 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":"b58883a534adc8e0cd811e572f4fd3c6c1248b4e82dc23cab4ee8a85a250905d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/m2m100.ex:359-373 | lib/bumblebee/text/mbart.ex:524-538 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/m2m100.ex\u0060 and \u0060lib/bumblebee/text/mbart.ex\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/m2m100.ex"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"06642af126631d8b2c9959b54a08d8e2c7733c06f170186c3c6c6cfb14bc325a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/m2m100.ex:479-493 | lib/bumblebee/text/mbart.ex:620-634 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/m2m100.ex\u0060 and \u0060lib/bumblebee/text/mbart.ex\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/m2m100.ex"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"8500af97f7fab83ec0223b58b525ad7e68b2bb35a832afb82cc8ac7bd8e79f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:211-225 | lib/bumblebee/text/modernbert.ex:243-257 \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/modernbert.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f96179c5d5cf8786764338e5763ebe1f55aecf93e321a9a6f865f476aa43d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): lib/bumblebee/text/cross_encoding.ex:18-31 | lib/bumblebee/text/question_answering.ex:14-27 | lib/bumblebee/text/text_classification.ex:22-35 | lib/bumblebee/text/text_embedding.ex:23-36 | lib/bumblebee/text/text_generation.ex:25-38 | lib/bumblebee/text/text_reranking_qwen3.ex:45-58 | lib/bumblebee/text/token_classification.ex:25-38 | lib/bumblebee/text/translation.ex:22-35 \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 3 separate duplicated blocks between them, totalling at least 37 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":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c53f9bde0189c80968f4b75c579c1f2871197863adc76214ffba5c817c673d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): lib/bumblebee/text/cross_encoding.ex:55-68 | lib/bumblebee/text/fill_mask.ex:75-88 | lib/bumblebee/text/question_answering.ex:70-83 | lib/bumblebee/text/text_classification.ex:62-75 | lib/bumblebee/text/text_embedding.ex:134-147 | lib/bumblebee/text/text_reranking_qwen3.ex:104-117 | lib/bumblebee/text/token_classification.ex:65-78 \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 3 separate duplicated blocks between them, totalling at least 37 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":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6995b020af36b9c57edc5fcd8563e48a884420ff3592d93c1f1968e943425f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): lib/bumblebee/audio/whisper.ex:321-334 | lib/bumblebee/text/bart.ex:480-493 | lib/bumblebee/text/blenderbot.ex:332-345 | lib/bumblebee/text/m2m100.ex:331-344 | lib/bumblebee/text/mbart.ex:496-509 | lib/bumblebee/text/t5.ex:358-371 \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 3 separate duplicated blocks between them, totalling at least 42 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":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d379b0ce1e2ffb56da403938a79a8eb62a2cf33916672bc0eb24da6464f5dfad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): lib/bumblebee/multimodal/layout_lm.ex:252-265 | lib/bumblebee/text/bert.ex:272-285 | lib/bumblebee/text/mpnet.ex:248-261 | lib/bumblebee/text/roberta.ex:260-273 | lib/bumblebee/text/smollm3.ex:311-324 \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 5 separate duplicated blocks between them, totalling at least 61 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":"ec8b026a5205cb481d365dc1a1492f020dcb99370d1240c0154249a340a12a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): lib/bumblebee/text/blenderbot.ex:435-448 | lib/bumblebee/text/m2m100.ex:465-478 | lib/bumblebee/text/mbart.ex:606-619 | lib/bumblebee/text/t5.ex:442-455 \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 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/blenderbot.ex"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20f62e929e37f83f8452a94a0ba9d38e1793a9e3834e9719cfccf7f75ae9de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/bumblebee/text/bart.ex:499-512 | lib/bumblebee/text/blenderbot.ex:351-364 | lib/bumblebee/text/mbart.ex:548-561 \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 8 separate duplicated blocks between them, totalling at least 108 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":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c0d042fc5a7ba7c9e1bc43f0623947d50a8f66eae855907fd4f850b519c11e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bumblebee/audio/whisper.ex:431-444 | lib/bumblebee/text/blenderbot.ex:404-417 \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 3 separate duplicated blocks between them, totalling at least 42 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":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1862ed189573362654dd1a3efd4ce2b42d73546c2e335a1c5451783a8235a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bumblebee/audio/whisper.ex:478-491 | lib/bumblebee/text/blenderbot.ex:452-465 \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 3 separate duplicated blocks between them, totalling at least 42 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":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"78be4380ae5a43cf610b04002510368bffe0a09ed1900b975e9173fd2b54abe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bumblebee/diffusion/controlnet.ex:341-354 | lib/bumblebee/diffusion/unet_2d_conditional.ex:266-279 \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 3 separate duplicated blocks between them, totalling at least 39 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":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0def017a59621f57b387fe9e112b9e58ba85d7dc872280d8b8391fa33719c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:316-329 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:372-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 5 separate duplicated blocks between them, totalling at least 61 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":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ee86a359a26dcfdd1e996f67b8ce75af7333be7dae8d14fee9040fd70aa3a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bumblebee/text/bart.ex:308-321 | lib/bumblebee/text/mbart.ex:305-318 \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 10 separate duplicated blocks between them, totalling at least 129 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":"f0bedb640ab060f4fd74ffa11b83c3e7930576345c78bf6c1280cdfaff00bced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bumblebee/text/text_generation.ex:65-78 | lib/bumblebee/text/translation.ex:63-76 \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 3 separate duplicated blocks between them, totalling at least 45 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/text_generation.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f46b1f7364220ac818b895858c5958964ffe191812ee4fd82440e7c4accbad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bumblebee/vision/image_classification.ex:26-39 | lib/bumblebee/vision/image_embedding.ex:21-34 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/image_classification.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"762df07704bf30cc4d742364370cbf8f0ee3e82fa1524e6558254ac1740e8d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): lib/bumblebee/text/bart.ex:583-595 | lib/bumblebee/text/blenderbot.ex:439-451 | lib/bumblebee/text/m2m100.ex:469-481 | lib/bumblebee/text/mbart.ex:610-622 \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 8 separate duplicated blocks between them, totalling at least 108 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":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bbdff918e57c9136057c56826ae10d454feaee66db9ba4a0c76fcc5ab4568b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/multimodal/layout_lm.ex:412-424 | lib/bumblebee/text/mpnet.ex:369-381 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/mpnet.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 75 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":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b2b6e90c83828e2a2d5abac6f6bd6e2fc80aa0149058b2c76f340094a8f870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/text/bart.ex:278-290 | lib/bumblebee/text/mbart.ex:275-287 \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 10 separate duplicated blocks between them, totalling at least 129 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":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6f02282dc4d1adcea78079a96859d2a099628cc3f7903cdcc9e17be38be285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/text/bart.ex:550-562 | lib/bumblebee/text/blenderbot.ex:396-408 \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 8 separate duplicated blocks between them, totalling at least 108 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":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb8cd87ac190cb19bce6fad721de8e5102dc701492a394875303fa01c44d2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/text/clip_text.ex:216-228 | lib/bumblebee/vision/clip_vision.ex:212-224 \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/text/clip_text.ex"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e80614530ac89d2180cec9e542495b5c881dfbf8ff9c25dffd4d65bbbbdfe86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/text/fill_mask.ex:58-70 | lib/bumblebee/text/text_classification.ex:44-56 \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 4 separate duplicated blocks between them, totalling at least 48 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/fill_mask.ex"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2123d40c5626e0b79200b62e5be14d028c965a0b9de270a46018e086ac49d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:392-404 | lib/bumblebee/text/modernbert_decoder.ex:331-343 \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 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8e01d47b74f16a8ff22a8f69193f2bfd725cec9783fc526b9b2978bd2ee66a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/text/t5.ex:413-425 | lib/bumblebee/text/t5.ex:470-482 \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/t5.ex"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cb7c02d5ae44994bbd5f335165a9866b61b3e7694c60a873a21a954f7e0722"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/vision/bit_featurizer.ex:104-116 | lib/bumblebee/vision/clip_featurizer.ex:93-105 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8da862b0e2185ae0d798d54ae086c93c2ea4799ae3e56aa2234d4230e81a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/vision/deit.ex:149-161 | lib/bumblebee/vision/vit.ex:137-149 \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 7 separate duplicated blocks between them, totalling at least 82 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":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5b23ad45c395ddf9c1c458ab899f763cdb195271e46a26faca51ea83b4d3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/vision/deit.ex:211-223 | lib/bumblebee/vision/vit.ex:165-177 \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 7 separate duplicated blocks between them, totalling at least 82 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":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ab918ffb837f47afbb34b956b21a9613367eb3f097ce02218e8befd87aa596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/vision/deit.ex:244-256 | lib/bumblebee/vision/vit.ex:198-210 \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 7 separate duplicated blocks between them, totalling at least 82 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":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"de352697aa66fbc82f598e9cbe22959cc48cba6402f6bea84f6b10243c8451d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/vision/deit.ex:311-323 | lib/bumblebee/vision/vit.ex:261-273 \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 7 separate duplicated blocks between them, totalling at least 82 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":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c71b1dceefbc75e07443c494278bffca0b783b78b143fc0ec1e0bb78b8c6fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): lib/bumblebee/text/gemma.ex:373-384 | lib/bumblebee/text/gemma3_text.ex:504-515 | lib/bumblebee/text/llama.ex:366-377 | lib/bumblebee/text/mistral.ex:351-362 | lib/bumblebee/text/phi3.ex:394-405 | lib/bumblebee/text/qwen3.ex:381-392 | lib/bumblebee/text/smollm3.ex:457-468 \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 5 separate duplicated blocks between them, totalling at least 71 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":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"e106e1241da26b2e358bf4c627d1ebda607e0894f1891adb6ce2f02e0d1c29ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): lib/bumblebee/text/fill_mask.ex:14-25 | lib/bumblebee/text/text_classification.ex:21-32 | lib/bumblebee/text/text_embedding.ex:22-33 | lib/bumblebee/text/token_classification.ex:24-35 \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 4 separate duplicated blocks between them, totalling at least 48 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/fill_mask.ex"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b0d091ddc36e115123599584d1a60dabba16682f5e5231dc6323b496f50692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/bumblebee/text/bart.ex:248-259 | lib/bumblebee/text/blenderbot.ex:218-229 | lib/bumblebee/text/mbart.ex:245-256 \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 8 separate duplicated blocks between them, totalling at least 108 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":"de9644a003fadb8473a8d17e717bab58d27f91d75ffc890d5cee59003e5c88dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/bumblebee/text/blenderbot.ex:392-403 | lib/bumblebee/text/m2m100.ex:350-361 | lib/bumblebee/text/mbart.ex:515-526 \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 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/blenderbot.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"44852626d39b1104c68ae99a1aa537c1987edbaf0a6a5ed61917d162e4370ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/audio/speech_to_text_whisper.ex:79-90 | lib/bumblebee/vision/image_to_text.ex:48-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":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d60f48d10a3399d9788c631cde20ac587f677366ae9212ab141ae3a003d82a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion/safety_checker.ex:72-83 | lib/bumblebee/multimodal/clip.ex:119-130 \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":"7a9f3bd97272e68d08cebe73b1e74d9e0020e8ec77d0eaca2ed75aaf4091a6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/text/distilbert.ex:346-357 | lib/bumblebee/text/mpnet.ex:349-360 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/distilbert.ex\u0060 and \u0060lib/bumblebee/text/mpnet.ex\u0060 as WHOLE FILES: this scan already matched 6 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. 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/distilbert.ex"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d622e420741d63b507bc634199b6b5346889ca4d714cd462d2380216ce76cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/text/gemma.ex:310-321 | lib/bumblebee/text/gemma3_text.ex:346-358 \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 5 separate duplicated blocks between them, totalling at least 71 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":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7165d109edf20dc9f541986a92750c5b982d65784ef7d6fa3c87d424594423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/text/gemma.ex:337-348 | lib/bumblebee/text/llama.ex:331-342 \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 5 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/gemma.ex"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4344545f45c453d487bb1a469d4f15e440df04ec2d3dbf611156fe0829126289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:265-276 | lib/bumblebee/text/gpt_big_code.ex:269-280 \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 8 separate duplicated blocks between them, totalling at least 115 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":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c24869879d607f5d28b2a777a53aec9907e1bddefcd7711c8c497e0352c3171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:403-414 | lib/bumblebee/text/gpt_big_code.ex:408-419 \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 8 separate duplicated blocks between them, totalling at least 115 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":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef212f91bb0815e75eba3b27283422b240233a7fd2bcbe8ad235d0c2e3829698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/text/mistral.ex:316-327 | lib/bumblebee/text/phi3.ex:357-368 \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 5 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/mistral.ex"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"81232d8bc593aa68c52e6dee52704d5740631ccdc034be7f5b5672560a13ce6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/vision/image_classification.ex:54-65 | lib/bumblebee/vision/image_embedding.ex:77-88 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/image_classification.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a81f7e46518a7fe877761469775134ee954da923f4efad1b004280317bb1e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): lib/bumblebee/text/bart.ex:387-397 | lib/bumblebee/text/blenderbot.ex:239-249 | lib/bumblebee/text/m2m100.ex:238-248 | lib/bumblebee/text/mbart.ex:384-394 | lib/bumblebee/text/t5.ex:289-299 \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 8 separate duplicated blocks between them, totalling at least 108 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":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3397f10f1a7779186bcce6b3992994f0ba4d23f9f07b3bebad55714e9f5c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/bumblebee/text/bert.ex:422-432 | lib/bumblebee/text/blip_text.ex:226-236 | lib/bumblebee/text/roberta.ex:374-384 \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 4 separate duplicated blocks between them, totalling at least 51 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":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc94a6068ddf8e6bc583c330128a6a55e413dff0f498b0a9b3e92af3a12161f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/bumblebee/vision/blip_featurizer.ex:58-68 | lib/bumblebee/vision/deit_featurizer.ex:72-82 | lib/bumblebee/vision/vit_featurizer.ex:58-68 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_featurizer.ex"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28f8290cc9e172afadfc2e0d0b4d79c210be09d504a049e97b19bd01b15fdf3"}},{"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/vit.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 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":"ffdf6bb47a85c24eccf07fb3a1b91e8bb4e13dba0cc381b333dce5b48b817d55"}},{"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 5 separate duplicated blocks between them, totalling at least 61 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":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"60568d5e0e652126b357d8150b403feff1f417413c9fdff1b6e9917c752c381d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/diffusion/vae_kl.ex:257-267 | lib/bumblebee/diffusion/vae_kl.ex:316-326 \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":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"697e814616b4e0f7f7f742888990856d3d6b4b3d8046b1b54d3280ee5c123f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:354-364 | lib/bumblebee/text/modernbert_decoder.ex:301-311 \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 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"296977d8bfe641219c273ce5d528d21369ffbb814c0ba4465ff9ee4a53265183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/text/text_classification.ex:93-103 | lib/bumblebee/vision/image_classification.ex:74-84 \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/text/text_classification.ex"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6991edacc570734a142c5660f353ab122c0c207abe5758ca1a2511a31af682ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/text/translation.ex:15-27 | lib/bumblebee/vision/image_to_text.ex:16-26 \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/text/translation.ex"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50a35c563e82955eb92ddb1083b5e9b4d210e55c0df619495f0bb0efc626bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/vision/blip_vision.ex:144-154 | lib/bumblebee/vision/clip_vision.ex:159-169 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db9f5a6422fca19d4edbd57dba6a5112c1b2a43fb5c62882128b133062bec60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/bumblebee/text/bart.ex:520-529 | lib/bumblebee/text/blenderbot.ex:371-380 | lib/bumblebee/text/m2m100.ex:410-419 | lib/bumblebee/text/mbart.ex:569-578 \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 8 separate duplicated blocks between them, totalling at least 108 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":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76b1bba052e27dcf878245dedc84c3fa600f561c027b156d224be897378eb54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/bumblebee/text/fill_mask.ex:84-93 | lib/bumblebee/text/text_embedding.ex:143-152 | lib/bumblebee/text/token_classification.ex:74-83 | lib/bumblebee/text/zero_shot_classification.ex:90-99 \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 3 separate duplicated blocks between them, totalling at least 36 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/fill_mask.ex"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a140abb1acb2fd161c2eac413328d91d6ff56d075870ecb92f6f3635eaa3eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/diffusion/controlnet.ex:367-376 | lib/bumblebee/diffusion/unet_2d_conditional.ex:292-301 \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 3 separate duplicated blocks between them, totalling at least 39 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":"4f0c5476745d890985e5d00ad71e998426541c01aa37835739ad2336377bea48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/text/bart.ex:332-341 | lib/bumblebee/text/mbart.ex:329-338 \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 10 separate duplicated blocks between them, totalling at least 129 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":"53bb92808cf1bb7fd06d5e0c674a0515e091555ff89b234abb9b787d29eeaf98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/text/llama.ex:334-343 | lib/bumblebee/text/smollm3.ex:430-439 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/llama.ex\u0060 and \u0060lib/bumblebee/text/smollm3.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 68 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":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ebd956b3fb4b31febf705649f3106686d906b3fc174b0450efb744d8cfbc79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:422-431 | lib/bumblebee/text/modernbert_decoder.ex:349-358 \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 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"00857bd2cbdea92141f77105f956ecb4b9e5803a4c1ca2be1577d2ad7b02d807"}},{"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 7 separate duplicated blocks between them, totalling at least 82 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":"162337b22a1809100f0434d36f470800d15d74560b108a064dcea266e2f4ff65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): lib/bumblebee/multimodal/layout_lm.ex:444-455 | lib/bumblebee/text/bert.ex:567-578 | lib/bumblebee/text/blip_text.ex:363-374 | lib/bumblebee/text/distilbert.ex:404-415 | lib/bumblebee/text/mpnet.ex:407-415 | lib/bumblebee/text/roberta.ex:520-531 \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 5 separate duplicated blocks between them, totalling at least 61 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":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb563c5185d2c7b9b46b8b53cfaa723b03c859a26d1907744194b1d48deb49db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/bumblebee/text/bert.ex:367-375 | lib/bumblebee/text/blip_text.ex:171-179 | lib/bumblebee/text/roberta.ex:318-327 \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 4 separate duplicated blocks between them, totalling at least 51 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":"c0b11508f8077761298947b84b2e0fbedbf1e5efb223a867f3de60176a5771ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/bumblebee/text/cross_encoding.ex:73-81 | lib/bumblebee/text/text_classification.ex:80-88 | lib/bumblebee/text/text_embedding.ex:152-160 \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 3 separate duplicated blocks between them, totalling at least 37 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":"ad8088eb64d8e11dbb540bcb4db480e028c2e221d90e17b249a7c38dec227fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/bumblebee/text/fill_mask.ex:103-111 | lib/bumblebee/text/text_classification.ex:88-96 | lib/bumblebee/text/zero_shot_classification.ex:112-120 \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 4 separate duplicated blocks between them, totalling at least 48 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/fill_mask.ex"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"696f133ccb9bfdeba0023215d3c7580f2e0a92fde5e04e843218593fb9f2f310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/bumblebee/vision/deit.ex:261-269 | 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/vit.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 82 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":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e190d197ce116387378d7e4578ae3af6dc15cdc163193f6fa8b36f79d20305a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/bumblebee/diffusion/layers/unet.ex:353-361 | lib/bumblebee/vision/dino_v2.ex:382-390 \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/layers/unet.ex"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"206e49f061b09aa765db7332d771152374e9e2055b9bf28a30db9b7797b60470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:242-250 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:272-281 \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 5 separate duplicated blocks between them, totalling at least 61 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":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4890ceeaa9598da607d46e1fad772fe2de636e0e4bf4c7fb959b9dfba98da59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/bumblebee/vision/bit_featurizer.ex:124-132 | lib/bumblebee/vision/clip_featurizer.ex:113-121 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ab8695982afece21293bbaf67fdd6b96f2136a60767b06d3cadaa3c8b1488d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/phoenix/image_classification.exs:84-91 | examples/phoenix/image_classification.exs:242-249 \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":"examples/phoenix/image_classification.exs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fba87439dd9205eca8467a75b4bff3a5513afebb7c53e3ac1f972d75ef8d171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/bumblebee/diffusion/layers/unet.ex:78-85 | lib/bumblebee/diffusion/layers/unet.ex:156-163 \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":"3af903beba96ec47813e5c82523ec826a48ce7d7b21e5aab8a4d0d6df9d31766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:295-302 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:337-344 \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 5 separate duplicated blocks between them, totalling at least 61 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":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1ed9b6d19d664e922261d2e5d92ec239b115bf1f8ec3d4ffb9a2de47fbd29f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:449-456 | lib/bumblebee/text/modernbert_decoder.ex:371-378 \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 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e74f3f281647927e57aa57aec25fe72b84a5a397681ae20b96646d7244c5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): lib/bumblebee/text/gemma.ex:253-260 | lib/bumblebee/text/gemma3_text.ex:289-296 | lib/bumblebee/text/gpt2.ex:302-308 | lib/bumblebee/text/gpt_big_code.ex:306-312 | lib/bumblebee/text/gpt_neo_x.ex:261-268 | lib/bumblebee/text/llama.ex:257-264 | lib/bumblebee/text/mistral.ex:240-247 | lib/bumblebee/text/modernbert_decoder.ex:212-218 | lib/bumblebee/text/phi.ex:267-274 | lib/bumblebee/text/phi3.ex:281-288 | lib/bumblebee/text/qwen3.ex:259-266 | lib/bumblebee/text/smollm3.ex:331-338 \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 5 separate duplicated blocks between them, totalling at least 71 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":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1c2b6316079b9a770b3fc1348f74ec2e1dc2ea3b35fe1ca85322a745405fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/bumblebee/text/albert.ex:372-378 | lib/bumblebee/text/bert.ex:496-502 | lib/bumblebee/text/roberta.ex:449-455 \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 11 separate duplicated blocks between them, totalling at least 139 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":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"206d1929d2a13ceaaf102e9cd6c914e2c986ccee2440b1d3fee238197d4ed3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/bumblebee/conversion/pytorch_loader.ex:142-148 | lib/bumblebee/conversion/pytorch_loader.ex:164-170 \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":"82bfb9b51d304cbf8e588d5f639a700738c5859ad6379140e786bcbcb1543609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/bumblebee/multimodal/layout_lm.ex:372-378 | lib/bumblebee/multimodal/layout_lm.ex:379-385 \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":"111161c725e57a0fe0eeb951ceb2a92ff983f2f2757daffb93fee1a23fc9edef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:264-270 | lib/bumblebee/text/nomic_bert.ex:148-154 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"5beea4f7fcef7e78ee3757fc083f7b21c1716f3536d962e4e51a8fbf3f08dafb"}},{"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:269-275 \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 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c3de31e34a66ebf4ddad6aad6b8b0212b3abe08841fd59be50e219479e122a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/bumblebee/layers.ex:429-437 | lib/bumblebee/layers.ex:482-487 \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":"6ecd2d35d91a186d1664c22588a074515edd7d8e90d98929f377672f53fbc511"}},{"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 3 separate duplicated blocks between them, totalling at least 34 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/text_reranking_qwen3.ex"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"717e26af29c1b20dbe59b87893b16e0b24c639a58abd4d42e637447674915d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): lib/bumblebee/multimodal/layout_lm.ex:277-281 | lib/bumblebee/text/bert.ex:409-413 | lib/bumblebee/text/distilbert.ex:304-308 | lib/bumblebee/text/modernbert.ex:267-271 | lib/bumblebee/text/mpnet.ex:308-312 | lib/bumblebee/text/nomic_bert.ex:151-155 | lib/bumblebee/text/roberta.ex:361-365 \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 5 separate duplicated blocks between them, totalling at least 61 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":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68828e603d7059789f82c304e34d99dbff5d8b1d96ace98e5a2c7956779132f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/bumblebee.ex: lib/bumblebee.ex changed 2 times in last 90 days, max complexity 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72fbf7deaa48b18e03c600ced417a2819744016eeb885ec138f7a00fb99f7fe"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 5 significant file(s) lose their only recent owner: lib/bumblebee/text/t5.ex, lib/bumblebee/text/bert.ex, lib/bumblebee/text/gpt2.ex, lib/bumblebee/text/phi3.ex, lib/bumblebee/text/llama.ex. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ddc203705a18328503fd9edab741f996d0f8dc0da9d526924da201152254062e"}},{"ruleId":"D19","level":"note","message":{"text":"The Getting started section links to a video announcement but does not mention how to run single-file examples locally without Livebook.: Add a brief \u0022Local quickstart\u0022 note for readers who want to try Bumblebee in their Phoenix app without deploying to Livebook."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4b7e13ba6d671281624a3dc2cb81271452c47e3e7e44e608276d3c1ee9b2d8"}},{"ruleId":"D19","level":"note","message":{"text":"The Installation section mentions configuring Nx with EXLA as the default backend but does not explain how to verify that it is working.: Add a short \u0022Verify installation\u0022 snippet showing an example prediction run after setup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"debb42c0a76e7f3a0b154907e8fb9a7124450affd1c017732fcac3356dad3495"}},{"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":"c9d19a7971369a96070a4e5d3de60988bec587c82627a102177e02f9a595f406"},"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"}}]},{"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":"d671c33b97faa0897a57b3c9cbe19d4316ba30429217cf6ae9a6a0c2973a6b96"},"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"}}]},{"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":"be92eca9b9d662198ef138c41575565ab98b73f4524dbc3d1357a0ff8b4dbc6a"},"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"}}]},{"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":"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/text/m2m100.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5679acf36f907ef68322bb378d3668845126e0071ff1c8ec17b373f6aa2e5f70"}},{"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/audio/whisper.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfaeff7ef13a0b65a37a75505d370816e3eea21a210d90356f1da64116ad05cd"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 18 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (21 orphaned of 94 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"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 100% of the time (13 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) 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."},"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) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f52f3d240c70179a63d8b36bb6af8c1aa2dfb638f3e67e506c1e1145082f80"}},{"ruleId":"D38","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":"a24571b1a84bc606940cf2e89ba836d6032008c8a0a5284d2faf5500369a148b"}},{"ruleId":"D38","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":"76997f6f800861a02d6e015add78631ef804feaab4e28eac349fda9ba179fca8"}},{"ruleId":"D38","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":"57939e6c2a896e506b5494220c2e6e138c4761ec6a7fe1550f76e72ca62793c8"}},{"ruleId":"D38","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":"4bd70d5df8878c490fc398a02f478747bae80ad7c77e86bbad25f39707281e23"}}],"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":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":7,"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."]}]}