{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Google.convert_single_message_to_gemini (cyclomatic 25): Google.convert_single_message_to_gemini has cyclomatic complexity 25 (threshold 15). 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. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":2868}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff48f2e9b8eacc71a4668a05d8a41b9134d576ad4db04f26685aea19f7e1b28"}},{"ruleId":"D1","level":"warning","message":{"text":"Context.file_content_part (cyclomatic 24): Context.file_content_part has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d955153b43b23c06406e10edf3e45d3409dfab1f52fd9478311906da7bd35d"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesAPI.decode_single_stream_event (cyclomatic 23): ResponsesAPI.decode_single_stream_event has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e515fc1a7cbb2d8c1fb64c84190ee78a0abb4dca970df67db6905f95f53b74cc"}},{"ruleId":"D1","level":"warning","message":{"text":"Billing.meters (cyclomatic 22): Billing.meters has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/billing.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0685a9270e6aeb4094620de427b21f4d3765a6bff87a32a3f643f1bed6657083"}},{"ruleId":"D1","level":"warning","message":{"text":"Billing.modality_counts (cyclomatic 21): Billing.modality_counts has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/billing.ex"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc48f60d146973e5c8927056b794ee12295222f148e817ba2cd47e76cfb4b70"}},{"ruleId":"D1","level":"warning","message":{"text":"Billing.calculate_with_diagnostics (cyclomatic 20): Billing.calculate_with_diagnostics has cyclomatic complexity 20 (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/req_llm/billing.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2587f4a5b3d4e47e1a29af016f15075ea441c0382b412640ff58feecf97343"}},{"ruleId":"D1","level":"warning","message":{"text":"Context.to_part_list (cyclomatic 17): Context.to_part_list has cyclomatic complexity 17 (threshold 15). 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. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (Context.to_part_list) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d6f4d009079c563064e4ed13abe244ee15f70b2f14fe70c5a3ba0024572b10"}},{"ruleId":"D1","level":"warning","message":{"text":"Context.to_part_list (cyclomatic 17): Context.to_part_list has cyclomatic complexity 17 (threshold 15). 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. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (Context.to_part_list) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"307311d507581c6e69790e0fcbe292217c583022014b6993b0b10f3d36ac4cdc"}},{"ruleId":"D1","level":"warning","message":{"text":"Converse.parse_stream_chunk (cyclomatic 16): Converse.parse_stream_chunk has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e15f089fffc3bf9355433451a9231fe70e26a91527afb527798d4611001379f"}},{"ruleId":"D1","level":"warning","message":{"text":"Google.decode_google_event (cyclomatic 16): Google.decode_google_event has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":3390}}}],"partialFingerprints":{"codehealthFindingId/v1":"822b0528aaa8529edd92eb6fc40a5e2df900a5b287e091ef76d30e1bdafbf6ce"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponsesAPI.handle_output_item_added_item (cyclomatic 16): ResponsesAPI.handle_output_item_added_item has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7dd0cc41cefa57e0fd55d321587394875189d2589afa95a1eb7cba4aea4b7d"}},{"ruleId":"D1","level":"warning","message":{"text":"Normalize.normalize (cyclomatic 16): Normalize.normalize has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/usage/normalize.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf43f5bb96dc983ecf24eaeef5750d8a7cc222d06c1fefab1938d76a2bcdcb1"}},{"ruleId":"D2","level":"warning","message":{"text":"Billing.meters (cognitive 32): Billing.meters has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 14 (nesting depth added 5). 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/req_llm/billing.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d11b1a91f111cc9c2a2906e5b59dde4a5d1f269d94413afeb1c770810fa7723"}},{"ruleId":"D2","level":"warning","message":{"text":"Billing.modality_counts (cognitive 27): Billing.modality_counts has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 16, if/else 8 (11 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/billing.ex"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0291d829cd1d0c53400d48542db74fd832997664a9e8de675be684e1571d170e"}},{"ruleId":"D2","level":"warning","message":{"text":"Google.prepare_request (cognitive 26): Google.prepare_request has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 4 (8 pts) (nesting depth added 12). 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/req_llm/providers/google.ex"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"08141fa313d543e31449ae5662e8adf70de180f905ab30523014cd55ab26c711"}},{"ruleId":"D2","level":"warning","message":{"text":"Azure.do_prepare_image_request (cognitive 25): Azure.do_prepare_image_request has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (22 pts), match/switch 2 (3 pts) (nesting depth added 10). 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/req_llm/providers/azure.ex"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8e70f4499183131460b6b7a9efbb58a9701820d252bb2cf58207ba46e9bfae"}},{"ruleId":"D2","level":"warning","message":{"text":"Billing.calculate_with_diagnostics (cognitive 24): Billing.calculate_with_diagnostics has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 2, match/switch 1 (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/req_llm/billing.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"427921cc5b4cce732fc2878f225a1b7ed5ae1cf6fbec80f005d5b72467cf8840"}},{"ruleId":"D2","level":"warning","message":{"text":"Context.file_content_part (cognitive 24): Context.file_content_part has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 17, if/else 5, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfa39f6a7e6f5e3a595475fbe155a0191a5a2be9f91e96d52ae891270d96dde"}},{"ruleId":"D2","level":"warning","message":{"text":"Google.decode_google_event (cognitive 24): Google.decode_google_event has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (23 pts), match/switch 1 (nesting depth added 7). 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/req_llm/providers/google.ex"},"region":{"startLine":3390}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d66b3eba9a8552bb15b8481645741083b9d1c209ae952e95d86ac3eccb8b89"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesAPI.decode_single_stream_event (cognitive 23): ResponsesAPI.decode_single_stream_event has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 5). 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/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d913fa6cc9c7af84b1331a0a9fca728b12918d26717d3ff1cd41f2bec33c6e5d"}},{"ruleId":"D2","level":"warning","message":{"text":"Converse.parse_stream_chunk (cognitive 22): Converse.parse_stream_chunk has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 3 (6 pts) (nesting depth added 8). 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/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eebda0b4145af31dcfeb8eacfe9168a7dca766f5f9054dc1339e479e433fe46"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamServer.enqueue_chunks (cognitive 21): StreamServer.enqueue_chunks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 4, boolean chains 2 (nesting depth added 4). 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/req_llm/stream_server.ex"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b61fecce6210cdd2d6484e7e1e38d8af6a3ea03c4655d4192beec5f02a0c3f0"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelCompat.group_models_by_status (cognitive 20): ModelCompat.group_models_by_status has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 8). 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/mix/tasks/model_compat.ex"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"661433bc13a1d482d38784182ec3b0b2c8739af9efbaf02f7c4f19f481c4de23"}},{"ruleId":"D2","level":"warning","message":{"text":"AWSEventStream.parse_single_event (cognitive 20): AWSEventStream.parse_single_event has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (5 pts), boolean chains 1 (nesting depth added 10). 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/req_llm/providers/amazon_bedrock/aws_event_stream.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"766b3e3005a0931e8991791c74a2fedb48ff9e81cd9b959faa2853628054397e"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelCompat.print_model_entry (cognitive 19): ModelCompat.print_model_entry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2 (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/mix/tasks/model_compat.ex"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd7244c285b84f4b038bbb7e3d20d006bb3dda935c7213852bd7db8eb064142"}},{"ruleId":"D2","level":"warning","message":{"text":"Defaults.default_decode_stream_event (cognitive 19): Defaults.default_decode_stream_event has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 5 (7 pts), boolean chains 1 (nesting depth added 4). 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/req_llm/provider/defaults.ex"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"7266c5fcba3c499f0825c9af8ded5e4abcb5f77fbf524c1fd05ca2e87e8ad3ea"}},{"ruleId":"D2","level":"warning","message":{"text":"AdapterHelpers.add_strict_to_tools (cognitive 18): AdapterHelpers.add_strict_to_tools has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2 (nesting depth added 6). 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/req_llm/providers/openai/adapter_helpers.ex"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf46fbdb88ff1555481b5666568af2b91cdc6aafbfca6070eb4d60c3e0246cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponsesAPI.handle_output_item_added_item (cognitive 18): ResponsesAPI.handle_output_item_added_item has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (5 pts), match/switch 2 (3 pts) (nesting depth added 2). 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/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb984a70cc90ff8be01fa3a976f367a551695a5729e951497418101083781d9"}},{"ruleId":"D2","level":"warning","message":{"text":"Normalize.normalize (cognitive 18): Normalize.normalize has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 4, match/switch 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/usage/normalize.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e989b44b16aea741534674566a13e24741d64692fd63698e6c98cfe05ad5d7"}},{"ruleId":"D2","level":"warning","message":{"text":"ReqLLM.do_normalize_model_metadata (cognitive 18): ReqLLM.do_normalize_model_metadata has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 5). 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/req_llm.ex"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbd46a211ec6fa2d3ae1108f6cc195cea036cf3a7b2037a22470d47c20c2dca"}},{"ruleId":"D2","level":"warning","message":{"text":"Gen.run (cognitive 17): Gen.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 3 (6 pts) (nesting depth added 7). 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/mix/tasks/gen.ex"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc1a997151293e6c80441ed33af5017fbe09637c82085f08cea6d6408d62d13"}},{"ruleId":"D2","level":"warning","message":{"text":"Context.to_part_list (cognitive 17): Context.to_part_list has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), match/switch 4 (7 pts), boolean chains 3 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (Context.to_part_list) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ac5502d46fef77aaa76b05754dfd6dbd5c86c052c4b878216ae1903cf47ee9"}},{"ruleId":"D2","level":"warning","message":{"text":"Context.to_part_list (cognitive 17): Context.to_part_list has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), match/switch 4 (7 pts), boolean chains 3 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (Context.to_part_list) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fd4e49639f0282135c9ec5d60fb746cb3e567d2d6ec081c9fe024a5569db6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Embedding.embed (cognitive 17): Embedding.embed has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (3 pts) (nesting depth added 5). 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. This shape REPEATS in the file: one other method here (Embedding.embed) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/embedding.ex"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9cd0f85d7fa4d3cf04f30b8b04b23e141cfc2f19f6335742f023b1793cf37c7"}},{"ruleId":"D2","level":"warning","message":{"text":"Embedding.embed (cognitive 17): Embedding.embed has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (3 pts) (nesting depth added 5). 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. This shape REPEATS in the file: one other method here (Embedding.embed) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/embedding.ex"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b95ad3b45eaa432efaa576174e83fb236a42372819298f35566a953c002590"}},{"ruleId":"D2","level":"warning","message":{"text":"Normalize.resolve_tool_usage (cognitive 17): Normalize.resolve_tool_usage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8 (nesting depth added 3). 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/req_llm/usage/normalize.ex"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c06a9eb79206b94af2e0562ef9d0cbb171d9b1d85fdf15d93f3c55db0948188"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelCompat.expand_spec_to_candidates (cognitive 16): ModelCompat.expand_spec_to_candidates has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 6 (7 pts) (nesting depth added 6). 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/mix/tasks/model_compat.ex"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f9cb2bd167f592e6aa6f0c798017968bc91dcc898067332924481f24c39b56"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.resolve (cognitive 16): Execution.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 7). 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/req_llm/evaluation/execution.ex"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccf0ad987dcf58d441ce165b8947d6cbc3ad2503911bbdcae3568185ed7fff3"}},{"ruleId":"D2","level":"warning","message":{"text":"Shared.encode_zai_chat_body (cognitive 16): Shared.encode_zai_chat_body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, match/switch 5 (6 pts), boolean chains 3 (nesting depth added 1). 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/req_llm/providers/zai/shared.ex"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fdc42fe13bf64f797b9e7e3cc495c54dfd1cf2262570bae2175c63de2b1aa9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/google.ex: FileTooLong \u2014 2780 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 188 functions. The bar is 500 significant lines; this is 2280 over it, 5.56\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc73330585d33bfd59ac252c13a7e1cb8f5dcfe026a39110d7fd260b038d3e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: openai/responses_api.ex: FileTooLong \u2014 2505 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 204 functions. The bar is 500 significant lines; this is 2005 over it, 5.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e3899767c0ce64d867223bb42a6f00b4acb9aa27b8a8099f6c1931b2e4e796"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: req_llm/telemetry.ex: FileTooLong \u2014 1805 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 133 functions. The bar is 500 significant lines; this is 1305 over it, 3.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/telemetry.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4fecd2f13ac804227b4e5bb753f7e27f63c0108d43bff6c32e29be463e2d36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/anthropic.ex: FileTooLong \u2014 1582 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 136 functions. The bar is 500 significant lines; this is 1082 over it, 3.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4125198641b832f0936d52744e37ec96280f88dbd288b489d1c63c5c7f3a2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: provider/defaults.ex: FileTooLong \u2014 1502 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 105 functions. The bar is 500 significant lines; this is 1002 over it, 3.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d764522aa640b7fa788c9581e0e26e3500563a81a9605c2f424d6b8b36a3d1e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tasks/model_compat.ex: FileTooLong \u2014 1416 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 90 functions. The bar is 500 significant lines; this is 916 over it, 2.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/model_compat.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"489a7696d9e805867b07b4417015137068c6d62956ad70c51ba04c4e77926693"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: req_llm/stream_server.ex: FileTooLong \u2014 1295 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 93 functions. The bar is 500 significant lines; this is 795 over it, 2.59\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/stream_server.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"251638492e1878176c252d91f89b4f04576024a05bc25cf3641c33eaa089094c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/azure.ex: FileTooLong \u2014 1227 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 66 functions. The bar is 500 significant lines; this is 727 over it, 2.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/azure.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c831d4a656e59d1517d2d15690a3256c7527ef85f8f6f78d92f8761ed4eb999e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/amazon_bedrock.ex: FileTooLong \u2014 1136 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 74 functions. The bar is 500 significant lines; this is 636 over it, 2.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2affebc1263d6c72973a5866310c8fb4ce773b3a3c411e8010979d19bdbef4db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: amazon_bedrock/converse.ex: FileTooLong \u2014 1007 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 94 functions. The bar is 500 significant lines; this is 507 over it, 2.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d4e737cebd918d41e39508b25a52be15529782372b17922689a465474af038"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: req_llm/context.ex: FileTooLong \u2014 971 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 62 functions. The bar is 500 significant lines; this is 471 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd051acb4a77b1c3995fb3ec4cc61b1ae86b14eb9d88e8428038c5303daf0d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/xai.ex: FileTooLong \u2014 946 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 66 functions. The bar is 500 significant lines; this is 446 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/xai.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2084aba1306163acc64f8ebf18fc8f4d16be65267bac9db9f585fe37cd888606"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Audit: TooManyFunctions \u2014 56 functions. The bar is 30 functions; this is 26 over it, 1.87\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/migration/audit.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f454d60aeafe0620a7781838ed36e01a7ce7286084df97b8faff711f3a7719"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/openrouter.ex: FileTooLong \u2014 916 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 66 functions. The bar is 500 significant lines; this is 416 over it, 1.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openrouter.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6884a7b83f313305720ce85df438070075b1bb1a839d4adf4d8016c2e840bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/openai.ex: FileTooLong \u2014 862 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 55 functions. The bar is 500 significant lines; this is 362 over it, 1.72\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d53c834380f6cd6742d88adc8f59f1267f6b1cb35dc89e14fd886c1a4cc9ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/minimax.ex: FileTooLong \u2014 772 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 272 over it, 1.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a08c6edc94be754d7d7f57a56b71a8aad0f35cf98830f594b7a4840b1ecab20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/google_vertex.ex: FileTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 48 functions. The bar is 500 significant lines; this is 257 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e6319b794ead8f71068d8a3637076b785786dd2b9195c3efbc0c0dceb8c7df"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ChunkAccumulator: TooManyFunctions \u2014 45 functions. The bar is 30 functions; this is 15 over it, 1.50\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/chunk_accumulator.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c480ab2a3137951fc2bd1bc9278749470bbcb98aeb1c9c8ca92e8648b59a51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: provider/options.ex: FileTooLong \u2014 725 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 54 functions. The bar is 500 significant lines; this is 225 over it, 1.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/options.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bcd0469265a553a05c6b572fbaf57fbe940aa6cb88629fd5882fd125fa5cce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compatibility/scenario_catalog.ex: FileTooLong \u2014 710 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 210 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/compatibility/scenario_catalog.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6344e3ae330e8db6212fe2baaeaa1ec9534fcfd064f0f34496018d0e1e042c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compatibility/evidence.ex: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 55 functions. The bar is 500 significant lines; this is 198 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/compatibility/evidence.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26c6b22376aac95c8e5ac89f68741b227a96e92482f17468ad83201916a296e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: req_llm/doctor.ex: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 50 functions. The bar is 500 significant lines; this is 197 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/doctor.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a79936daaad75a53460fd6d15781deb9247a56d6daf36d74554974a582559aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/openai_codex.ex: FileTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 54 functions. The bar is 500 significant lines; this is 187 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai_codex.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b299a2d9d19ce1ad2e9a88e3ae116bd79fa2b52ba3d1219405aa0520e39d4ad7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Attributes: TooManyFunctions \u2014 41 functions. The bar is 30 functions; this is 11 over it, 1.37\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/open_telemetry/attributes.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"833c66ab8e2d80d511af9462e914314d03259fee75c27d1638c29bd5410cdeea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: req_llm/schema.ex: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 50 functions. The bar is 500 significant lines; this is 182 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/schema.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e93f9cdce82a5195deb82419e4923f466dcd34557d8b2154999a2788be26d50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/req_llm.ex: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 50 functions. The bar is 500 significant lines; this is 175 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"759e20b516492c5e2346a434f5ff68b6d0b9390d90c2107f911f500cac5b8978"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: images/openai_compatible.ex: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 66 functions. The bar is 500 significant lines; this is 175 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images/openai_compatible.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac39c90c04ecd5214f064875f1294ce05c8cabe1ece288b06c37650a681b163"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ProviderDrift: TooManyFunctions \u2014 40 functions. The bar is 30 functions; this is 10 over it, 1.33\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/compatibility/provider_drift.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7423d2918c49cca3fcbaeef427f5582844f3d3ffc036adb7775c65a401e49cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ToolCallIdCompat: TooManyFunctions \u2014 40 functions. The bar is 30 functions; this is 10 over it, 1.33\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/tool_call_id_compat.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b2a7f27dc1d1015dbc85ffb6848a1280c43a664afd7b3a9702eb3d8ad5cba4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Response: TooManyFunctions \u2014 39 functions. The bar is 30 functions; this is 9 over it, 1.30\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/response.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1913d80e240a8a47b87958a67147d12f8c02704f8558d35870a6e5ceaa30edb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: EventProjector: TooManyFunctions \u2014 39 functions. The bar is 30 functions; this is 9 over it, 1.30\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/stream_response/event_projector.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"883f0d09f52d2b3ace47ac942e89be14f57cfb98a96c8af176e4bbc01ef0edab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Validation: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/output/validation.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7de0dca88ab92127f1684ccbc87441a52e943688405a037014c74635c66304"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Content: TooManyFunctions \u2014 37 functions. The bar is 30 functions; this is 7 over it, 1.23\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/open_telemetry/content.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c969c4e2351b06bef232619be5ebc46c3f5f7438de30f64849b2dad3c3b8f0c9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Normalize: TooManyFunctions \u2014 37 functions. The bar is 30 functions; this is 7 over it, 1.23\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/usage/normalize.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f4ddce2d467e01458c57286293aec22446acaa613940d879b1f4283d83926d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tasks/gen.ex: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 44 functions. The bar is 500 significant lines; this is 99 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/gen.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1191698809a7ecccb7590df386a4360463b43093a9dbb80c70945c1c10646ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: openai/files.ex: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 54 functions. The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/files.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b20eb092b9bc55e78175e48fe1bd771cd2264704e60d921376cf4ba979959ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ToolCall: TooManyFunctions \u2014 35 functions. The bar is 30 functions; this is 5 over it, 1.17\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/tool_call.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"699e025b7c1dbc7254997fea155be4d2103f3f5d69d6983ba6c3e0ff6f18ff92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: openai/decisions_api.ex: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 42 functions. The bar is 500 significant lines; this is 73 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a21df0379326f3dd59b80518de1d5066b991f3fc60f25369c354466a449dd64"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: EventProjector: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/openai/realtime/event_projector.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9cf8e12bd0dd3dd11bb562d57a4cc24d820ddb37d8f0c5df453fe934577384"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Namespace: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/options/namespace.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8079a63d8e84a62f6cf762f8f5879fb8279666f15e93c45b308ab9393e18ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Rerank: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/rerank.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"689ab92a7b2c0283e551e37d434958f098cb12dff5e0b43159c6c07495166711"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Projection: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/response/projection.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc05319fd7af3192a5afb8896876b5bb71e4e0f2101043d9e0498c024650b909"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: FinchClient: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/streaming/finch_client.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a900f56f9118fcbf23b869a9703251457862e61db2daa0e3e74e2ea97dddad88"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ModelOperation: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/model_operation.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a448e13d994e479124454e0db0d6b90e4cf96d46e202269bf938185a8d243a41"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ResponseBuilder: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults/response_builder.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bdc0374c2f7a9bf899d01718351ac4af9202d56fc11d9f2492e6747aef5c1e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Context: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/context.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"087bfafaa5969c542b4ef10429ad364716ce2e50cfda093e4c9876287c4616d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: anthropic/response.ex: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 46 functions. The bar is 500 significant lines; this is 17 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/response.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de28b263f8ba3c3f13e8d8492271493c652cb9213653e12f582b3e0f32dd18b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: ProviderFileReference: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider_file_reference.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f050ad3bc5fe97eadda6a1b461e32f491cbe96cfd3f5a681b424eb83ad614c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Meta: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/meta.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3ceed648d6eaa696d55206df81d6e908be093f8edff47b8e674ee9d8ac5dcb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: RequestPlan: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/request_plan.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb85e2f72ad0b253bef0f779a7c2f1466e94c4ae864357c9a8516043bdb324e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): tutorial/agents/04_agent_sync_tool_calling.exs:23-31 | tutorial/agents/05_agent_phased.exs:24-32 | tutorial/agents/06_memory_context.exs:23-31 | tutorial/agents/07_agent_cli_repl.exs:24-32 | tutorial/agents/08_agent_streaming_finalize.exs:23-31 | tutorial/agents/09_agent_usage_logging.exs:23-31 | tutorial/agents/10_agent_task_tools.exs:23-31 | tutorial/agents/11_agent_parallel_tools.exs:22-30 | tutorial/agents/14_router_agent.exs:22-30 | tutorial/agents/20_liveview_chat_agent.exs:32-40 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/04_agent_sync_tool_calling.exs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"57514b7eed8c208b577154a6c194dc769ed8f6dc0b16cfa71d2e8c446002cb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): tutorial/agents/05_agent_phased.exs:65-82 | tutorial/agents/06_memory_context.exs:86-99 | tutorial/agents/07_agent_cli_repl.exs:90-103 | tutorial/agents/08_agent_streaming_finalize.exs:74-91 | tutorial/agents/09_agent_usage_logging.exs:60-82 | tutorial/agents/10_agent_task_tools.exs:73-92 | tutorial/agents/11_agent_parallel_tools.exs:79-94 | tutorial/agents/12_agent_tool_retries.exs:62-77 | tutorial/agents/20_liveview_chat_agent.exs:62-73 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d6210b39d6b7b777a7be43b7cf8b137493b7f9ab30d4d0e51ccdc6824a03ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lib/req_llm/providers/google/cached_content.ex:303-334 | lib/req_llm/providers/google/cached_content.ex:361-374 | lib/req_llm/providers/google/cached_content.ex:378-398 | lib/req_llm/providers/google/cached_content.ex:445-481 | lib/req_llm/providers/google/cached_content.ex:526-545 | lib/req_llm/providers/google/cached_content.ex:549-576 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google/cached_content.ex"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26d14b240b010b20bca7d16e22cfd899a287d031a0b5e2cb5184fd7a5189572"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lib/req_llm/providers/minimax.ex:95-153 | lib/req_llm/providers/minimax.ex:157-213 | lib/req_llm/providers/openai.ex:489-541 | lib/req_llm/providers/openai.ex:666-701 | lib/req_llm/providers/openai_codex.ex:147-191 | lib/req_llm/providers/xai.ex:216-273 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"764152c14fed7ddaa2c4b0069813a0d875fc0099566f638e55c29f2fe9a4f0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): tutorial/agents/05_agent_phased.exs:87-105 | tutorial/agents/06_memory_context.exs:104-120 | tutorial/agents/07_agent_cli_repl.exs:108-124 | tutorial/agents/08_agent_streaming_finalize.exs:96-112 | tutorial/agents/09_agent_usage_logging.exs:87-103 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f976ae879dc251b44966bb04978d4755bce97d256c07413723a51550752e277"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/req_llm/provider/defaults.ex:256-285 | lib/req_llm/provider/defaults.ex:403-431 | lib/req_llm/providers/superlinked.ex:30-64 | lib/req_llm/providers/xai.ex:282-326 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e71a7f9d05ab8998bb035a806b0ec90d8542745d7e49f21c806ea5535e0427"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/req_llm/provider/defaults.ex:443-490 | lib/req_llm/providers/elevenlabs.ex:137-181 | lib/req_llm/providers/openai.ex:614-662 | lib/req_llm/providers/openrouter.ex:278-324 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce861086a4825b266601e710b91843f3672930104b5389cac792a86fb3897b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/req_llm/providers/amazon_bedrock/converse.ex:259-283 | lib/req_llm/providers/amazon_bedrock/openai.ex:97-121 | lib/req_llm/providers/anthropic/adapter_helpers.ex:26-44 | lib/req_llm/providers/google_vertex/openai_compat.ex:131-152 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a24fff2df79ecaef198cf18b0281d65f42e300529660dacf5aef63ed3a1f335"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): lib/req_llm/provider/defaults.ex:533-583 | lib/req_llm/providers/elevenlabs.ex:88-133 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb37f2f4cdf493843ff275548e16fb68853adc92ff79683004b6632baf2bf07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): lib/req_llm/provider/defaults.ex:1940-1987 | lib/req_llm/providers/zai/shared.ex:242-292 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b3f8dac7d732f0f5bdd69502df90cb46b8825b3ea6e69c346fd82e69bd8513"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): lib/req_llm/providers/google.ex:309-359 | lib/req_llm/providers/google.ex:363-443 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"b726843f14b6b72b24f6a3ab1fb2128f7f33c736e39c5c2a846a798ea51554b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): tutorial/agents/11_agent_parallel_tools.exs:99-164 | tutorial/agents/12_agent_tool_retries.exs:82-129 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/11_agent_parallel_tools.exs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d9d64255798371de677fc3df7eb0a489f5a3a06b03244586395be53f0687c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): lib/req_llm/providers/azure.ex:629-705 | lib/req_llm/providers/azure.ex:709-762 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/azure.ex"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"926d7a6a751dc759cef394c4a823738e32002de2c16c7dd091a889d8f4abbfb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): lib/mix/tasks/model_compat.ex:345-389 | lib/mix/tasks/model_compat.ex:393-437 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/model_compat.ex"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4160c7bc45a7fb4b4570fd3211e51605921f64d62bdf126f8a9973494841a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/req_llm/embedding.ex:215-247 | lib/req_llm/embedding.ex:251-283 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/embedding.ex"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1d74dddec170ce9217c00b6100f5fcded9c3737e07ec55b91d83bafcc5fa47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/req_llm/speech.ex:174-206 | lib/req_llm/transcription.ex:169-210 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/speech.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2949598ccbe4f95d67fe890c60ce44905469ffc9c3f784c8bbc79f398184c6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 21\u002B corresponding lines): lib/req_llm/providers/cohere.ex:77-103 | lib/req_llm/providers/github_copilot.ex:62-89 | lib/req_llm/providers/lmstudio.ex:77-97 | lib/req_llm/providers/ollama.ex:117-138 | lib/req_llm/providers/openai.ex:830-855 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/cohere.ex"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b517e675168ceebcc92c9b577a84e950b5ac0069b5e625b32a464a53b5d7960e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): lib/req_llm/providers/catalog_gateway.ex:33-76 | lib/req_llm/providers/cohere.ex:23-64 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/catalog_gateway.ex"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeab88c9de8a651f5a83bfb4646bf053fc43d8093a780b4776bd1fc41d44bc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): tutorial/agents/14_router_agent.exs:45-63 | tutorial/agents/17_external_api_tool.exs:87-117 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/14_router_agent.exs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0ee7710f2f3ff2a0f4546a34daf1bdaa940bc9a1c7c1baacd1b126d7932e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lib/req_llm/providers/groq.ex:63-92 | lib/req_llm/providers/zenmux.ex:85-118 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/groq.ex"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff02c5160e5dbd06793e197da78591352cf7f69866aede249b470d8aef4ec78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lib/req_llm/providers/minimax/images_api.ex:102-140 | lib/req_llm/providers/xai/images_api.ex:67-96 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/images_api.ex"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b37f2211f528e4fc58eb49b4024bed2a9c82ebc1fa5bb46c12eb101fd175628"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/req_llm/providers/groq.ex:328-345 | lib/req_llm/providers/groq.ex:349-366 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/groq.ex"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fcb86a0a00d4e6ea08f0d5423d87032fd1251e8a7acaa77e101212f75e625f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/req_llm/providers/minimax.ex:217-249 | lib/req_llm/providers/minimax.ex:253-285 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2c5af9958e9b5902fc9e175d74121db35f6e48f22105ec91690638fd77b7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/req_llm/providers/openai/chat_api.ex:100-118 | lib/req_llm/providers/openai/responses_api.ex:1449-1470 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/chat_api.ex"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f35738e20d1437e98932494a069bdcc2e21bc5c0b3803b79c51190afb750f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): lib/req_llm/context.ex:1107-1146 | lib/req_llm/context.ex:1150-1190 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66b7cbf204af746ca594b85716078ef81d0217da5180635d87b9e9109373e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): lib/req_llm/providers/amazon_bedrock/anthropic.ex:76-105 | lib/req_llm/providers/azure/anthropic.ex:128-160 | lib/req_llm/providers/google_vertex/anthropic.ex:54-90 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffa43d93ba16d832c60096c5117f022e5be4970f31981ead9f96d72c88d9af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/req_llm/providers/openai/decisions_api.ex:199-218 | lib/req_llm/providers/openai/decisions_api.ex:247-267 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4efb3a1eec5225223c2840d58652ff5959e0b74f67c69a803343eaa361a832"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): lib/req_llm/providers/amazon_bedrock/openai.ex:30-79 | lib/req_llm/providers/google_vertex/openai_compat.ex:27-58 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/openai.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a66cd2819c72ba52a0ac54270f6c1d886dd521fb7a4fb9495e0eb7a728c7003"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/req_llm/generation.ex:115-136 | lib/req_llm/generation.ex:234-259 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/generation.ex"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"690baed79e8cd845e2913ff919a833037b6f4fa86bac8c5ff7852366d94998a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/req_llm/providers/amazon_bedrock/anthropic.ex:190-212 | lib/req_llm/providers/google_vertex/anthropic.ex:128-150 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"de68258ee341a254bb5957667a04d1d40142db4074c3a08fbb292119d7685cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/req_llm/generation.ex:95-111 | lib/req_llm/generation.ex:214-230 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/generation.ex"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f3ec498a9ecc16a025e253497d239f54ceb8c67699fae6e4acc26a509e8040"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/req_llm/context.ex:1047-1065 | lib/req_llm/context.ex:1081-1099 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"46333dd24eba51c072a059d8b6cacd466f05fe5dbf814bc5c378d6ae6ae26481"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/req_llm/providers/zai/shared.ex:28-54 | lib/req_llm/providers/zai_coding_plan.ex:64-85 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/zai/shared.ex"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"83aa56577833ad4e059049bb30162d7cbb10992905c26238f47d130fa2b8bcca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/req_llm/providers/openai/decisions_api.ex:380-397 | lib/req_llm/providers/openai/decisions_api.ex:457-470 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6202ca19102e1e447069ca3fcf4ec3246ec02e35d5ad8ea4be7e3269b58218"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/req_llm/compaction.ex:93-117 | lib/req_llm/video.ex:180-196 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/compaction.ex"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d670061955f485bab2e7983044161dca3284440b4f3bc89b1356521befffad0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): lib/req_llm/providers/fireworks_ai.ex:197-232 | lib/req_llm/providers/openai.ex:716-752 | lib/req_llm/providers/openai_codex.ex:752-792 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/fireworks_ai.ex"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68e23fabdb9a5eabcd3ad9af2d3954593ced0b9ed4361e9a91187662c81e5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lib/req_llm/providers/anthropic.ex:1122-1155 | lib/req_llm/providers/anthropic.ex:1195-1243 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e6e405f829cf87cea3572dc62509f3f1f6f439496bdbae8ffa8e02be291950"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/req_llm/providers/anthropic/oauth.ex:9-37 | lib/req_llm/providers/openai/oauth.ex:10-33 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/oauth.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9382e69530e768d14f29267c41a5faefe5e0122b782c77a55a337396782cb8ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/req_llm/providers/amazon_bedrock.ex:309-329 | lib/req_llm/providers/amazon_bedrock.ex:334-357 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc5aca6aa948196b113b423fda44f5ac35faabf13c2c942ee9d0c73c8fe6a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/req_llm/providers/lmstudio.ex:213-227 | lib/req_llm/providers/ollama.ex:214-231 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/lmstudio.ex"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5c253da886cd27aab78435e2b6d4b39f4f883a5d579d564cd7dc95650c896a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): lib/req_llm/providers/fireworks_ai.ex:236-259 | lib/req_llm/providers/openai.ex:757-781 | lib/req_llm/providers/openai_codex.ex:796-824 | lib/req_llm/providers/xai.ex:476-499 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/fireworks_ai.ex"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9608af0a14aec325ff0234c67b26a8b7463a40f0883e05b692d9d0ac882d0a84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/req_llm/providers/amazon_bedrock/responses.ex:56-72 | lib/req_llm/providers/azure/responses_api.ex:114-135 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/responses.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a04a4f2d45c7cab34a039a8115e2d34db460e50723a9b6461762e4ffb2c77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/req_llm/streaming/finch_client.ex:78-104 | lib/req_llm/streaming/web_socket_client.ex:23-41 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/streaming/finch_client.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"46688122e38f38a548bb486421120a4a32fff51f92ad67b2c3f6d172745e5148"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/req_llm/providers/openai/decisions_api.ex:522-538 | lib/req_llm/providers/openai/decisions_api.ex:542-558 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7b0d8944679be5345a3c464352c64019d83b930824e246c961df4f803678cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): tutorial/agents/08_agent_streaming_finalize.exs:117-149 | tutorial/agents/20_liveview_chat_agent.exs:90-117 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/08_agent_streaming_finalize.exs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8229c045ce16beec13ab86a5992c68afee17579e3d70cc6fc86254c5d1e7b104"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/req_llm/context.ex:1196-1219 | lib/req_llm/context.ex:1223-1244 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d11527b86196e3875e953825e26de8919d6736e55a9bb662b4b71436fafdfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/req_llm/providers/amazon_bedrock.ex:851-878 | lib/req_llm/providers/google_vertex/anthropic.ex:196-223 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"865567778132227b37c1c70b3dc4a7672459e44b916cf50adbdf7740deacc59d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/req_llm/providers/amazon_bedrock/anthropic.ex:136-159 | lib/req_llm/providers/azure/anthropic.ex:164-187 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"195c8f98298badbb955e79c843ed43de6bb4877a99fad1df57c5cac9d9279b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/req_llm/telemetry/open_telemetry.ex:104-119 | lib/req_llm/telemetry/open_telemetry.ex:127-146 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/telemetry/open_telemetry.ex"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"098e03fd97584cc6be386ca03e1492f79bbcc42931fc284ed2e665a5f61afe2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): tutorial/agents/07_agent_cli_repl.exs:159-195 | tutorial/agents/08_agent_streaming_finalize.exs:157-188 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/07_agent_cli_repl.exs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c13bc70f602b6c385ab17b69eeae662ab4276991d6848d02a0ab80c256a796"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/req_llm/providers/amazon_bedrock/converse.ex:704-720 | lib/req_llm/providers/anthropic/context.ex:83-99 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"508b8a783c1a2cec3abac95df7ef2a48e353e5e399c52abc66271f55dabe8ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): lib/req_llm/providers/openai/files.ex:113-123 | lib/req_llm/providers/openai/files.ex:147-160 | lib/req_llm/providers/openai/files.ex:184-194 | lib/req_llm/providers/openai/files.ex:216-226 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/files.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"805f5aadcd4861ceaed99d84a74c5ed34215207f489124526ff595a34e45b61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/req_llm/providers/anthropic/oauth.ex:41-64 | lib/req_llm/providers/openai/oauth.ex:37-61 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/oauth.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d80670d8faf8f47f4aafab4c005076e046ef2d7071103da379a719bd21c1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): tutorial/agents/13_agent_profiles.exs:127-155 | tutorial/agents/16_agent_persistence.exs:88-113 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/13_agent_profiles.exs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"41995da21cb4acaf72c39692782c957754bf3e3ec50833e76599986426aa2de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/req_llm/provider/defaults.ex:1222-1240 | lib/req_llm/providers/openai.ex:1169-1189 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"290b9768da982c8ba4bba377fdc7d236393f4d82f5a7ed4b8edcb0792390ae3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/req_llm/providers/google_vertex.ex:491-504 | lib/req_llm/providers/google_vertex.ex:508-521 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex.ex"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5151d8b77d3252509e79657398bc6b451cc61bdf65c6c7e5f3196511b67424"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): lib/req_llm/providers/google_vertex.ex:410-420 | lib/req_llm/providers/google_vertex.ex:444-452 | lib/req_llm/providers/google_vertex.ex:479-487 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex.ex"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eac9c18f9868f9487382ce9af3ac396979de4583e3083652107de242ca4f078"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/req_llm/providers/openai/decisions_api.ex:140-150 | lib/req_llm/providers/openai/decisions_api.ex:607-621 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a52942f16e6bce27b1e4f324629a0dd0fac8e9bc06d4da4460ff646b645ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): lib/req_llm/providers/anthropic.ex:2100-2114 | lib/req_llm/providers/anthropic/adapter_helpers.ex:264-286 | lib/req_llm/providers/cerebras.ex:120-131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":2100}}}],"partialFingerprints":{"codehealthFindingId/v1":"761ba4d7a47b26d2fe31598fe70033fe298c54447ffd5639db411f516479ffad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/req_llm/telemetry.ex:1468-1495 | lib/req_llm/telemetry.ex:1646-1675 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/telemetry.ex"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e518ff2a1f9d3c90004f23a5fd01d5d311cfa4c5d3e010437d5e9e5bd0617479"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): lib/req_llm/ocr.ex:136-150 | lib/req_llm/video.ex:208-216 | lib/req_llm/video.ex:355-363 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/ocr.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e910798220e519456f6dea0502ec1ebbe8bc49c8e467732353cc742b9e418d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/req_llm/openai/realtime/event_projector.ex:81-96 | lib/req_llm/openai/realtime/event_projector.ex:132-141 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/openai/realtime/event_projector.ex"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b877b53ed64a4e1e3f283f67f32788bd2d440ae40095277e042980e80bea93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/req_llm/providers/google.ex:2408-2420 | lib/req_llm/providers/google/response_builder.ex:97-115 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":2408}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ba2767fc0314399d41582f1cd7f2992753d11c10ec5bd0212593d21f5ba9d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): lib/req_llm/providers/openai/decisions_api.ex:113-123 | lib/req_llm/providers/openai/decisions_api.ex:222-233 | lib/req_llm/providers/openai/files.ex:499-508 | lib/req_llm/rerank.ex:337-346 | lib/req_llm/rerank.ex:373-382 | lib/req_llm/video.ex:436-445 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bd1bdf5f4edef6b6d71f1eb452dde636cb2d36a3b6c260b2794af12ec0a63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/req_llm/providers/minimax/images_api.ex:67-89 | lib/req_llm/providers/minimax/video_api.ex:74-98 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/images_api.ex"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b8f5400f677e6f14c8b71f954719a7b2d72d6b70dd74af1e76b2f082972110"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/req_llm/compatibility/evidence.ex:805-815 | lib/req_llm/request_plan/diagnostic.ex:213-246 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/compatibility/evidence.ex"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"7566887dab810cb2a8a88b736f2cf217eb481a2006765ed195357421f8ae5c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/req_llm/doctor.ex:672-701 | lib/req_llm/doctor.ex:705-727 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/doctor.ex"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e9a9253f27468fc28188d04820fa4dca771cd26211b590e4992627a8e10d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/req_llm/providers/amazon_bedrock/converse.ex:664-682 | lib/req_llm/providers/anthropic/context.ex:62-79 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef294f2cabbcfea8946dde4f2ad61e29e10a828abebbc86913968b4992e37c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): lib/req_llm/providers/anthropic/response.ex:391-406 | lib/req_llm/providers/google.ex:2378-2391 | lib/req_llm/providers/openai/responses_api.ex:2892-2909 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/response.ex"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ca79f7fdfb5f4a95038b5876af865b865005490a09472cfa07296ea4b0f825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/req_llm/telemetry.ex:1558-1587 | lib/req_llm/telemetry.ex:1743-1767 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/telemetry.ex"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e03ed9dc339520ab9d1140899379032f7efb02086abd017ad7303682099666f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/req_llm/providers/groq.ex:280-289 | lib/req_llm/providers/groq.ex:293-302 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/groq.ex"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b148847396f71b72569d6b73e46561bb735d407f4226b281c923f9e9807d296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/req_llm/providers/minimax/video_api_v1.ex:212-220 | lib/req_llm/providers/minimax/video_api_v1.ex:236-245 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/video_api_v1.ex"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a233b46702fdb3f1922a66323c95785e071d542ee1e9bb9f23f4bc2a0427be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/req_llm/providers/alibaba/shared.ex:78-93 | lib/req_llm/providers/venice.ex:119-134 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/alibaba/shared.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f985b185873eb4bd00595be0d274ee83299b0635c9ca0dd6ec1cd854f0771fcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/req_llm/request_plan.ex:126-144 | lib/req_llm/request_plan.ex:163-180 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/request_plan.ex"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"546f3ac75354d60fb1bd3a6bd51c1d8d3f00968e00b1c834f604878b08948bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/req_llm/providers/openai/responses_api.ex:822-838 | lib/req_llm/providers/openai/responses_api.ex:844-862 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"512cba60006ba0369a8062197b1722881164e2a9930a2b5a87fc023df54c84a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/req_llm/images/openai_compatible.ex:675-690 | lib/req_llm/providers/xai/images_api.ex:39-54 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images/openai_compatible.ex"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b589ab3cdd33767360309adb05abe91dce564518fedbfead0df3cf1766385c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/req_llm/provider/defaults.ex:1991-2000 | lib/req_llm/providers/zai/shared.ex:464-470 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd32fc40d07572741209cdf72fbfe236e68742d12a2119887e363b6efb960fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): tutorial/agents/14_router_agent.exs:85-89 | tutorial/agents/15_conversation_supervisor.exs:69-72 | tutorial/agents/16_agent_persistence.exs:57-60 | tutorial/agents/19_http_api_agent.exs:54-57 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/14_router_agent.exs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7f16bc6ad8a81debacfe4f0884bec31839c9b8d26aad905b815c86de0e8b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/req_llm/generation.ex:363-378 | lib/req_llm/generation.ex:666-681 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/generation.ex"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebd63fecbb3625c1ab11e5b7601ad8f508526fd54016fade3378f29624e6ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/req_llm/providers/minimax.ex:1001-1013 | lib/req_llm/providers/minimax/response_builder.ex:32-44 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c1df5f64bf5aac9db93857e75f032656f53d6761d444cb309a874eb4a0a7dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/req_llm/providers/anthropic.ex:459-470 | lib/req_llm/providers/anthropic/response.ex:472-483 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb25527351bc10045efc051b37246f51c8f42dcb5c7cbd098a95d087f60a477"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/req_llm/providers/anthropic.ex:1598-1610 | lib/req_llm/providers/anthropic.ex:1614-1623 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc1aec3473bb6a299644b67a49cfcdca9d5495eea633137c89218d174ee4aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/req_llm/doctor.ex:424-451 | lib/req_llm/doctor.ex:455-477 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/doctor.ex"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf2110289c0f10dd843b62eafae17b2082c4e9a61e9edff86a03dc4569335fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/req_llm/migration/audit.ex:214-222 | lib/req_llm/migration/audit.ex:254-262 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/migration/audit.ex"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d45bbd835079eaf9b9dd9ce709489824bfb6cde0a8487149309624709b15eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/req_llm/providers/openai/adapter_helpers.ex:121-128 | lib/req_llm/providers/openai/adapter_helpers.ex:133-141 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/adapter_helpers.ex"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecca62d87f2f2b05525affdc4b24b3d382e50a53db1787f7d68249197b3d51a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/req_llm/providers/openai/decisions_api.ex:303-312 | lib/req_llm/providers/openai/decisions_api.ex:317-326 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2dcd1ae03b7bcf6c03d31667a2c5ff5ddae6c8f71a647f5517128603e5704e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/mix/tasks/req_llm.doctor.ex:27-39 | lib/mix/tasks/req_llm.migration_audit.ex:21-30 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/req_llm.doctor.ex"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"58681832fb4c5f5775b85d9e3c25d23d4176c02f772bf923200c45a75c9bb066"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/req_llm/context.ex:921-931 | lib/req_llm/context.ex:935-944 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a82402f38398ff5e96e57744367ebd390436b483e6228b531b412a1cbc42b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/req_llm/providers/openai/responses_api.ex:382-392 | lib/req_llm/providers/openai/responses_api.ex:400-407 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c65378cc5842a7c7dbd7e75e35839ab170fa599a084d3eca0dab46d8ab1bfed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/req_llm/bedrock/nova_sonic.ex:182-194 | lib/req_llm/bedrock/nova_sonic.ex:211-225 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/bedrock/nova_sonic.ex"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe6cda085e0cae105d10f3e04da24cb704175f8ada2d3519332dcaa0507869a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): lib/req_llm/evaluation/protocol.ex:88-101 | lib/req_llm/providers/azure.ex:992-1005 | lib/req_llm/providers/openrouter.ex:948-961 | lib/req_llm/providers/typesafe.ex:105-118 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/evaluation/protocol.ex"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d84708f9cee40774bb481e3d3583f4b9745d33d0fcdc30d0a7f285881b31fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/req_llm/images/openai_compatible.ex:495-502 | lib/req_llm/providers/google.ex:1340-1352 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images/openai_compatible.ex"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"b152aaeb2f4671a3e6fbcfb68be916125534600c2d2163215e2a0012c8891d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/req_llm/open_telemetry.ex:530-536 | lib/req_llm/open_telemetry.ex:540-546 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/open_telemetry.ex"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"978b9ca323853bdd2208719cc9ec4ff57d71f3393e90f23e580c95405ed99700"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/req_llm/providers/anthropic.ex:1367-1383 | lib/req_llm/providers/anthropic.ex:1404-1423 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"262d0114422528a313b636db0bb04e2d1a4be27fcc4cb35fb40431fde6d2a80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/req_llm/providers/azure.ex:1197-1209 | lib/req_llm/providers/google_vertex.ex:1082-1093 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/azure.ex"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27e9f58a4860f35228bddd66861cc62eda35694aca43b8abd094a1e566cbbca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/req_llm/providers/openai/responses_api.ex:2858-2864 | lib/req_llm/providers/openai/responses_api.ex:2868-2877 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":2858}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6931082b27cc5a6c85c264e6563836c5aeddbdd6d16eebae89e20fc0eca4f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/req_llm/stream_server.ex:1285-1298 | lib/req_llm/stream_server.ex:1303-1310 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/stream_server.ex"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25c95985d98cc427d9613a1b4ddd72fa01df1295182adf96c5590c6ececcb79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/req_llm/providers/google.ex:3364-3378 | lib/req_llm/video.ex:550-562 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":3364}}}],"partialFingerprints":{"codehealthFindingId/v1":"81748c583d2adbd3db62fc227a439de7876ca40a1b0d81dc4980980eeb35e5ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): lib/req_llm/providers/openai/responses_api.ex:2815-2824 | lib/req_llm/providers/openai/responses_api.ex:2828-2839 | lib/req_llm/providers/openai/responses_api.ex:2916-2924 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":2815}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcff2a7adbd651d02fb7699538a2f05de67b6c6bff9b590379dcf73de214b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/req_llm/providers/openai/adapter_helpers.ex:313-323 | lib/req_llm/providers/openai/chat_api/request.ex:51-69 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/adapter_helpers.ex"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c1f3a39039045f3ef4186649790d5b8bff69307cf71bfeb3eee5a496d9ca6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/req_llm/providers/anthropic/platform_reasoning.ex:151-160 | lib/req_llm/providers/anthropic/platform_reasoning.ex:167-172 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/platform_reasoning.ex"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ecbbe360c71815e0a6a044f548970f7623cd0cab2fef56a0e8b1ac648da7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/req_llm/providers/openrouter.ex:1051-1060 | lib/req_llm/providers/zenmux.ex:303-310 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openrouter.ex"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d3be35a6e0e44f5a820506e9f8e6472d830a6297748d499331cb4d30039608"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/mix/tasks/model_compat.ex:118-128 | lib/mix/tasks/model_compat.ex:133-143 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/model_compat.ex"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e63b92c6dc8de1aced6974ccf0c5a931a62e78223f226db13a2bb410e8da85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/req_llm/providers/anthropic.ex:1971-1984 | lib/req_llm/provider/defaults.ex:2138-2151 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae57cb0e306c31b0e5ba7e0e5766cf3bb3286d7f7c36d7f5ac5dfc9e1f5cab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/req_llm/images.ex:391-406 | lib/req_llm/images/openai_compatible.ex:185-202 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images.ex"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0ac5be3a0bf97d1805374e89719e659178a646079ae59ffcb31ff54265bed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/lib/req_llm/examples/agent.ex:50-68 | tutorial/agents/18_embedding_retrieval.exs:78-100 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/lib/req_llm/examples/agent.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6529761b72f1cf5b88370ce14c34c7a098408e62e3477617f7ea217b93dd5044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/req_llm/providers/fireworks_ai.ex:407-419 | lib/req_llm/providers/fireworks_ai.ex:423-436 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/fireworks_ai.ex"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4add1bfeb5b7e1d3046dec555720909b9d534902ef5a0801b1159968c93834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): lib/req_llm/embedding.ex:116-128 | lib/req_llm/images.ex:375-387 | lib/req_llm/ocr.ex:96-108 | lib/req_llm/rerank.ex:200-211 | lib/req_llm/video.ex:583-595 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/embedding.ex"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"762dbe297c191091e03e4d76de6b8143fa0b5747b0baa9eb8454ce59f7749aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): lib/req_llm/providers/anthropic.ex:253-266 | lib/req_llm/providers/openai.ex:545-556 | lib/req_llm/providers/openai_codex.ex:195-204 | lib/req_llm/providers/xai.ex:183-195 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"52735c70b2f0e89557663a709b83d273ec34f4c47b58ca1fd0de6529ee8c58c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/req_llm/schema.ex:616-632 | lib/req_llm/schema.ex:725-740 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/schema.ex"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f507445f2a20ee113903ecfca51b8eca118aba4416d89bbb5e5d2a4d07ad94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/req_llm/images/openai_compatible.ex:907-915 | lib/req_llm/providers/xai/images_api.ex:100-108 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images/openai_compatible.ex"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e8da081b5e68f28d94794ef197ece874e67d3c3509cf37b50bf009c67d479e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): tutorial/agents/07_agent_cli_repl.exs:64-74 | tutorial/agents/06_memory_context.exs:63-70 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/07_agent_cli_repl.exs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8231e6dc3ff85e1afd5b4cfb0ff99e97e59e4989dd17b9aa25b6c7112aa12ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): tutorial/agents/13_agent_profiles.exs:75-79 | tutorial/agents/19_http_api_agent.exs:45-49 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/13_agent_profiles.exs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"096134d739ccc2849b2fc977280091fb9b2ec36ee12bb06083aa816c922dc177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/req_llm/availability.ex:164-171 | lib/req_llm/request_plan.ex:365-369 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/availability.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f707206004328dce76a66e0be9ebfac0648c0507cf51fd85d1889805690a6812"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/req_llm/provider/defaults.ex:1195-1204 | lib/req_llm/providers/openrouter.ex:765-773 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"799679814812b6abe1d88fad6133e015142f0111a79cb86198d84b3ae71e2479"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/req_llm/providers/github_copilot.ex:94-111 | lib/req_llm/providers/inference.ex:122-139 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/github_copilot.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"952963a3718e9651a415f4d20605b13e9da534e288558bd744ccd3d57efca87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/req_llm/stream_response.ex:646-661 | lib/req_llm/stream_response/event_projector.ex:486-500 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/stream_response.ex"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62f658d0a1ce98cdfbae3f039e29dec6f18d00f65268a4091545270a16efb13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): lib/req_llm/availability.ex:138-147 | lib/req_llm/availability.ex:151-160 | lib/req_llm/provider/options.ex:818-827 | lib/req_llm/providers/openai.ex:1059-1069 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/availability.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3750dd5cbd14cc4a5bc6a04e0a4d0fa2f52fedfa56b97c308e6d1336c7f106c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/req_llm/bedrock/bidi_stream.ex:196-204 | lib/req_llm/streaming/web_socket_session.ex:261-269 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/bedrock/bidi_stream.ex"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e1c75d8705d10006fd939c8d735594b9069499be1355eec58287f0052fc0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/open_telemetry.ex:303-306 | lib/req_llm/open_telemetry/translator.ex:107-110 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/open_telemetry.ex"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c95f7d852cafa326fa91347c092cd039c105c66a34d454ef32700262651b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): tutorial/agents/05_agent_phased.exs:47-50 | tutorial/agents/08_agent_streaming_finalize.exs:45-50 | tutorial/agents/09_agent_usage_logging.exs:44-47 | tutorial/agents/10_agent_task_tools.exs:57-60 | tutorial/agents/11_agent_parallel_tools.exs:56-68 | tutorial/agents/12_agent_tool_retries.exs:47-51 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3d7d44226f23c556cbeb92c3c7585bcb0f2db66b339651d6b8acc4e06c0f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/req_llm/images/openai_compatible.ex:919-921 | lib/req_llm/providers/xai/images_api.ex:112-114 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images/openai_compatible.ex"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e627b62c2443cd04ef109a7da0bdb6e4ed84e53950f280a0678d198a83f605"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/req_llm/auth.ex:167-173 | lib/req_llm/providers/openai.ex:1215-1219 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/auth.ex"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0b4315311b61a2a656704473466bb9396de117b149a3432e1715899feaab57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/req_llm/open_telemetry/content.ex:225-236 | lib/req_llm/open_telemetry/shared.ex:113-124 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/open_telemetry/content.ex"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5408ec4cd88df0b6f7949314007cca3e5215add5e6f1803660af23cb2ddc2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/req_llm/providers/mistral.ex:198-204 | lib/req_llm/telemetry.ex:994-998 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/mistral.ex"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b721577d92f91e88fd75be4d419d77eb91c2428a90a42f8eb5532af8968cd842"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): tutorial/agents/06_memory_context.exs:76-79 | tutorial/agents/07_agent_cli_repl.exs:80-83 | tutorial/agents/08_agent_streaming_finalize.exs:64-67 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/06_memory_context.exs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c5b8bd470faca41cfad6b3e43f9812f7cadd9946642a0ab962f4407df74dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/req_llm/provider/defaults.ex:2004-2017 | lib/req_llm/providers/zai/shared.ex:474-486 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"8208edc2128fe564348c0906a7d839940b0f8fc21944b9765a00d2e23800c215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/providers/amazon_bedrock/cohere.ex:215-218 | lib/req_llm/tool.ex:680-686 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/cohere.ex"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5cdbf3bd92d9f0b59d18baff8cadd8bea1bd08ba8fd5c7a133d1a57c97c33f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/provider/utils.ex:182-185 | lib/req_llm/providers/amazon_bedrock/cohere.ex:205-208 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/utils.ex"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9ee4fea7bae1a700e4c6e2a94905c563e72a469eb6506795e5e4df194f5c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/req_llm/provider/defaults.ex:1805-1813 | lib/req_llm/providers/anthropic/response.ex:450-458 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8253db86bbc630c790ecc4e5a7711dc4798cb632cbb06ca51288aaabc5277a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/provider/utils.ex:195-198 | lib/req_llm/providers/openai/responses_api.ex:2253-2257 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/utils.ex"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a98290b1fc10b656720a59c58f393339c9cc1ea25c0222d0762c65ad3fda01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/provider_file_reference.ex:285-291 | lib/req_llm/providers/openai/files.ex:737-740 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider_file_reference.ex"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"888d68d976abbbd2d4474f083b0126ac27870d80adce4ea01e4dc656a93cdda2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): examples/scripts/usage_cost_search_image.exs:324-331 | examples/scripts/usage_cost_smoke.exs:66-69 | lib/mix/tasks/model_compat.ex:764-767 | lib/mix/tasks/provider_drift.ex:134-141 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/usage_cost_search_image.exs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0a1de4024db70a2df0f5bb5de1a830cbb6d5622aad1d1b88eccce9f2554dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/mix/tasks/model_compat.ex:912-915 | lib/mix/tasks/provider_drift.ex:174-178 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/model_compat.ex"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca49695b63bc5581801986d2ff1246cd47114dd4a01321e1c9707cd5436d84b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/req_llm/context.ex:761-773 | lib/req_llm/message.ex:131-135 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"b436aad0f6cb7a425318f81fd898f2200b8fe1841330acf2f21bf5a42ccef10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/req_llm/providers/amazon_bedrock.ex:891-896 | lib/req_llm/providers/amazon_bedrock/converse.ex:452-456 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bf95b371bc57888fcf7a4ff08ca85030a1f27e4d2b773841124512d20c88d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/req_llm/providers/amazon_bedrock.ex:902-909 | lib/req_llm/providers/azure.ex:1245-1252 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c08c5eacdf074651259153fd1f3a33a9bcf37ba756b0674f856d5e1aa01011f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/providers/openai/responses_api.ex:2665-2668 | lib/req_llm/schema.ex:1051-1054 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"f639eeab0d647256cfbf3b2828371b89904605da61b607f83cfda59d9f8f5d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/req_llm/stream_server.ex:282-293 | lib/req_llm/streaming.ex:113-117 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/stream_server.ex"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2248fed6a5f9647198f4f4a672d7f3cf75254f76705a1fca0779e945a9f2ff65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): tutorial/agents/03_streaming_basics.exs:37-40 | tutorial/agents/04_agent_sync_tool_calling.exs:44-53 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/03_streaming_basics.exs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f186cf8eb29b84316679ef212f0a341426f66666e28793b8c65503bffc17ab2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/req_llm/open_telemetry/content.ex:133-137 | lib/req_llm/providers/xai.ex:946-950 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/open_telemetry/content.ex"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5529689d3738ae250997707dba7c3d7e3a6a04ed9713855349ff4216af7b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/provider/options.ex:875-878 | lib/req_llm/request_plan.ex:393-396 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/options.ex"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eaea176f92c4900bcb750b68c72198285c1304a313eb95206dc258a510299ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/req_llm/providers/amazon_bedrock/converse.ex:686-690 | lib/req_llm/providers/anthropic/context.ex:173-177 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cbcc614558b70d2658fd1e19982f43a340eb7497e4de9ad299d124e15dd6bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): lib/req_llm/auth.ex:31-34 | lib/req_llm/keys.ex:45-48 | lib/req_llm/providers/github_copilot.ex:128-131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/auth.ex"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50a917a64e6a1b342837fb55c32033230a536c8e1f65cacb86db9aa5f8324f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/call_metadata.ex:51-54 | lib/req_llm/providers/openai/responses_api.ex:1973-1979 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/call_metadata.ex"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a89759b82023fe903202c91353429775b5c34271dfeabe3e58f7ad45e4be3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/speech.ex:283-286 | lib/req_llm/transcription.ex:278-281 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/speech.ex"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"af631ee75dcf13dbf627c21d7f7a67e2f5ac7d92f23bba33d409580b708876fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 2\u002B corresponding lines): tutorial/agents/05_agent_phased.exs:56-60 | tutorial/agents/08_agent_streaming_finalize.exs:56-59 | tutorial/agents/09_agent_usage_logging.exs:52-53 | tutorial/agents/10_agent_task_tools.exs:65-66 | tutorial/agents/11_agent_parallel_tools.exs:73-74 | tutorial/agents/12_agent_tool_retries.exs:56-57 | tutorial/agents/20_liveview_chat_agent.exs:56-57 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"635d14f0efdf5e7a7fa8ac3bcc376e53d460120f98bc77e03b077505a2017c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/req_llm/bedrock/bidi_stream.ex:226-227 | lib/req_llm/streaming/web_socket_session.ex:320-321 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/bedrock/bidi_stream.ex"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42c0b0bc021e987ea8ab5abef0e986b81ac32d3ceccdfd5d874c26537c50f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/req_llm/open_telemetry/attributes.ex:477-483 | lib/req_llm/rerank.ex:550-556 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/open_telemetry/attributes.ex"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bafd71dd42825f3c10a8f30581e3bef79eea4b6de2f15fcd5b90099aabfe9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/req_llm/billing.ex:168-171 | lib/req_llm/usage/normalize.ex:137-139 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/billing.ex"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd88c24de41de1f0d4e4d58ae9db7dcc298e46fc3380bd224a3bb802acc5a4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/open_telemetry/attributes.ex:164-170 | lib/req_llm/open_telemetry/metrics.ex:297-300 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/open_telemetry/attributes.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cf5d07a62446aba512ff8d3f867ec839e7d9d8977926446587b34a2c5f5ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/req_llm/providers/anthropic.ex:489-491 | lib/req_llm/providers/inference.ex:199-201 | lib/req_llm/providers/openai/files.ex:372-374 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d98bd8c01e563f3d05cb02f7840fc294cdba15e498e157a0deacab6b858a3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): lib/req_llm/streaming.ex:354-357 | lib/req_llm/streaming/finch_client.ex:404-407 | lib/req_llm/streaming/web_socket_client.ex:361-364 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/streaming.ex"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee8a2e3c90c3db14783c0e59c3378401768010dc17ec87144521560d0e0585b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/req_llm/images/openai_compatible.ex:241-248 | lib/req_llm/providers/google.ex:636-644 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images/openai_compatible.ex"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa24a200771a8f334c8c5a820e608a8b455cf4ac9c80ef93113b3dbd44c26a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): lib/req_llm/model_operation.ex:233-236 | lib/req_llm/open_telemetry/attributes.ex:218-221 | lib/req_llm/open_telemetry/content.ex:240-243 | lib/req_llm/providers/openai/decisions_api.ex:699-702 | lib/req_llm/providers/openai/files.ex:800-803 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/model_operation.ex"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c6e04bdfb4d6f7ccfc5476ff12c4a4800190b3bf89e5a0b824616ed450b6ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/req_llm/providers/amazon_bedrock/meta.ex:42-46 | lib/req_llm/providers/openai_codex/responses_lite.ex:92-94 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/meta.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"106c91efa83542a348cf15f3f33a2833f2bafc4a57f350b9e955883f2a06f08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/providers/azure.ex:1618-1623 | lib/req_llm/providers/fireworks_ai.ex:445-448 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/azure.ex"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5be3b952bff9c17d7cc380f91e0b328620b36898f45f4eeee745eb25f404a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/req_llm/providers/meta.ex:296-302 | lib/req_llm/providers/minimax.ex:379-384 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/meta.ex"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ab6a6f41d55dca15fc6548d2f8e19f6429fb387d43b8de2cd4d9954af4b9e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/providers/openai/chat_api.ex:92-95 | lib/req_llm/providers/openai/responses_api.ex:878-881 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/chat_api.ex"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0a4dfc851126eb5299ba6b6fa1a48a8c8511be1634a0d447292b4dc266a0fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/req_llm/pricing_context.ex:115-116 | lib/req_llm/providers/stepfun/shared.ex:332-332 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/pricing_context.ex"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"804e9680d85689b0983d508e9d513f0b62457a3c15929feca1240873c9ad0bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/req_llm/provider/defaults.ex:1182-1183 | lib/req_llm/providers/openai/responses_api.ex:1355-1356 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d245bacee7c9f966fae7d8d008ca8fe885e6a18a28b34ad860b9a717a25b1b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/provider/defaults.ex:1826-1829 | lib/req_llm/providers/openai/responses_api.ex:3141-3144 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"6504755d048b70ae96fc9855abfb7ac4004d4367ad3144e6c98252a5e31fbeec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/req_llm/providers/amazon_bedrock.ex:1524-1531 | lib/req_llm/providers/meta.ex:125-132 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ee9e290716b61596bbb45d58084d9d8a3e10d08963d10c67c98bcd66e2c612"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/req_llm/providers/anthropic.ex:2083-2084 | lib/req_llm/providers/openai.ex:1127-1128 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":2083}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e6ce6e1447729d330ce77c6e1ac9bf10c0c8f8011599d8b28e55fa7dac771a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/req_llm/response/projection.ex:174-176 | lib/req_llm/stream_response/event_projector.ex:437-439 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/response/projection.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef114c467614ccacd0308e2d63dcf5c1d3be1a811fb6420ca4b55e11a5fcb24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/streaming.ex:369-372 | lib/req_llm/streaming/finch_client.ex:411-414 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/streaming.ex"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cf5c7a753c392b4f885baf6f5c95143d9897cedad3fe2324020028db1fd71d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/req_llm/evaluation.ex:257-257 | lib/req_llm/providers/openai/responses_api.ex:2047-2048 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/evaluation.ex"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee784986ea3435a4b1812adb9048c1cf2320cb58d764c57f3f9e831bc8e7517"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/model_helpers.ex:319-322 | lib/req_llm/providers/amazon_bedrock.ex:1055-1058 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/model_helpers.ex"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb83dfc91b023c16586269a4fdca24a5cbe365f093b93321c43bba762bac01f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/req_llm/provider/defaults.ex:1013-1018 | lib/req_llm/providers/openrouter.ex:1123-1128 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"d699c9ad43e364f92f12c257e6d5e6ba358372adf3a83f0ded4d1fe1c2f80e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/req_llm/provider/defaults.ex:1179-1180 | lib/req_llm/providers/openai/responses_api.ex:1352-1353 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"96db95f60e2f68db9bd1f6b2b2f631a4751a645afbaa4f488e1d823d70180e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): lib/req_llm/provider/defaults.ex:2211-2212 | lib/req_llm/providers/anthropic.ex:2052-2053 | lib/req_llm/providers/xai.ex:1342-1343 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a1d108988fbec207bbda1e252d5d76588019893d422e207d95ae87d0267c5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/providers/amazon_bedrock/converse.ex:843-846 | lib/req_llm/providers/anthropic/response.ex:569-572 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc7a14b5380e4eefa8d71b9847a72374bafd0c3b16462413df070c8e061eedf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/req_llm/providers/openai_codex.ex:601-604 | lib/req_llm/response.ex:110-112 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai_codex.ex"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bdd75fb1c324d92821881cdf6c92630509e9c4e9e6ff8dfa773265b4832998"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/req_llm/request_plan/diagnostic.ex:193-194 | lib/req_llm/response/projection.ex:392-392 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/request_plan/diagnostic.ex"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6ca1450d248e90da4a24f80950131f3f90b66d04ee384f344b00699413744e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): examples/lib/req_llm/examples/helpers.ex:370-377 | lib/req_llm/images/openai_compatible.ex:1070-1077 | lib/req_llm/providers/openrouter.ex:696-703 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/lib/req_llm/examples/helpers.ex"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7eb2ac0368030979f57a12a78d69e4d0f89a715e85f9b13934e870ec5e1248"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/req_llm/providers/xai.ex:1335-1338 | lib/req_llm/tool_call.ex:391-394 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/xai.ex"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"facb08507a2771eb694728c45db728f9d663199e392bb5c77af64f88bc1ee164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): lib/req_llm/providers/openai.ex:716-748 | lib/req_llm/providers/openai_codex.ex:752-786 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openai.ex\u0060 and \u0060lib/req_llm/providers/openai_codex.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openai_codex.ex:752\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai.ex"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04470b9e0c3e9a2932333b73d127128adf9d5d5a4b4a13917a87e6184cfa35b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): lib/req_llm/provider/defaults.ex:2101-2134 | lib/req_llm/providers/anthropic.ex:1935-1967 \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/req_llm/provider/defaults.ex"},"region":{"startLine":2101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7c23fc573acaaf0dee2c6deb7fec81afc6fe847ccad8ef1dd3cdce32ab4d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201334 lines \u00D7 2): lib/req_llm/providers/google.ex:330-355 | lib/req_llm/providers/google.ex:401-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/google.ex:401\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a181750cd7f2469115ddd90dd95cac09f06be8de50fe555f2bf03e11911f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): lib/req_llm/providers/minimax.ex:536-566 | lib/req_llm/providers/xai.ex:343-373 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/minimax.ex\u0060 and \u0060lib/req_llm/providers/xai.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 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/req_llm/providers/minimax.ex"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bd957bd39be1c0d48fdfe5add53f9a47cd4aa0b63b47c13c5b8f6446c1a5f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lib/mix/tasks/model_compat.ex:358-387 | lib/mix/tasks/model_compat.ex:406-435 \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/mix/tasks/model_compat.ex"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1340f2fe4caeec62f26cf010390d030b4afb057685460c37d2522268bcedfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock/openai.ex:30-57 | lib/req_llm/providers/google_vertex/openai_compat.ex:27-56 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/amazon_bedrock/openai.ex\u0060 and \u0060lib/req_llm/providers/google_vertex/openai_compat.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/openai.ex"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a4f23d207d132e9e5dff2a86c547fdbaae1910309a221e2a5f85012b12bdbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201328 lines \u00D7 2): tutorial/agents/13_agent_profiles.exs:17-44 | tutorial/agents/15_conversation_supervisor.exs:19-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/13_agent_profiles.exs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17efb440fc30301a42b0e51602ddd2e9cba08aa6663485ddd6eac6b25a85e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): tutorial/agents/08_agent_streaming_finalize.exs:117-143 | tutorial/agents/09_agent_usage_logging.exs:108-132 \u2014 before extracting anything, compare \u0060tutorial/agents/08_agent_streaming_finalize.exs\u0060 and \u0060tutorial/agents/09_agent_usage_logging.exs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 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":"tutorial/agents/08_agent_streaming_finalize.exs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26fbfb7f9ca37bca7a0237eb3901106e8ebd9f54ed2e27bb9454e5703f41ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lib/req_llm/providers/minimax.ex:117-142 | lib/req_llm/providers/xai.ex:237-262 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/minimax.ex\u0060 and \u0060lib/req_llm/providers/xai.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/minimax.ex:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2b1e38fc4795edc769001ef71fae321cf81f828ca95d280f47438811c982b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lib/req_llm/providers/openrouter.ex:1203-1228 | lib/req_llm/providers/zenmux.ex:319-344 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openrouter.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openrouter.ex:1203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openrouter.ex"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"da03634ddf0fbec1111517a07f7fe3f830faf959924be2305f696fc6ea584786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/req_llm/provider/defaults.ex:262-285 | lib/req_llm/provider/defaults.ex:408-431 \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/req_llm/provider/defaults.ex"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"869a19d95ecaa183afccd96154ffd4174a35e969cd18fd878c1794ddc0cec1c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/req_llm/providers/openrouter.ex:974-997 | lib/req_llm/providers/zenmux.ex:226-249 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openrouter.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openrouter.ex:974\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openrouter.ex"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1af93800fbb21dd61fd7c144d40bc2010026d8a1277923b11774abe424a4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201323 lines \u00D7 3): tutorial/agents/10_agent_task_tools.exs:145-167 | tutorial/agents/11_agent_parallel_tools.exs:169-191 | tutorial/agents/12_agent_tool_retries.exs:134-148 \u2014 before extracting anything, compare \u0060tutorial/agents/10_agent_task_tools.exs\u0060 and \u0060tutorial/agents/11_agent_parallel_tools.exs\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":"tutorial/agents/10_agent_task_tools.exs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b2870aafeef198a802c96ed0bcd18abc028dc7edea543f905a1ea1f587a78e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): lib/req_llm/providers/azure.ex:507-525 | lib/req_llm/providers/azure.ex:678-700 \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/req_llm/providers/azure.ex"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e92870270b647e4f6d5cef5e610d0ceb7b79885964dbd08f42a9188f6f46d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): lib/req_llm/providers/openai_codex.ex:301-323 | lib/req_llm/providers/openai_codex.ex:359-379 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/req_llm/providers/openai_codex.ex:379\u0060 calls \u0060effective_base_url\u0060, \u0060websocket_headers\u0060, \u0060codex_websocket_url\u0060 and \u0060lib/req_llm/providers/openai_codex.ex:323\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai_codex.ex"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ad75299e58f3cb20da5c5e7cc37328019903788dba8f6274f585ffa399be66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/req_llm/providers/openrouter.ex:1001-1023 | lib/req_llm/providers/zenmux.ex:253-275 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openrouter.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 143 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/req_llm/providers/openrouter.ex"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"1042d4e41619342cbe212fe552e0696939f8e050eba28bdbf68b43c48ba5fa3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lib/req_llm/providers/anthropic/oauth.ex:41-62 | lib/req_llm/providers/openai/oauth.ex:37-57 \u2014 \u0060lib/req_llm/providers/anthropic/oauth.ex\u0060 and \u0060lib/req_llm/providers/openai/oauth.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/anthropic/oauth.ex:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/oauth.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cded4555d4d6e7489427a0fb894901fe3c105138330a4369990421fb48c4cc89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lib/req_llm/providers/groq.ex:63-84 | lib/req_llm/providers/zenmux.ex:85-105 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/groq.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/groq.ex:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/groq.ex"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b604e0ed2d2e09f813af333a429fd9228424a62267484fa0619f0563a118a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): lib/req_llm/providers/zai/shared.ex:28-49 | lib/req_llm/providers/zai_coding_plan.ex:64-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/zai/shared.ex:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/zai/shared.ex"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b88eb65177fc803632ea8df720183a0a19b0a3528b2d73133f8f20085ae230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 4): tutorial/agents/05_agent_phased.exs:87-105 | tutorial/agents/06_memory_context.exs:104-120 | tutorial/agents/07_agent_cli_repl.exs:108-124 | tutorial/agents/08_agent_streaming_finalize.exs:96-112 \u2014 before extracting anything, compare \u0060tutorial/agents/05_agent_phased.exs\u0060 and \u0060tutorial/agents/06_memory_context.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a250ecb835f2e6a9c7ac5c94d927cbb04eec65ebb568d097cc9e3bebf234bc7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/req_llm/provider/defaults.ex:2183-2201 | lib/req_llm/providers/zai/shared.ex:206-224 \u2014 before extracting anything, compare \u0060lib/req_llm/provider/defaults.ex\u0060 and \u0060lib/req_llm/providers/zai/shared.ex\u0060 as WHOLE FILES: this scan already matched 3 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. 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/req_llm/provider/defaults.ex"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"83913119326a3d2e050ba06c66bba2ee86a27a0d081cf24b8a375c518705e6fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/req_llm/embedding.ex:215-233 | lib/req_llm/embedding.ex:251-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/embedding.ex:215\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/embedding.ex"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d983dc20178124a0875e061469046a89fb9c7a520c12f4bfb1180b1066627c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock/anthropic.ex:195-212 | lib/req_llm/providers/google_vertex/anthropic.ex:133-150 \u2014 \u0060lib/req_llm/providers/amazon_bedrock/anthropic.ex\u0060 and \u0060lib/req_llm/providers/google_vertex/anthropic.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b0c59821d7befadbc056555843224c4998fe0de5f786f93af6740e44675a4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 4): lib/req_llm/providers/amazon_bedrock/converse.ex:259-272 | lib/req_llm/providers/amazon_bedrock/openai.ex:97-113 | lib/req_llm/providers/anthropic/adapter_helpers.ex:26-39 | lib/req_llm/providers/google_vertex/openai_compat.ex:131-144 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/amazon_bedrock/openai.ex\u0060 and \u0060lib/req_llm/providers/google_vertex/openai_compat.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/req_llm/providers/amazon_bedrock/converse.ex:272\u0060 calls \u0060put\u0060, \u0060get\u0060 and \u0060lib/req_llm/providers/amazon_bedrock/openai.ex:113\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff87012fd3fea36648577de5fd7682ed36db8f794f9cd3ecd22399d93bee13c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 3): lib/req_llm/providers/google.ex:1185-1201 | lib/req_llm/providers/google.ex:1361-1372 | lib/req_llm/providers/google.ex:1451-1463 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4887f6cef7b6464720634ff9d0c7cc023f4ca5d3ca15bc2a1379f7ad113acc90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock/anthropic.ex:136-152 | lib/req_llm/providers/azure/anthropic.ex:164-180 \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/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3fd6c4d6d71ef785793dde1ad33682c7e215afca0b7a4c575c620b816d673f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 2): lib/req_llm/providers/cohere.ex:23-39 | lib/req_llm/providers/superlinked.ex:30-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/cohere.ex:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/cohere.ex"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4da8f80f4c6e989342a8a9123f5ec89cbc7b2812112494ae7a9cba98e613a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 4): lib/req_llm/providers/fireworks_ai.ex:236-248 | lib/req_llm/providers/openai.ex:757-772 | lib/req_llm/providers/openai_codex.ex:796-811 | lib/req_llm/providers/xai.ex:476-491 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openai.ex\u0060 and \u0060lib/req_llm/providers/openai_codex.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/fireworks_ai.ex"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f23fe41e114c6256dbed19f3dacc89620a97cc6b189184d805011399e4f3e06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/req_llm/provider/defaults.ex:2164-2179 | lib/req_llm/providers/zai/shared.ex:187-202 \u2014 before extracting anything, compare \u0060lib/req_llm/provider/defaults.ex\u0060 and \u0060lib/req_llm/providers/zai/shared.ex\u0060 as WHOLE FILES: this scan already matched 3 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. 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/req_llm/provider/defaults.ex"},"region":{"startLine":2164}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ffe3406e04f178c17bff29336e002542c9efecd223a59d87aabe40c23f06ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/req_llm/providers/anthropic.ex:1134-1149 | lib/req_llm/providers/anthropic.ex:1205-1220 \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/req_llm/providers/anthropic.ex"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"256100f389c8d37471cf54bd23fbb7fca183791f9a9da9522f36bf844823c17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/req_llm/providers/google/cached_content.ex:306-321 | lib/req_llm/providers/google/cached_content.ex:445-460 \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/req_llm/providers/google/cached_content.ex"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8300a130d35d91c652d9ceff7c58e7ede325dd417b19ec9f3bb6682abfcfbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/req_llm/providers/openrouter.ex:211-226 | lib/req_llm/providers/zenmux.ex:103-118 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openrouter.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 143 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/req_llm/providers/openrouter.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96c7cd6dbfb12f47ce490d22d696bfd874d8e6a8fcb85917bdff4a47a3452f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/req_llm/providers/google.ex:345-359 | lib/req_llm/providers/google.ex:424-438 | lib/req_llm/providers/google.ex:489-503 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/google.ex:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd7e5337cecbc57880bd4f91cea4179c0156c71682b72e3699fd8886c811490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 3): tutorial/agents/10_agent_task_tools.exs:73-87 | tutorial/agents/11_agent_parallel_tools.exs:79-89 | tutorial/agents/12_agent_tool_retries.exs:62-72 \u2014 before extracting anything, compare \u0060tutorial/agents/10_agent_task_tools.exs\u0060 and \u0060tutorial/agents/11_agent_parallel_tools.exs\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":"tutorial/agents/10_agent_task_tools.exs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b748eae1658b3223faa294b99b7eec6cf694939a733c9ecfcc5a1c2a8cac4142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/req_llm/provider/defaults.ex:1964-1979 | lib/req_llm/providers/zai/shared.ex:266-281 \u2014 before extracting anything, compare \u0060lib/req_llm/provider/defaults.ex\u0060 and \u0060lib/req_llm/providers/zai/shared.ex\u0060 as WHOLE FILES: this scan already matched 3 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. 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/req_llm/provider/defaults.ex"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"8131fe7c2ed01a62f90d581285241d8cd117da598db977fccbbe47930e9664ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock.ex:310-324 | lib/req_llm/providers/amazon_bedrock.ex:335-347 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/req_llm/providers/amazon_bedrock.ex:350\u0060 calls \u0060put\u0060 and \u0060lib/req_llm/providers/amazon_bedrock.ex:324\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4770c7d52f8f25a07252e800145196ff4ca2dd1eac08c4bf9a1de44910e0d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 4): lib/req_llm/providers/minimax.ex:128-141 | lib/req_llm/providers/minimax.ex:189-202 | lib/req_llm/providers/openai.ex:520-531 | lib/req_llm/providers/xai.ex:248-261 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/minimax.ex\u0060 and \u0060lib/req_llm/providers/xai.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/minimax.ex:128\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c939c766b71499595a83c04a48a43fa9d4de5e01941d3496dbef4f5731499afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): lib/mix/tasks/model_compat.ex:225-238 | lib/mix/tasks/model_compat.ex:324-335 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/model_compat.ex"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9aba73ce162b1d97c82e20ba6f3f9e4a0aa482812ca30920dc91d6e07421e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/req_llm/providers/google.ex:2130-2143 | lib/req_llm/providers/google.ex:2192-2205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/google.ex:2130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc183b257d98865888fbce80f496a29ec1fd1acbee6579e765036c5f264d6839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/req_llm/providers/google_vertex.ex:268-281 | lib/req_llm/providers/google_vertex.ex:306-319 \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/req_llm/providers/google_vertex.ex"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c819bc23e3fe542c60dabb98afef0bd234a0a1d3b9f89f5b2f63273bb1f7bf1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/req_llm/providers/minimax.ex:220-233 | lib/req_llm/providers/minimax.ex:256-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/minimax.ex:220\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"59201e664a7f9e266acaa5eb3aa87663887c64df01d39e1fb07ce893a536dc9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/req_llm/providers/minimax/images_api.ex:163-176 | lib/req_llm/providers/minimax/video_api_v1.ex:263-276 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/images_api.ex"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"89daa4bac255bfe9fc37d8cb6a506a1f94d3ae2e0b278f05c0edb768ef575508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/req_llm/providers/minimax/images_api.ex:162-174 | lib/req_llm/providers/minimax/video_api.ex:224-236 | lib/req_llm/providers/minimax/video_api_v1.ex:262-274 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/minimax/video_api.ex\u0060 and \u0060lib/req_llm/providers/minimax/video_api_v1.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/minimax/images_api.ex:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/images_api.ex"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dff20b049130a9140d6c9f935a14d40f91a99bd4c9de4de9f7e9fbf7541e02b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/req_llm/images/openai_compatible.ex:678-690 | lib/req_llm/providers/xai/images_api.ex:42-54 \u2014 before extracting anything, compare \u0060lib/req_llm/images/openai_compatible.ex\u0060 and \u0060lib/req_llm/providers/xai/images_api.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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/req_llm/images/openai_compatible.ex"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"472874eb5799d8794120fe3c9f5a73ef9528d1f3ef362ad2aa8c0ae28a08a476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/req_llm/providers/anthropic/oauth.ex:79-91 | lib/req_llm/providers/openai/oauth.ex:76-88 \u2014 \u0060lib/req_llm/providers/anthropic/oauth.ex\u0060 and \u0060lib/req_llm/providers/openai/oauth.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/anthropic/oauth.ex:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/oauth.ex"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd53757c2e37e8513d966cdb442613c544239bc0cada2f32fa8ab70317e29e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/req_llm/providers/azure.ex:693-705 | lib/req_llm/providers/azure.ex:749-761 \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/req_llm/providers/azure.ex"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace2dcd2233cecf47b9c685feb70213f10c0f2d38133d119bc4a01fe8481213b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/req_llm/providers/google.ex:315-326 | lib/req_llm/providers/google.ex:387-399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/google.ex:315\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c145f4aec30a16b5e221fec6e1772a0cc9ce70c82fd499a308dd6f04c587e205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/req_llm/providers/minimax.ex:789-801 | lib/req_llm/providers/openrouter.ex:1075-1087 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/minimax.ex:789\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dc20095f4ae8e0ff9b4a8d286a159e19fe1b8348035343c7310b8d2f153aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/req_llm/providers/minimax/images_api.ex:128-140 | lib/req_llm/providers/xai/images_api.ex:84-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/minimax/images_api.ex:128\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/images_api.ex"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"406a1bc53a887e87f68f1204d578e84460dda80be37e15224b60d727a683824f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/req_llm/providers/openai/responses_api.ex:2173-2185 | lib/req_llm/providers/openai/responses_api.ex:2188-2200 \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/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":2173}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c28eb80f6cf01f71a7f86d296abee2f0a46834707701e9dab61c9f6b46c556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/req_llm/streaming/finch_client.ex:78-90 | lib/req_llm/streaming/web_socket_client.ex:23-35 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/streaming/finch_client.ex:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/streaming/finch_client.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5971539ca92176fa87e94d46096586eaeaad5a5d7d4ae3b60e0dde7f6b276259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): tutorial/agents/06_memory_context.exs:45-57 | tutorial/agents/07_agent_cli_repl.exs:46-58 \u2014 before extracting anything, compare \u0060tutorial/agents/06_memory_context.exs\u0060 and \u0060tutorial/agents/07_agent_cli_repl.exs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 97 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":"tutorial/agents/06_memory_context.exs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"896d071cc723bc16ea75201192f421feec8f6988bf3cf55b12e409442de17b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 5): tutorial/agents/05_agent_phased.exs:69-77 | tutorial/agents/06_memory_context.exs:88-95 | tutorial/agents/07_agent_cli_repl.exs:92-99 | tutorial/agents/08_agent_streaming_finalize.exs:76-87 | tutorial/agents/20_liveview_chat_agent.exs:62-69 \u2014 before extracting anything, compare \u0060tutorial/agents/05_agent_phased.exs\u0060 and \u0060tutorial/agents/06_memory_context.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060tutorial/agents/05_agent_phased.exs:65\u0060 calls \u0060puts\u0060 and \u0060tutorial/agents/20_liveview_chat_agent.exs:61\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"607ef04d59c713622d10e5724bcdc13525e0ac6c49caa799374724d9abfa74df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/req_llm/provider/defaults.ex:266-277 | lib/req_llm/provider/defaults.ex:412-423 | lib/req_llm/providers/superlinked.ex:45-56 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/provider/defaults.ex:266\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"038cd7303669134f026ef9f8e2c3fc1c7520423ed73baa9c6f68b3e1a7d5d933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/req_llm/provider/defaults.ex:479-490 | lib/req_llm/providers/openai.ex:651-662 | lib/req_llm/providers/openrouter.ex:313-324 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/req_llm/providers/openrouter.ex:310\u0060 calls \u0060put_header\u0060, \u0060maybe_add_attribution_headers\u0060 and \u0060lib/req_llm/provider/defaults.ex:477\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"adca42f3cc75f67d171d8e4a99d5d4bf8652e821ea2672ff300169c0abf0f46b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): lib/req_llm/providers/groq.ex:79-90 | lib/req_llm/providers/openrouter.ex:208-218 | lib/req_llm/providers/zenmux.ex:100-110 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/groq.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/groq.ex"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdf644b372360bc1d7e2a3eb9527866376277dd860f3486afaf277fa8133600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock/anthropic.ex:76-88 | lib/req_llm/providers/google_vertex/anthropic.ex:54-65 \u2014 \u0060lib/req_llm/providers/amazon_bedrock/anthropic.ex\u0060 and \u0060lib/req_llm/providers/google_vertex/anthropic.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/req_llm/providers/google_vertex/anthropic.ex:68\u0060 calls \u0060encode_request\u0060 and \u0060lib/req_llm/providers/amazon_bedrock/anthropic.ex:91\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"95019fc29c9d67e1b52d02b6f6cffc6a1e52f955c2a4e6cda231c233e9d99080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/req_llm/providers/cohere.ex:89-100 | lib/req_llm/providers/github_copilot.ex:75-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/req_llm/providers/github_copilot.ex:74\u0060 calls \u0060put_header\u0060, \u0060integration_id\u0060 and \u0060lib/req_llm/providers/cohere.ex:88\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/cohere.ex"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79646964ded46f379b946861a29c6393fa99ade6f0dfddf798752191db534af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/req_llm/providers/openrouter.ex:1029-1041 | lib/req_llm/providers/zenmux.ex:281-293 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openrouter.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openrouter.ex:1029\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openrouter.ex"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b147adb5f0ce56f8e4417eec0985c3494ad1908b7928095999fd4ce3f2bf7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 9): tutorial/agents/05_agent_phased.exs:72-79 | tutorial/agents/06_memory_context.exs:91-97 | tutorial/agents/07_agent_cli_repl.exs:95-101 | tutorial/agents/08_agent_streaming_finalize.exs:79-89 | tutorial/agents/09_agent_usage_logging.exs:73-79 | tutorial/agents/10_agent_task_tools.exs:83-89 | tutorial/agents/11_agent_parallel_tools.exs:85-91 | tutorial/agents/12_agent_tool_retries.exs:68-74 | tutorial/agents/20_liveview_chat_agent.exs:65-71 \u2014 before extracting anything, compare \u0060tutorial/agents/05_agent_phased.exs\u0060 and \u0060tutorial/agents/06_memory_context.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060tutorial/agents/05_agent_phased.exs:65\u0060 calls \u0060puts\u0060 and \u0060tutorial/agents/20_liveview_chat_agent.exs:61\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b90a27e0a0b10b650655709ed96e53855aba32d10b5f30e8fdd661787820a3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 3): tutorial/agents/05_agent_phased.exs:110-120 | tutorial/agents/06_memory_context.exs:125-132 | tutorial/agents/07_agent_cli_repl.exs:129-136 \u2014 before extracting anything, compare \u0060tutorial/agents/05_agent_phased.exs\u0060 and \u0060tutorial/agents/06_memory_context.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b6812d3dbae4abe10bd430835e1d94ba75b49b102ab3b6319a47f495ba2eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/req_llm/providers/anthropic/oauth.ex:26-36 | lib/req_llm/providers/openai/oauth.ex:23-33 \u2014 \u0060lib/req_llm/providers/anthropic/oauth.ex\u0060 and \u0060lib/req_llm/providers/openai/oauth.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/anthropic/oauth.ex:26\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/oauth.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc8373841f7852f1d510389f6a0a708d75290e2de0ee45ff6a822809811e906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/req_llm/providers/google/cached_content.ex:386-396 | lib/req_llm/providers/google/cached_content.ex:563-573 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/google/cached_content.ex:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google/cached_content.ex"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"f387f128eb0d86a9184f77d81cdbc4ad879db5b2e635654bd123b9db7108bffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): lib/req_llm/providers/google_vertex.ex:343-350 | lib/req_llm/providers/google_vertex.ex:1012-1022 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/google_vertex.ex:1012\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/req_llm/providers/google_vertex.ex:341\u0060 calls \u0060put\u0060 and \u0060lib/req_llm/providers/google_vertex.ex:1010\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex.ex"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"747bab72f0e25654ce2595613962e61a95c71d8e58b221eb380787af8919532f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/req_llm/telemetry.ex:450-460 | lib/req_llm/telemetry.ex:496-506 \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/req_llm/telemetry.ex"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a960b40aac01edf1bd18284e2ca87fa664dda30abec7d48394c5d42b6d0067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/req_llm/tool.ex:621-631 | lib/req_llm/tool.ex:664-674 \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/req_llm/tool.ex"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d08d3ac9b709af9080f996f59bf38ff58552f4bd9241a862e26a6c64b46b01a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/req_llm/providers/google/cached_content.ex:472-481 | lib/req_llm/providers/google/cached_content.ex:536-545 | lib/req_llm/providers/google/cached_content.ex:567-576 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google/cached_content.ex"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38271bf382812253f16456e4f98f7c8c86c0d4de2e5b85eb6b56436449da423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): lib/req_llm/providers/openai.ex:524-532 | lib/req_llm/providers/openai.ex:684-692 | lib/req_llm/providers/openai_codex.ex:175-184 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openai.ex\u0060 and \u0060lib/req_llm/providers/openai_codex.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openai.ex:524\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai.ex"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf79c5ad71db585b15b51a4d766996b0f1cc3c28c897f2a00698694966854c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/mix/tasks/model_compat.ex:1336-1345 | lib/mix/tasks/model_compat.ex:1381-1390 \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/mix/tasks/model_compat.ex"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9324ae7e41dc819b9724a28466208e96d1f00af5dc5fdbe9481cf85f0559c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/req_llm/generation.ex:118-128 | lib/req_llm/generation.ex:237-247 \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/req_llm/generation.ex"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbcb40cd78900a869e73d88b7b3b964b4a5ac18d3db42ed5c3b5dff3af9474e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/images/openai_compatible.ex:855-864 | lib/req_llm/providers/xai/images_api.ex:82-91 \u2014 before extracting anything, compare \u0060lib/req_llm/images/openai_compatible.ex\u0060 and \u0060lib/req_llm/providers/xai/images_api.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/images/openai_compatible.ex:855\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images/openai_compatible.ex"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"7893048fc1b190aae36571b7d7f0465cf9297dec8b8e84aed72c8d4b922aebb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock.ex:394-403 | lib/req_llm/providers/amazon_bedrock.ex:520-529 \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/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8739d6d2a417e7fccaa285ffded16b6d782a7ebb1c6d0451b7029cfcfc81fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/providers/google/cached_content.ex:406-415 | lib/req_llm/providers/google/cached_content.ex:588-597 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/google/cached_content.ex:406\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google/cached_content.ex"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f83134dd3b701751d69a5642ec756eaec4550e88cfc508d4d494015ff30fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/providers/minimax.ex:523-532 | lib/req_llm/providers/xai.ex:330-339 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/minimax.ex\u0060 and \u0060lib/req_llm/providers/xai.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 81 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/req_llm/providers/minimax.ex"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"c722ae618870a06432c86eff02f83842e1b224657682123bd8aadbdc759c8fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/providers/openai.ex:965-974 | lib/req_llm/providers/openai_codex.ex:287-296 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openai.ex\u0060 and \u0060lib/req_llm/providers/openai_codex.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 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/req_llm/providers/openai.ex"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec5509d4276bda6208cfe055e9b5084b817ce1558243b2256ae28463d51d9af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/providers/openai/chat_api.ex:100-109 | lib/req_llm/providers/openai/responses_api.ex:1449-1458 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/chat_api.ex"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aec3f8114b1abcaea829a687ce87da7b1cbda38bffcc7e7cdc97f19c8fe9b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/providers/openrouter.ex:367-376 | lib/req_llm/providers/zenmux.ex:154-163 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openrouter.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openrouter.ex:367\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openrouter.ex"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa2c4a81da5ff0aff021ca3716e46d9acaf1bad2358249cd02af12c792fed21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tutorial/agents/10_agent_task_tools.exs:35-44 | tutorial/agents/11_agent_parallel_tools.exs:34-43 \u2014 before extracting anything, compare \u0060tutorial/agents/10_agent_task_tools.exs\u0060 and \u0060tutorial/agents/11_agent_parallel_tools.exs\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":"tutorial/agents/10_agent_task_tools.exs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc50444ff08d2a913982bae2033ee4a8520b0e5914fd13fa60f0efe002109a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): tutorial/agents/11_agent_parallel_tools.exs:150-164 | tutorial/agents/12_agent_tool_retries.exs:116-129 \u2014 before extracting anything, compare \u0060tutorial/agents/11_agent_parallel_tools.exs\u0060 and \u0060tutorial/agents/12_agent_tool_retries.exs\u0060 as WHOLE FILES: this scan already matched 4 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":"tutorial/agents/11_agent_parallel_tools.exs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d355956ecc5bf5f7760cc1bd7c0293af5f45064a1cc32f15206abaaa5cf9b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): tutorial/agents/04_agent_sync_tool_calling.exs:23-31 | tutorial/agents/05_agent_phased.exs:24-32 | tutorial/agents/06_memory_context.exs:23-31 | tutorial/agents/07_agent_cli_repl.exs:24-32 | tutorial/agents/08_agent_streaming_finalize.exs:23-31 | tutorial/agents/09_agent_usage_logging.exs:23-31 | tutorial/agents/10_agent_task_tools.exs:23-31 | tutorial/agents/11_agent_parallel_tools.exs:22-30 | tutorial/agents/14_router_agent.exs:22-30 | tutorial/agents/20_liveview_chat_agent.exs:32-40 \u2014 before extracting anything, compare \u0060tutorial/agents/05_agent_phased.exs\u0060 and \u0060tutorial/agents/06_memory_context.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/04_agent_sync_tool_calling.exs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5edca979e0ac49f4c2ccb06deffc5b038502cb33bf193ade3b29f69613b911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): lib/req_llm/providers/google/cached_content.ex:326-334 | lib/req_llm/providers/google/cached_content.ex:366-374 | lib/req_llm/providers/google/cached_content.ex:390-398 | lib/req_llm/providers/google/cached_content.ex:472-480 | lib/req_llm/providers/google/cached_content.ex:536-544 | lib/req_llm/providers/google/cached_content.ex:567-575 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google/cached_content.ex"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19f5fd7cd18fc343ca56afb369c8fb1416b47e64d69069ca4d257d3394dccf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/req_llm/provider/defaults.ex:270-278 | lib/req_llm/provider/defaults.ex:416-424 | lib/req_llm/providers/xai.ex:309-317 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/provider/defaults.ex:270\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c61e75d2b4d92c8eac8cefd1013adfff9766c8001bd0d26bd2597825b9c85e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/req_llm/providers/google/response_builder.ex:99-107 | lib/req_llm/providers/openrouter.ex:1210-1218 | lib/req_llm/providers/zenmux.ex:326-334 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openrouter.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 143 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/req_llm/providers/google/response_builder.ex"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f85ebf45b2d561b73b072ed64704551421b7ba33503a35302ac53c82c142cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): lib/mix/tasks/model_compat.ex:281-287 | lib/mix/tasks/model_compat.ex:1264-1272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/mix/tasks/model_compat.ex:281\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/model_compat.ex"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa150c8d01193c9a1f1977690cb9e22573b6c07ffc40cdf81b7638992e21792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/req_llm/generation.ex:392-400 | lib/req_llm/generation.ex:695-703 \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/req_llm/generation.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"0057a9b202676def5cb54c338312ea56cb11d2e332888fb80ce1e6a594fbc35f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/req_llm/provider/defaults.ex:570-578 | lib/req_llm/providers/elevenlabs.ex:119-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/provider/defaults.ex:570\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/req_llm/providers/elevenlabs.ex:128\u0060 calls \u0060put\u0060 and \u0060lib/req_llm/provider/defaults.ex:579\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd597c9964590e315a80781f9a27181b613f98cdc8b2c19f6c61b88057cf6d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/req_llm/providers/openai/responses_api.ex:1500-1508 | lib/req_llm/providers/openai_codex.ex:395-403 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openai/responses_api.ex:1500\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"7502fae8067bee37c2273e1975a2f5eb2d036ac77cc8dfc8e4451bbbbe34a229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/req_llm/providers/xai.ex:834-842 | lib/req_llm/providers/xai.ex:869-879 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/xai.ex:834\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/xai.ex"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f293a823f658dadf57c05e81eb29ff688c630ef83f3f8d193209c1e1ff5931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): tutorial/agents/14_router_agent.exs:46-53 | tutorial/agents/18_embedding_retrieval.exs:136-144 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060tutorial/agents/14_router_agent.exs:45\u0060 calls \u0060puts\u0060 and \u0060tutorial/agents/18_embedding_retrieval.exs:135\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/14_router_agent.exs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce61f958da1cef8a812509ccd11d379462ab528fe5a52d5beb9a29392fd6ab97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): tutorial/agents/05_agent_phased.exs:95-102 | tutorial/agents/06_memory_context.exs:111-118 | tutorial/agents/07_agent_cli_repl.exs:115-122 | tutorial/agents/08_agent_streaming_finalize.exs:103-110 | tutorial/agents/09_agent_usage_logging.exs:94-101 \u2014 before extracting anything, compare \u0060tutorial/agents/05_agent_phased.exs\u0060 and \u0060tutorial/agents/06_memory_context.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tutorial/agents/05_agent_phased.exs:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060tutorial/agents/05_agent_phased.exs:93\u0060 calls \u0060puts\u0060 and \u0060tutorial/agents/09_agent_usage_logging.exs:91\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/05_agent_phased.exs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b23bddd4df23117b7a25890ee7c49805e49b65ffeff8e91eec2eb2187a1f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/req_llm/provider/defaults.ex:478-485 | lib/req_llm/providers/elevenlabs.ex:168-175 | lib/req_llm/providers/openai.ex:650-657 | lib/req_llm/providers/openrouter.ex:312-319 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/provider/defaults.ex:478\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/req_llm/providers/elevenlabs.ex:176\u0060 calls \u0060put\u0060 and \u0060lib/req_llm/provider/defaults.ex:486\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79aab9578e00b321bfdb9f56afb33c7f67416ebbdab7a85d85fca20e6c6d559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/req_llm/images/openai_compatible.ex:857-864 | lib/req_llm/providers/minimax/images_api.ex:128-135 | lib/req_llm/providers/xai/images_api.ex:84-91 \u2014 before extracting anything, compare \u0060lib/req_llm/images/openai_compatible.ex\u0060 and \u0060lib/req_llm/providers/xai/images_api.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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/req_llm/images/openai_compatible.ex"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"506d3cba4be33d1abddaf1d2374826728419e33ee434072490d890f8eb1689ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/req_llm/providers/catalog_gateway.ex:36-43 | lib/req_llm/providers/cohere.ex:24-31 | lib/req_llm/providers/superlinked.ex:31-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/catalog_gateway.ex"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"533230ddab65e8e14eaa414839211df8c27dfa1cdd366103698474051486ff18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/req_llm/providers/deepseek.ex:116-125 | lib/req_llm/providers/openrouter.ex:361-370 | lib/req_llm/providers/zenmux.ex:148-157 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/openrouter.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/req_llm/providers/deepseek.ex:115\u0060 calls \u0060translate_options\u0060 and \u0060lib/req_llm/providers/zenmux.ex:146\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/deepseek.ex"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a904328ac3ac19a5713bfcd6af9c26652a98849d0c206ccd59abe41e14c3b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/req_llm/providers/google/cached_content.ex:526-533 | lib/req_llm/providers/google/cached_content.ex:580-586 \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/req_llm/providers/google/cached_content.ex"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"caae207ed5ec83e4325a99a2bb58f5dc9498204224ab869441178dfe4cc77898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/req_llm/providers/openai/decisions_api.ex:116-123 | lib/req_llm/providers/openai/decisions_api.ex:226-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openai/decisions_api.ex:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f005a26c7b3915eb8fad965c0cdd37b5b3db7ecae92d2d0c1b88502905d54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/req_llm/providers/openai/decisions_api.ex:205-212 | lib/req_llm/providers/openai/decisions_api.ex:254-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openai/decisions_api.ex:205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a368b5bb578b63e8190805d4aa3249b92c22884e58b01538bf44b9c5173476f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): lib/req_llm/speech.ex:187-192 | lib/req_llm/transcription.ex:188-195 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/speech.ex:187\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/speech.ex"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0b73648cd7d757890b98b7e66890032cfa68008ec32c8aabacf20d257ab495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): lib/req_llm/providers/fireworks_ai.ex:242-248 | lib/req_llm/providers/groq.ex:70-76 | lib/req_llm/providers/openai.ex:763-772 | lib/req_llm/providers/openai_codex.ex:802-811 | lib/req_llm/providers/xai.ex:482-491 | lib/req_llm/providers/zenmux.ex:92-98 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/groq.ex\u0060 and \u0060lib/req_llm/providers/zenmux.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/fireworks_ai.ex:242\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/fireworks_ai.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e452cb9f613768628d416e1e21c772d2d06fb59da7bf636ab0b705afd2a85b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/req_llm/provider/defaults.ex:664-671 | lib/req_llm/providers/cohere.ex:92-98 | lib/req_llm/providers/github_copilot.ex:78-84 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/provider/defaults.ex:664\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f748f7324d6f247d437d05869bf3ef1e006c908d77c9288477d976c7f9dd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/req_llm/providers/azure.ex:519-525 | lib/req_llm/providers/azure.ex:690-700 | lib/req_llm/providers/azure.ex:746-756 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/azure.ex:519\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/azure.ex"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6703453e39e922fc32b87a84aa76d9fbee61edf758315f34e4c631b27d91fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/req_llm/rerank.ex:263-269 | lib/req_llm/rerank.ex:340-346 | lib/req_llm/rerank.ex:376-382 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/rerank.ex:263\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/rerank.ex"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c81ef4c36d8f4432d31e8e77ca69a1e2936053ff835eb82d789b70cdbfcd04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/req_llm/evaluation/protocol.ex:25-31 | lib/req_llm/providers/openrouter.ex:251-257 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/evaluation/protocol.ex:25\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/evaluation/protocol.ex"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4dd3aae78c1c35d24e4b2623fae989d6ee8dfad27e5fe258bc901bcdefe5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/req_llm/providers/anthropic/response.ex:411-417 | lib/req_llm/providers/zai/shared.ex:142-148 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/req_llm/providers/anthropic/response.ex:419\u0060 calls \u0060anthropic_tool_usage\u0060 and \u0060lib/req_llm/providers/zai/shared.ex:150\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/response.ex"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd14e67bb35406ef9b1bfb05bb7894eeeebb269363d9f13e89cfd159a6b7977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/req_llm/providers/groq.ex:335-341 | lib/req_llm/providers/groq.ex:356-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/groq.ex:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/groq.ex"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"55eefa86fdc91be753980ab50248db37112b241ec319b3619284b131e5520713"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/req_llm/providers/minimax/video_api_v1.ex:214-220 | lib/req_llm/providers/minimax/video_api_v1.ex:239-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/minimax/video_api_v1.ex:214\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/video_api_v1.ex"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"159f2ed47930285cc15550606c6b06ea12e5fa1adf618fd859a125307ec5b96b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/req_llm/providers/openai/responses_api.ex:1484-1490 | lib/req_llm/providers/openai_codex.ex:383-389 \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/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda2a8f1b212a3cf444893559d64bf1dfbd7e806f62f37d2feca9a12e81dbe3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/req_llm/providers/openai/files.ex:501-506 | lib/req_llm/rerank.ex:339-344 | lib/req_llm/rerank.ex:375-380 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openai/files.ex:501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/files.ex"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f57a851140cc0fcf7553ed4494e191b66c444ce1fb090c4b2db76fa5d99b88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/req_llm/video.ex:180-185 | lib/req_llm/video.ex:208-213 | lib/req_llm/video.ex:355-360 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/video.ex"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eebab612cf9e508b1f1106a81900feda5c294647b484781dc2e2b32bf6319c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/compatibility/evidence.ex:807-812 | lib/req_llm/request_plan/diagnostic.ex:214-228 \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/req_llm/compatibility/evidence.ex"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdd82fc0c5ec369b44afe8de42473c3702598ec72955adb6ffc7938acaf8e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/generation.ex:95-104 | lib/req_llm/generation.ex:214-223 \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/req_llm/generation.ex"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e143f38f646b7a270f38119541a2c31b0be512f348e13822775f5f62b35a76a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock/responses.ex:43-48 | lib/req_llm/providers/openrouter.ex:199-204 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/amazon_bedrock/responses.ex:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/responses.ex"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab32a8f9fc1611b78bca5bf19774b47dc2fa8a506d8857b42d01a2177182e8ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/providers/google.ex:3408-3415 | lib/req_llm/providers/google.ex:3424-3429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/google.ex:3408\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":3408}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6bb5b9a043c7f847fb3aefc9a6c3c43e68d9aa492430b3d846b1340c526cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/providers/groq.ex:328-333 | lib/req_llm/providers/groq.ex:349-354 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/groq.ex:328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/groq.ex"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19cfe58b28b44f31f26be1a5658a91ea88c924df4184baca3950b79aceac7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/providers/openai/adapter_helpers.ex:19-24 | lib/req_llm/providers/openrouter.ex:882-887 \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/req_llm/providers/openai/adapter_helpers.ex"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cbbcde160e7dd1d64bf97fa9272efd224e88711ec31f1acfd54774631ef2c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/providers/openai/responses_api.ex:1455-1460 | lib/req_llm/providers/openai_codex.ex:323-328 \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/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6574d899e19755bce1ad8680e4393d3c625d5f4f64197a3dbcb2dcf14c1ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): lib/req_llm/providers/cohere.ex:96-102 | lib/req_llm/providers/github_copilot.ex:82-88 | lib/req_llm/providers/lmstudio.ex:90-96 | lib/req_llm/providers/ollama.ex:131-137 | lib/req_llm/providers/openai.ex:848-854 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/cohere.ex:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/cohere.ex"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"81db73f22a5843f9b87dd113a80202a86ff49c4c8064e354f18ba5d475a04864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/req_llm/provider/defaults.ex:444-448 | lib/req_llm/providers/openai.ex:615-619 | lib/req_llm/providers/openrouter.ex:279-283 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f6ce0ef0677f51bcbdb6be7bc9e0445eb2b5c82c9a27a86cc32b94d0aac1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/req_llm/providers/amazon_bedrock/anthropic.ex:193-199 | lib/req_llm/providers/azure/anthropic.ex:227-233 | lib/req_llm/providers/google_vertex/anthropic.ex:131-137 \u2014 \u0060lib/req_llm/providers/amazon_bedrock/anthropic.ex\u0060 and \u0060lib/req_llm/providers/google_vertex/anthropic.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66675c6eedf9fdf031ddf5d572915e4ac47a94c32bcb1dfca2e2a46643262b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock/anthropic.ex:97-101 | lib/req_llm/providers/google_vertex/anthropic.ex:82-86 \u2014 \u0060lib/req_llm/providers/amazon_bedrock/anthropic.ex\u0060 and \u0060lib/req_llm/providers/google_vertex/anthropic.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5cc14a88f088c242daffda4411624cbd2d9858395508d0f5ade52b1b723c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/req_llm/providers/openai/files.ex:117-121 | lib/req_llm/providers/openai/files.ex:153-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/openai/files.ex:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/files.ex"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba90b32914eed8d6a5cf4753dd3ec4c83bf950d0f719c9821e9376eacc96fecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/req_llm/providers/alibaba.ex:60-78 | lib/req_llm/providers/alibaba_cn.ex:37-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/alibaba.ex"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45f647c7c99d6eee742cb04f89017545e0bfc524dd269f36a477d5ad9038144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/req_llm/providers/stepfun.ex:20-28 | lib/req_llm/providers/stepfun_ai.ex:20-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/stepfun.ex"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b398e9d5f1926c813378ce3b5b1b6c3957f5ea8e59b9b9984d5984e7727bedea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/mix/tasks/req_llm.doctor.ex:49-55 | lib/mix/tasks/req_llm.migration_audit.ex:37-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/req_llm.doctor.ex"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"262524b7511025857d3625b1aefd05c6575912af6d04467d858730e89cd15f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/req_llm/evaluation.ex:335-340 | lib/req_llm/providers/amazon_bedrock/cohere.ex:234-239 | lib/req_llm/schema.ex:1094-1099 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/evaluation.ex"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d890dc69b7f960d6db6a8d4b5d5faedbe623c8f916a2d051517970f70adedd0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/images.ex:361-366 | lib/req_llm/video.ex:570-575 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images.ex"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a94ca622d981dcc1757cfd56734f878b5e6c92c1a285e1433f71af6d62f3d5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/req_llm/providers/amazon_bedrock.ex:841-845 | lib/req_llm/providers/google_vertex/anthropic.ex:32-36 \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/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60c628a4a240ab5ef67a48a930d9840f406b5bfb0684ccf2c937079d039adc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): lib/req_llm/providers/amazon_bedrock/converse.ex:333-338 | lib/req_llm/providers/amazon_bedrock/openai.ex:174-179 | lib/req_llm/providers/azure/openai.ex:315-320 | lib/req_llm/providers/google_vertex/openai_compat.ex:121-126 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/amazon_bedrock/openai.ex\u0060 and \u0060lib/req_llm/providers/google_vertex/openai_compat.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 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/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f98d53296add4d90cec84f761420b2427b749a33e8b73a0e7ac816c1a94f1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/req_llm/providers/anthropic.ex:1762-1766 | lib/req_llm/providers/google.ex:1085-1089 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3af694dca49711555fdb22044f41f603499f9d5e2bbdb3ef78bf885768c7736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/req_llm/providers/catalog_gateway.ex:361-368 | lib/req_llm/providers/cohere.ex:123-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/catalog_gateway.ex"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"372d0d4ef9f5da4258f5189f8428f9013480a28fe4669521f6eb41d5faf36b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/req_llm/providers/google_vertex.ex:819-826 | lib/req_llm/providers/xai.ex:1227-1234 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex.ex"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd3d236ea74bafaa16acfa6cf3af291406025cdbed9c9c76abf3d5108806bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/req_llm/providers/meta.ex:406-416 | lib/req_llm/providers/minimax.ex:654-664 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/req_llm/providers/meta.ex:406\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/meta.ex"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"59394cbe45462681cd55c0a94e3eae0354d86fc9c5007e5412a1c6358ae390f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/req_llm/providers/minimax.ex:850-854 | lib/req_llm/providers/openrouter.ex:1140-1144 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e17102d4e5388e78f07df009cc9e3d15aa24a02360f6d76eec27945b4b1428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/req_llm/providers/minimax/video_api.ex:111-119 | lib/req_llm/providers/minimax/video_api_v1.ex:147-155 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/minimax/video_api.ex\u0060 and \u0060lib/req_llm/providers/minimax/video_api_v1.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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/req_llm/providers/minimax/video_api.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef157fd4cc2fcd038b3809af0309adb763c2591eb3301aec048cafd1c5fa8da8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/req_llm/providers/minimax/video_api.ex:123-130 | lib/req_llm/providers/minimax/video_api.ex:153-160 | lib/req_llm/providers/minimax/video_api_v1.ex:159-166 | lib/req_llm/providers/minimax/video_api_v1.ex:293-300 \u2014 before extracting anything, compare \u0060lib/req_llm/providers/minimax/video_api.ex\u0060 and \u0060lib/req_llm/providers/minimax/video_api_v1.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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/req_llm/providers/minimax/video_api.ex"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ec3184330f7cf5b59824b2f82b2c0e9949cad243ad73b3bf01bbce10bb4138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/providers/openrouter.ex:965-970 | lib/req_llm/providers/typesafe.ex:122-127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openrouter.ex"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a8d45dfd02db8af131e6fd8192c5e2493d7b6778c620d5721e1e264f0f91ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tutorial/agents/06_memory_context.exs:138-151 | tutorial/agents/07_agent_cli_repl.exs:142-151 \u2014 before extracting anything, compare \u0060tutorial/agents/06_memory_context.exs\u0060 and \u0060tutorial/agents/07_agent_cli_repl.exs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 97 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":"tutorial/agents/06_memory_context.exs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefe15328444edd5f8aff6413967b80402c9f585da0268603bc5c68c506a2e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/providers/meta.ex:359-368 | lib/req_llm/providers/nearai.ex:64-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/meta.ex"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"99527b6ae5e9f2cd8dcbdf3d86c156f17668e0e09d38cd688ce7ccb79c182f57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/req_llm/providers/minimax.ex:824-828 | lib/req_llm/providers/openrouter.ex:511-515 | lib/req_llm/providers/openrouter.ex:1109-1113 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax.ex"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"e475ac95108165dba7521cd37bb7f920deddd5b7f686029a5027c901ab986c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/req_llm/speech.ex:244-253 | lib/req_llm/transcription.ex:248-257 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/speech.ex"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbb74ebd20051e202ddb0776c3a1233d5bb00547fc5a5c3ecd034d241e2770e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/req_llm/provider/defaults.ex:256-260 | lib/req_llm/providers/openai_codex.ex:147-151 \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/req_llm/provider/defaults.ex"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3728abcd654e524eec31a07b645a7da3e5686415e30ae8593b833e6942166a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/req_llm/providers/azure.ex:574-579 | lib/req_llm/providers/azure.ex:890-895 \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/req_llm/providers/azure.ex"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53345ca92fdddeb09e522494bbe293156d75c0621470061ec71d3a5f0483bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): examples/scripts/context_reuse.exs:38-143 | examples/scripts/object_generate.exs:39-85 | examples/scripts/object_stream.exs:38-90 | examples/scripts/text_generate.exs:42-83 | examples/scripts/text_stream.exs:42-116 | examples/scripts/tools_function_calling.exs:43-93 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_reuse.exs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c669fb6b0fa7f8b40f8c78466036957a47ca1677558155ce270f7854b8cdfe2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): examples/scripts/multimodal_image_analysis.exs:42-100 | examples/scripts/multimodal_pdf_qa.exs:42-103 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/multimodal_image_analysis.exs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc398dfdafb73898015ea62b7f6b031802ada4322cf1c663d12c8e6d3fe221d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): examples/scripts/anthropic_prompt_caching.exs:252-297 | examples/scripts/anthropic_prompt_caching.exs:301-352 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/anthropic_prompt_caching.exs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8131c415b7d0038d9804cfdd9a10039084d0baed34a2d355c95adcad8ae570e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): examples/scripts/tools_function_calling.exs:113-164 | examples/scripts/tools_round_trip.exs:110-161 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/tools_function_calling.exs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcf263f540e2d729a04c285b7dbff8c68c445471aa90b3df9aa84ce847608d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/scripts/embeddings_batch_similarity.exs:42-69 | examples/scripts/embeddings_single.exs:34-65 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/embeddings_batch_similarity.exs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bf0e66792aa94d1af6ef3742b37f3d8b7e9e05c952cf368e15b18710cb6c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): examples/scripts/json_schema_examples.exs:67-91 | examples/scripts/json_schema_examples.exs:95-121 | examples/scripts/json_schema_examples.exs:125-151 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/json_schema_examples.exs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73daf9a79f2ce2cc7bedb3f7ca27c1c7724d63d43ffc97b5f80115d88201847"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): examples/scripts/multimodal_image_analysis.exs:115-132 | examples/scripts/multimodal_pdf_qa.exs:118-133 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/multimodal_image_analysis.exs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0466892036f861077b569d382dbb1fdd9dc94a535399f41bdb89d5c98830d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): examples/scripts/tools_function_calling.exs:210-224 | examples/scripts/tools_round_trip.exs:268-282 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/tools_function_calling.exs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade7cf17b11278db8921099359b46178c0dd9e0b5ac8c1cd1e64bbc593887c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): examples/scripts/multimodal_image_analysis.exs:136-152 | examples/scripts/multimodal_pdf_qa.exs:162-179 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/multimodal_image_analysis.exs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3905e341dc2092a8b79e3e3333e532f27cc5716f3025869b828d154fe755b608"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): examples/scripts/usage_cost_search_image.exs:468-477 | examples/scripts/usage_cost_search_image.exs:481-497 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/usage_cost_search_image.exs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2da1d6ef809a06af2d3c7e9713f17d0fe596db3917cdd0bf221e35fd620f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): examples/scripts/tools_function_calling.exs:168-171 | examples/scripts/tools_round_trip.exs:165-168 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/tools_function_calling.exs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1568747e9a883f5f46536c0c09f6aaee809a2a1025ace0c40ac8d90f0fe1ff41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): examples/scripts/context_cross_model.exs:151-188 | examples/scripts/context_reuse.exs:184-221 \u2014 before extracting anything, compare \u0060examples/scripts/context_cross_model.exs\u0060 and \u0060examples/scripts/context_reuse.exs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_cross_model.exs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e4bccf82e5132da4b10bac83330c9cdda8c0f09ef7102325d8b70c698c48d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): examples/scripts/tools_function_calling.exs:127-164 | examples/scripts/tools_round_trip.exs:124-161 \u2014 before extracting anything, compare \u0060examples/scripts/tools_function_calling.exs\u0060 and \u0060examples/scripts/tools_round_trip.exs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/tools_function_calling.exs:127\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/tools_function_calling.exs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"706d9baec4e092c1807f551594d2bc60416a634bd318332b7906936a57c7fe3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): examples/scripts/object_generate.exs:39-74 | examples/scripts/object_stream.exs:38-73 \u2014 before extracting anything, compare \u0060examples/scripts/object_generate.exs\u0060 and \u0060examples/scripts/object_stream.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/object_generate.exs:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/object_generate.exs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"165db2583787b942fefdcc45872e9bcd9224ad1013e2f66c7c1e40199f7ab845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 3): examples/scripts/context_reuse.exs:38-70 | examples/scripts/text_generate.exs:42-72 | examples/scripts/text_stream.exs:42-72 \u2014 before extracting anything, compare \u0060examples/scripts/context_reuse.exs\u0060 and \u0060examples/scripts/text_generate.exs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/scripts/context_reuse.exs:74\u0060 calls \u0060puts\u0060, \u0060bright\u0060, \u0060reset\u0060 and \u0060examples/scripts/text_generate.exs:76\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_reuse.exs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"589076b367b4b3e7b17eb5763f712569f31cdd2c834e2ae4f6a045ff5b59cad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): examples/scripts/multimodal_image_analysis.exs:42-68 | examples/scripts/multimodal_pdf_qa.exs:42-68 \u2014 before extracting anything, compare \u0060examples/scripts/multimodal_image_analysis.exs\u0060 and \u0060examples/scripts/multimodal_pdf_qa.exs\u0060 as WHOLE FILES: this scan already matched 4 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/scripts/multimodal_pdf_qa.exs:69\u0060 calls \u0060detect_provider\u0060 and \u0060examples/scripts/multimodal_image_analysis.exs:70\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/multimodal_image_analysis.exs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bc4d2196a491829870cfb2a44621f1e1ae22327e49ebaae9a8816289dd8dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): examples/scripts/anthropic_prompt_caching.exs:209-233 | examples/scripts/tools_function_calling.exs:113-137 | examples/scripts/tools_round_trip.exs:110-134 \u2014 before extracting anything, compare \u0060examples/scripts/tools_function_calling.exs\u0060 and \u0060examples/scripts/tools_round_trip.exs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/anthropic_prompt_caching.exs:209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/anthropic_prompt_caching.exs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4100fe2bb78148dfcae7a012edcd78b67da0ab1a34673e6356323a5b057e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/scripts/json_schema_examples.exs:73-91 | examples/scripts/json_schema_examples.exs:103-121 | examples/scripts/json_schema_examples.exs:133-151 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/json_schema_examples.exs:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/json_schema_examples.exs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfe0d880de7b481aaa321824a60f1284cc609c5deacd24a6c6c7ed20ac90283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): examples/scripts/context_cross_model.exs:93-109 | examples/scripts/context_cross_model.exs:117-130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/context_cross_model.exs:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_cross_model.exs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cc69524916d855eb06a8dc6a2a785f531e76d5688cd6337219f25fafa92387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): examples/scripts/multimodal_image_analysis.exs:136-152 | examples/scripts/multimodal_pdf_qa.exs:162-175 \u2014 before extracting anything, compare \u0060examples/scripts/multimodal_image_analysis.exs\u0060 and \u0060examples/scripts/multimodal_pdf_qa.exs\u0060 as WHOLE FILES: this scan already matched 4 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/scripts/multimodal_pdf_qa.exs:177\u0060 calls \u0060puts\u0060 and \u0060examples/scripts/multimodal_image_analysis.exs:153\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/multimodal_image_analysis.exs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c3473b3c53fd919955e7e146868e77aee4bac4c0464a3210094b5745b6444a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/scripts/anthropic_prompt_caching.exs:265-280 | examples/scripts/anthropic_prompt_caching.exs:320-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/anthropic_prompt_caching.exs:265\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/anthropic_prompt_caching.exs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e05208025be006e58d076e612e24c4698cc3e1b0c9cd4436beae63944f06ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): examples/scripts/context_reuse.exs:82-96 | examples/scripts/context_reuse.exs:126-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/context_reuse.exs:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_reuse.exs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cf3f688d0c321911a8b79738604df1343555cbf1fe4da4e0ae35768830ca58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/scripts/multimodal_image_analysis.exs:86-99 | examples/scripts/multimodal_pdf_qa.exs:89-102 \u2014 before extracting anything, compare \u0060examples/scripts/multimodal_image_analysis.exs\u0060 and \u0060examples/scripts/multimodal_pdf_qa.exs\u0060 as WHOLE FILES: this scan already matched 4 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/multimodal_image_analysis.exs:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/multimodal_image_analysis.exs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7183c1a3d49b961f73f0267b0ce36ed1cef66a73a9d7e828e0b0278cb83d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): examples/scripts/context_reuse.exs:50-62 | examples/scripts/object_generate.exs:50-60 | examples/scripts/object_stream.exs:49-59 | examples/scripts/text_generate.exs:54-64 | examples/scripts/text_stream.exs:54-64 \u2014 before extracting anything, compare \u0060examples/scripts/context_reuse.exs\u0060 and \u0060examples/scripts/object_generate.exs\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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/context_reuse.exs:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_reuse.exs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c879b9515be4de79c8b060a125c44649458a988fad8fb50a929ae8d96836af7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): examples/scripts/context_cross_model.exs:83-94 | examples/scripts/context_reuse.exs:72-84 \u2014 before extracting anything, compare \u0060examples/scripts/context_cross_model.exs\u0060 and \u0060examples/scripts/context_reuse.exs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_cross_model.exs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca89fce08040b947bdfb7190622d77e677ba8c3793a2b8de43cbebbf4616eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/scripts/context_cross_model.exs:102-114 | examples/scripts/context_reuse.exs:111-123 \u2014 before extracting anything, compare \u0060examples/scripts/context_cross_model.exs\u0060 and \u0060examples/scripts/context_reuse.exs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_cross_model.exs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48eed048cdb4d5c681eab963709e6d0b78156b33a71ce68c26bd33e3afbbedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/scripts/multimodal_image_analysis.exs:91-100 | examples/scripts/multimodal_pdf_qa.exs:94-103 | examples/scripts/text_generate.exs:74-83 \u2014 before extracting anything, compare \u0060examples/scripts/multimodal_image_analysis.exs\u0060 and \u0060examples/scripts/multimodal_pdf_qa.exs\u0060 as WHOLE FILES: this scan already matched 4 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":"examples/scripts/multimodal_image_analysis.exs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f593f5249a46b3b921f6ef84d2e7d022fecdb27dd62fc444a6c14750580b62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): examples/scripts/object_generate.exs:56-65 | examples/scripts/object_stream.exs:55-64 | examples/scripts/tools_function_calling.exs:60-69 \u2014 before extracting anything, compare \u0060examples/scripts/object_generate.exs\u0060 and \u0060examples/scripts/object_stream.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 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":"examples/scripts/object_generate.exs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24a4634225aca44ac9882c9bb4eb713dfa5725a50ee4423ef6afc1341e51827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): examples/scripts/context_reuse.exs:54-64 | examples/scripts/object_generate.exs:54-62 | examples/scripts/object_stream.exs:53-61 | examples/scripts/text_generate.exs:58-66 | examples/scripts/text_stream.exs:58-66 | examples/scripts/tools_function_calling.exs:58-66 \u2014 before extracting anything, compare \u0060examples/scripts/context_reuse.exs\u0060 and \u0060examples/scripts/object_generate.exs\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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/scripts/context_reuse.exs:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_reuse.exs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d494fc2da272cdde01fc249f15208d6bd617d156aca07ed3a82f179e4b35ee05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): examples/scripts/context_cross_model.exs:192-201 | examples/scripts/context_reuse.exs:225-234 | examples/scripts/object_generate.exs:101-110 | examples/scripts/object_stream.exs:106-115 | examples/scripts/text_generate.exs:90-99 | examples/scripts/text_stream.exs:123-132 | examples/scripts/tools_function_calling.exs:100-109 | examples/scripts/tools_round_trip.exs:97-106 \u2014 before extracting anything, compare \u0060examples/scripts/context_cross_model.exs\u0060 and \u0060examples/scripts/context_reuse.exs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/scripts/context_cross_model.exs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73626222dc6ef5dd380bc0e2180f61fe209fdc4b8ddf2d4c7b06829ea1967d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/scripts/object_generate.exs:92-97 | examples/scripts/object_stream.exs:97-102 \u2014 before extracting anything, compare \u0060examples/scripts/object_generate.exs\u0060 and \u0060examples/scripts/object_stream.exs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 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":"examples/scripts/object_generate.exs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"abecc76bba4515666a3400e1561513c6188c7b7b0ed39658f23d19fed5f8d975"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/req_llm/providers/openai/responses_api.ex: lib/req_llm/providers/openai/responses_api.ex changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ResponsesAPI.decode_single_stream_event at line 200. 9 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/providers/openai/responses_api.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e352fd7dc6bf480daea103d22ba391dd56792fc2363cd560f20c08db5ec6bee6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/req_llm/usage/normalize.ex: lib/req_llm/usage/normalize.ex changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Normalize.normalize at line 16. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/usage/normalize.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/usage/normalize.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"71286e21ae41e592586d97a49d2d34977d2384d78b714107e4972d3c72d573ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/req_llm/providers/amazon_bedrock/converse.ex: lib/req_llm/providers/amazon_bedrock/converse.ex changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Converse.parse_stream_chunk at line 514. 2 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/providers/amazon_bedrock/converse.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"7155b5f7f0017efedc79abc2afba8af7c9494e245e8ec29645914d40e2745eb7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/req_llm/billing.ex: lib/req_llm/billing.ex changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Billing.meters at line 70. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/billing.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/billing.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"337cb941fb8bcf988f039f3f19f96ea6e759d7cf485de187ce18db018c98a6ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/req_llm/providers/anthropic/response.ex: lib/req_llm/providers/anthropic/response.ex changed 8 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is Response.decode_stream_event at line 144), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(anthropic): preserve cache counter presence (#1230)\u201D; \u201Cfix(anthropic): derive pricing context from confirmed request and usage facts (#1122)\u201D; \u201Cfix(anthropic): keep stop_reason in provider_meta so a paused turn is identifiable (#1107)\u201D; \u201Cfix: preserve streamed cache TTLs and native OpenAI billing facts (#1081)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/providers/anthropic/response.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/response.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cbf55c291f528b9e1f1b5ce0e53e1ced8f35d257c1dc61769558ee71a49165"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/req_llm/usage.ex: lib/req_llm/usage.ex changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is Usage.recompute_totals at line 174), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(google): expose tool-use input tokens (#1165)\u201D; \u201Cfix(usage): document cached input counts and retain fallback flag (#1118)\u201D; \u201Cfix: preserve streamed cache TTLs and native OpenAI billing facts (#1081)\u201D; \u201Cfix(usage): distinguish cache reads and writes (#1035)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/usage.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/usage.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeee0e172e60234674f8d15636cf12e17f499925e688c409a77b2e698f699baf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/req_llm/application.ex: lib/req_llm/application.ex changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is Application.load_dotenv at line 189), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(config): skip dotenv loading by default in releases (#1137)\u201D; \u201Cfix(application): restrict Tidewave REPL to development (#1135)\u201D; \u201Cfix(schema): bound validator cache memory (#1078)\u201D; \u201Cfix: close shared contract gaps from design review (#1069)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/application.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/application.ex"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"332efd2dec58b85a14fccd74a39d5f6e6f677fe138082de9fd03b9dc9612f60b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/req_llm/step/usage.ex: lib/req_llm/step/usage.ex changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is Usage.handle at line 70), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(google): expose tool-use input tokens (#1165)\u201D; \u201Cfix(anthropic): derive pricing context from confirmed request and usage facts (#1122)\u201D; \u201Cfix: preserve streamed cache TTLs and native OpenAI billing facts (#1081)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/step/usage.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/step/usage.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3e63d9a8df4e1c7abea5da502246793c549be2313a3a053fcaa4c84a2e5e6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/mix/tasks/model_compat.ex: lib/mix/tasks/model_compat.ex changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is ModelCompat.group_models_by_status at line 1051), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mc): repair Groq test URL and mix mc replay routing (#1251)\u201D; \u201Cfix(google): preserve text thought signatures across continuations (#1127)\u201D; \u201Cfix(coverage): validate catalog community providers with live LLM API fixtures (#1089)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/mix/tasks/model_compat.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/model_compat.ex"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9b36738262e7f43cb4550d2dbd52c4a4936a1d8107d07395314e131cc3d992"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/req_llm/providers/anthropic/adapter_helpers.ex: lib/req_llm/providers/anthropic/adapter_helpers.ex changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is AdapterHelpers.maybe_add_thinking_on at line 147), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(anthropic): make thinking off reachable and report dropped sampling params (#1131)\u201D; \u201Cfix(anthropic): reduce grammar-constrained schemas in their declared order, atom keys included (#1112)\u201D; \u201Cfix(anthropic): preserve adaptive reasoning on cloud providers (#1099)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/providers/anthropic/adapter_helpers.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/adapter_helpers.ex"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e541051f9c1c81f9b0961838808a717410544e09bfd5d6e4b1981cdcd419fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/req_llm/timeout_budget.ex: lib/req_llm/timeout_budget.ex changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is TimeoutBudget.resolve_request_task at line 172), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(timeout): stop retries after the total deadline (#1244)\u201D; \u201Cfix(timeout): preserve OpenTelemetry context in deadline tasks (#1149)\u201D; \u201Cfix(http): prevent non-streaming connection pool timeouts (#1067)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/timeout_budget.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/timeout_budget.ex"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"0526acedd9a3f2aaafd671a9960a8b95609c422f622144a97e3ba756912fb227"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/req_llm/providers/google_vertex.ex: lib/req_llm/providers/google_vertex.ex changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is GoogleVertex.do_prepare_request at line 330), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(google_vertex): handle non-2xx responses (#1237)\u201D; \u201Cfix/vertex url context (#1162)\u201D; \u201Cfix(google): validate assistant prefill before sending requests (#1106)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/providers/google_vertex.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex.ex"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c0d3a51f214b913b327e38e55dd749742b04a55a96a5281c1715e484e47028"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/req_llm/providers/anthropic/platform_reasoning.ex: lib/req_llm/providers/anthropic/platform_reasoning.ex changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is PlatformReasoning.maybe_clean_thinking_after_translation at line 229), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(anthropic): make thinking off reachable and report dropped sampling params (#1131)\u201D; \u201Cfix(anthropic): preserve adaptive reasoning on cloud providers (#1099)\u201D; \u201Cfix(bedrock): send output_config.effort for adaptive-thinking Claude models (#1055)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 07:10:23 -06:00\u0027 --until=\u00272026-11-14 07:10:23 -06:00\u0027 --full-history --no-merges -- lib/req_llm/providers/anthropic/platform_reasoning.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/platform_reasoning.ex"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bc49974d3dae4e6099cf7e71171979fa63bdb9a7889121ce29acf9636ab559"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 17 significant file(s) lose their only recent owner: lib/req_llm/stream_response/event_projector.ex, lib/req_llm/provider_file_reference.ex, lib/req_llm/output.ex, lib/req_llm/response/projection.ex, lib/req_llm/provider/options/namespace.ex, lib/req_llm/request_plan/diagnostic.ex, lib/req_llm/context/tool_exchange.ex, lib/req_llm/openai/responses.ex (\u002B9 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8263737835e0b831a4d5adc4792863dc1c2d839ba31fb0d806e950fcad77fa65"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (19 single-owned of 220 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 220 of the 273 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: lib/req_llm/providers/minimax/images_api.ex, lib/req_llm/providers/openai_codex/turn_metadata.ex."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # HACK for demo: We\u0027ll just run the call in a Task, but the agent implementation \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/20_liveview_chat_agent.exs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb730902f6975ed2d9c253de2fe6a2ed5e890b8fe27146a9375a01e28d929ae8"}},{"ruleId":"D28","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":"97663f0eb16122ace4bd7728569c9f0e7ac1e3aeac3462221600b1b294c4a54b"},"properties":{"commitSha":"24dea327cd952b0e629c332b9156fe87c30a2e45"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"32029cfd755703bf7ae1b0501a731fdefcb86097bdb372e2452dce09914d8489"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"b51a2f7dde20710a2b7e23d6f43643473bcc1d97e07f09b483d71b0f06980159"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0f8524cb88b8ecebe1baaeaecf466d52056f7516482bb09c5e09b1bef14fb54"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"86db25d84154c13217bd80b8dc7d3690e37a89457f7277fa5f5c7ec55e32641c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 7 of 220 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 220 of the 273 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: .credo.exs, lib/req_llm/providers/amazon_bedrock/cohere.ex, lib/mix/tasks/test.livebooks.ex, lib/req_llm/providers/google_vertex/openai_compat.ex, lib/req_llm/providers/xai/images_api.ex, lib/req_llm/providers/minimax/response_builder.ex, lib/mix/tasks/req_llm.install.ex. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".credo.exs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea901913355b7d74eab699065cbe445379e60546f68e16e10edfcdd85635fa2a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/cohere.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fffa779eb27f032ebabe583156ccf76ba65f2070a2d1dc5398d927d99203a31"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/test.livebooks.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd358189739c468afb1b97c0f86276b5c1c7771bad412db494bb3edee8ee9764"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex/openai_compat.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77450e4119f95320386b92346638f19c216b88b2927c5b125e6808a5747f9997"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/xai/images_api.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a1d6adcdaf791bae6b7adc4668fb8a200116bff51d5430443f68dacaef94a6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/response_builder.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb8ccc3113feb240af3f260420b01e4d60fcdf9adfe01a1a5a59fcfa6da86f8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/req_llm.install.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22940aebacb57a2732af6dc8f0380e512f9fa3c4644102a44b6eebc1c02c357"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"C2","level":"warning","message":{"text":"No authorization: This repository serves requests \u2014 a server ({Bandit,) (lib/req_llm/application.ex:159) \u2014 and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/application.ex"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7d8336697553b675fc3ffd728867a4ea1ed97c4812b0b4b5059adde88171e3"}},{"ruleId":"M2","level":"note","message":{"text":"ADRs not easily discoverable: 1 ADR-shaped document(s) detected by content \u2014 \u0060guides/provider-extension-decision.md\u0060. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live \u2014 so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ea921cf64dae701abd877090b3279ff10d03c2e3250e26c8c299d7c5665e0d3f"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add sobelow (Elixir/Phoenix) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 4 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch github-actions: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060github-actions\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed3d0d7c28467261d003a8cf6abc881841cc635e9d2324ab34b8ff58916f1fd"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/openai.ex"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"655d236717d61713bd1a32fb39f000f34487a5b403fbf54a85a3f4af796cd2c3"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/sts.ex"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab1858e8e63f3a737115e358dc2f9ba685e6c10db62865a45d3e749d666e647"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/oauth.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a2c66cee3107f14cff27821d8e919d31da479843e1e287225468569511778b"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/azure/openai.ex"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cbb27488c4af3f1dca39d939414c7fe4797bd71c5925e11fba4640dea54dc2"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Finch.request(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex/auth.ex"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1855b81d428e2be64eb16415f0357af18fb5199171d9576cac1d6feb397188"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex/auth.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"2134ec2b6bf7726762755a51fc047459e1616b41384366ea225c316bb7386da9"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.request(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex/auth.ex"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"60634b27794bf1c1d13a270d118e3ba6afc09cf07f617f07703ec469d341d123"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex/gemini.ex"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0674b81e841086744d8e78179d194df502d822240c16d0340825012e12fb0c"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex/openai_compat.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc81504e77e10db5a278e9d0b24683972747bf1c245ea5a407575a86215fa8b2"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/lmstudio.ex"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5143e420ed9dd595e5913fad15702c7b1eff8caafcb1d6311db8fd24c5ecf1"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/ollama.ex"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b036fc81b96cc1394215577a31c9c11ddd99c83ffa24361ef0017788c38d3bf"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/chat_api/request.ex"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c0d8d4cd19f350ec6db512d3ffeb31158df3053825b17c72a8a4915dd7f310"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/oauth.ex"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56cf3a6a3db5cacbe7d57f62cce8b42c49a228815cd3cae260fe6ea6a9ea50a"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Req.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tutorial/agents/17_external_api_tool.exs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d68e7819aa998dd87e2f888e3c34831e1e91386e7208ccc5c398a057384d94"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository runs an HTTP server and nothing in its Elixir source or production configuration secures the transport: no HTTPS served (an endpoint\u0027s \u0060https: [...]\u0060, \u0060scheme: :https\u0060, \u0060Plug.Cowboy.https\u0060, SiteEncrypt), no \u0060force_ssl:\u0060 or \u0060plug Plug.SSL\u0060 redirecting to HTTPS and sending HSTS, no \u0060strict-transport-security\u0060 header, no \u0060rewrite_on: [:x_forwarded_proto]\u0060 or \u0060x-forwarded-proto\u0060 read for a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: lib/req_llm/application.ex:159 \u2014 \u0060Bandit\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Elixir server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: lib/req_llm/application.ex:159 \u2014 \u0060Bandit\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"S1","level":"note","message":{"text":"No inbound request validation detected: No handler of this repository\u0027s Elixir server answers 400, 413 or 422 (\u0060put_status(conn, :bad_request)\u0060, \u0060:unprocessable_entity\u0060, \u0060send_resp(conn, 400, \u2026)\u0060), and nothing declares validation \u2014 no Ecto changeset \u0060validate_required\u0060/\u0060validate_length\u0060/\u0060validate_format\u0060, no OpenApiSpex \u0060CastAndValidate\u0060, ExJsonSchema or other schema validator, no \u0060Plug.Parsers\u0060 \u0060length:\u0060 cap \u2014 nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (\u22122.0 on this card.) The server: lib/req_llm/application.ex:159 \u2014 \u0060Bandit\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0ffa303f3c9cef4b4c2cf028a78ce2f3c83f6078f80716eea7362fad047265eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(config, key) || Map.get(config, Atom.to_string(key))\u0060 appears character-identically in 5 files \u2014 lib/req_llm/availability.ex, lib/req_llm/doctor.ex, lib/req_llm/provider/options.ex, lib/req_llm/providers/anthropic.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/availability.ex"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e255664936b32cdc094282a65fe64261bbcf92d1808756dbea09a57ce380d4cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(map, key) || Map.get(map, Atom.to_string(key))\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/anthropic.ex, lib/req_llm/stream_response/event_projector.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic.ex"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07e641968804c8280104871298c66e5a03497a359653902956069dffcaf0dda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(metadata, :block_type) || Map.get(metadata, \u0022block_type\u0022)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/compaction.ex, lib/req_llm/providers/openai/responses_api.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/compaction.ex"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cb7df8ff1a81ea55a555ba367e8fac7852fced6fb0d8fd57ddd51068d747e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(metadata, :namespace) || Map.get(metadata, \u0022namespace\u0022)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/openai/responses_api.ex, lib/req_llm/tool_call.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/responses_api.ex"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0a2c4349e783adbaeb2b9f8c34cb2748c7cae0371bde17fd6980b65ae55043"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(options, key) || Map.get(options, Atom.to_string(key))\u0060 appears character-identically in 3 files \u2014 lib/req_llm/providers/inference.ex, lib/req_llm/providers/meta.ex, lib/req_llm/providers/openai/responses_api.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/inference.ex"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c6f30cb28cafaf19c32ed35f55ee6271f047ccc39fd75a61a9c8dc275f6bcc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(opts, key) || Map.get(opts, Atom.to_string(key))\u0060 appears character-identically in 5 files \u2014 lib/req_llm/auth.ex, lib/req_llm/oauth.ex, lib/req_llm/providers/github_copilot.ex, lib/req_llm/providers/openai.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/auth.ex"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca4112ac93fa85b9d6ea3fea2b0845523153e11914d4ea1750b7299fe2aebe0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Map.get(provider_opts, key) || Map.get(provider_opts, Atom.to_string(key))\u0060 appears character-identically in 2 files \u2014 lib/req_llm/availability.ex, lib/req_llm/providers/meta.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/availability.ex"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f62095be20691876ec99603fa784f263bc19016d7ab93bcfcd3ae9e678f83e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ModelHelpers.reasoning_enabled?(model) or ModelHelpers.adaptive_thinking_required?(model)\u0060 appears character-identically in 3 files \u2014 lib/req_llm/providers/amazon_bedrock.ex, lib/req_llm/providers/azure/anthropic.ex, lib/req_llm/providers/google_vertex/anthropic.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"30283e301eb639f581392f1999f83f91b55a495f6f336d41fb529f23cd3374b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060context \u0026\u0026 Map.get(context, :__thinking_mode__, false)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/zai/shared.ex, lib/req_llm/providers/zai_coding_plan.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/zai/shared.ex"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8328baa3f28ae1d92358804a08a1b6fdcf82c88e4ad5d90e253fec62597dd85b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_in(body, [\u0022base_resp\u0022, \u0022status_msg\u0022]) || \u0022MiniMax video generation failed\u0022\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/minimax/video_api.ex, lib/req_llm/providers/minimax/video_api_v1.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/minimax/video_api.ex"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f872145b83f1e7d033cbf85e7f8785432aaffc8b698f6e46b93998fd3603cd33"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_in(usage, [\u0022prompt_tokens_details\u0022, \u0022cached_tokens\u0022]) || 0\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/amazon_bedrock/openai.ex, lib/req_llm/providers/azure/openai.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/openai.ex"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c369ea413599a2ee75daab3598049cb6c61c44628e93c68b7da3cd5e64a7fb70"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_option(opts, :provider_options) || []\u0060 appears character-identically in 2 files \u2014 lib/req_llm/auth.ex, lib/req_llm/oauth.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/auth.ex"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec88c1f39c771f3297f3afe0222b8aa60de3f096dd9dffdcc3a69b9b39487b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_atom(provider) or is_binary(provider)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/migration/audit.ex, lib/req_llm/provider_file_reference.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/migration/audit.ex"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d98836bdaa63b1cb8a8d010beb8f094ef9cb16df0735b9e45b9b1f47c3dfc6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(capability) and is_atom(provider)\u0060 appears character-identically in 2 files \u2014 lib/mix/tasks/model_compat.ex, lib/req_llm/compatibility/scenario_catalog.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mix/tasks/model_compat.ex"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"40041b2f85912886a7cb8a36c1a8acfbaf59476e20f9f1939f10964821362519"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(data) and is_binary(media_type)\u0060 appears character-identically in 3 files \u2014 lib/req_llm/providers/openai/decisions_api.ex, lib/req_llm/providers/openrouter.ex, lib/req_llm/transcription.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/openai/decisions_api.ex"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8846ac822881684a88142087d672b205c2f624685ef3b532545ab1ae2571723"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(extra_family) and String.starts_with?(extra_family, \u0022claude\u0022)\u0060 appears character-identically in 3 files \u2014 lib/req_llm/provider/response_builder.ex, lib/req_llm/providers/google_vertex.ex, lib/req_llm/telemetry.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/response_builder.ex"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"04422308a5edc06e3dc9a56620ad82cf551e49ea50a2c58588b3d625b41d25fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(extra_family) and String.starts_with?(extra_family, \u0022gemini\u0022)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/google_vertex.ex, lib/req_llm/telemetry.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google_vertex.ex"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a243d99a6cc9ca9dff66ce019c3843937d43152305ba61791ce71ee24f98e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(legacy_file_id) and legacy_file_id != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/anthropic/context.ex, lib/req_llm/providers/openai/responses_api.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/anthropic/context.ex"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"76043d8f4c3b05ba0da47f3e99a67c5ac3e65cd1323c6b13150911f1df5bc1e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(media_type) and media_type != \u0022\u0022\u0060 appears character-identically in 5 files \u2014 lib/req_llm/context.ex, lib/req_llm/message/content_part.ex, lib/req_llm/provider/defaults.ex, lib/req_llm/providers/google.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/context.ex"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e1ab5f921c6e7eefce9e2f4c3da1c3a7a7ef8a51bfaf1de1f6cfa945ac5c8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(signature) and signature != \u0022\u0022\u0060 appears character-identically in 3 files \u2014 lib/req_llm/providers/google.ex, lib/req_llm/providers/google/response_builder.ex, lib/req_llm/providers/minimax/response_builder.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":2297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16bcd2bfe762c1b3cf419ef42b4c80565ddfe561f264bf4f6917b42dc883868"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(value) or is_number(value) or is_boolean(value) or is_nil(value)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/provider_file_reference.ex, lib/req_llm/providers/openai/decisions_api.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider_file_reference.ex"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5169a56244d42cde4b426f217f0121303ce619b3a3b59e89cf2aa2d69cf442"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(prev_content) and is_list(curr_content)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/amazon_bedrock/converse.ex, lib/req_llm/providers/anthropic/context.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e2e472f9da3aae403783ff3f59419ff8c120b48df0e73492a5089de908704b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(tool_calls) and tool_calls != []\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/amazon_bedrock/converse.ex, lib/req_llm/providers/anthropic/context.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/converse.ex"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd0c2924f3985d0ac85a7ba18c389362db598f9e85e01369daad57b627b5f2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_map(metadata) and map_size(metadata) \u003E 0\u0060 appears character-identically in 4 files \u2014 lib/req_llm/provider/defaults.ex, lib/req_llm/providers/google.ex, lib/req_llm/providers/openrouter.ex, lib/req_llm/tool_call.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba622af119e370acb16a34a2a016c433599261c82faa25d7b31f60a77296795"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_map(questions) and map_size(questions) \u003E 0\u0060 appears character-identically in 2 files \u2014 lib/req_llm/evaluation.ex, lib/req_llm/providers/openai/decisions_api.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/evaluation.ex"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5250000fda1f2fdaffc3bac05bc90a0047187018321d551e246b1e9262a88d8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_number(input) and is_number(output) and is_number(tool_use_input)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/usage.ex, lib/req_llm/usage/normalize.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/usage.ex"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6e7fd0c8754b402c7bfaef7593df42b5c1027546bcd3dcb8f333dd72473816"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_number(value) and value \u003E= 0 and value \u003C= 1\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/google/decisions_api.ex, lib/req_llm/providers/openai/decisions_api.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google/decisions_api.ex"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3cc460b6429239ba17b4e2b8b50aaa52ef13e0bf87183ddd623ab5281fcd01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_struct(last, ReqLLM.Message) and last.role == message.role\u0060 appears character-identically in 5 files \u2014 lib/req_llm/providers/google.ex, lib/req_llm/providers/google/response_builder.ex, lib/req_llm/providers/minimax.ex, lib/req_llm/providers/openrouter.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/google.ex"},"region":{"startLine":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a8b9ff8addcdff257e13d1f7b36a9ab3bd9451c6ff3251ec941754ec1c0cd7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model.provider_model_id || model.id || \u0022\u0022\u0060 appears character-identically in 6 files \u2014 lib/req_llm/images.ex, lib/req_llm/ocr.ex, lib/req_llm/provider/response_builder.ex, lib/req_llm/providers/minimax.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images.ex"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6319c44ced7f2405ba02a27c72c9be8e75b27bc078a7ea9dd46d97cb6f66b78"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model.provider_model_id || model.id || model.model\u0060 appears character-identically in 5 files \u2014 lib/req_llm.ex, lib/req_llm/call_metadata.ex, lib/req_llm/openai/realtime/event_projector.ex, lib/req_llm/providers/google_vertex/gemini.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm.ex"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab77e98bcc49d3c0e622f3518583e599eb449beae873807b8b4ae8ac24d21a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060operation == :object and mode != :json_schema\u0060 appears character-identically in 3 files \u2014 lib/req_llm/providers/amazon_bedrock/anthropic.ex, lib/req_llm/providers/anthropic/platform_reasoning.ex, lib/req_llm/providers/google_vertex/anthropic.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a928c2aefff335fcd5367c243000adaf8738de3e2e359709e04f228a839f31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060opts[:operation] == :object and AdapterHelpers.structured_output_mode(opts) == :json_schema\u0060 appears character-identically in 3 files \u2014 lib/req_llm/providers/amazon_bedrock/anthropic.ex, lib/req_llm/providers/amazon_bedrock/converse.ex, lib/req_llm/providers/google_vertex/anthropic.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/anthropic.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3337c726cb065a54e57dfd89f4e42094b446a77e5b424110039875368b3c86a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060opts[:tools] || Map.get(context, :tools, [])\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/amazon_bedrock/openai.ex, lib/req_llm/providers/google_vertex/openai_compat.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/openai.ex"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"270296c11eaf8d594bebded2959e0136b1225e5021e8679e600055a32d2f57f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider_opts[:dimensions] || request.options[:dimensions]\u0060 appears character-identically in 2 files \u2014 lib/req_llm/embedding.ex, lib/req_llm/provider/defaults.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/embedding.ex"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5aee6223481394153ce9ee92276e4d5d8cdca067ae72ecf12bf436cba27229"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reasoning_budget \u0026\u0026 is_integer(reasoning_budget)\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/amazon_bedrock.ex, lib/req_llm/providers/google_vertex/anthropic.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"35771e2896744bfd47cff144c0437c547c22ff0f74c0db24e26ee9633c88504a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reasoning_effort \u0026\u0026 reasoning_effort != :none\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/amazon_bedrock.ex, lib/req_llm/providers/google_vertex/anthropic.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock.ex"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"67969d76dad74145107be7622618aeec3c8548fd865ddefdef6803095af263ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.options[:provider_options] || []\u0060 appears character-identically in 5 files \u2014 lib/req_llm/embedding.ex, lib/req_llm/provider/defaults.ex, lib/req_llm/providers/deepseek.ex, lib/req_llm/providers/mistral.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/embedding.ex"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8346f82f8210ee13d04aecd67bdb6d20938f41111ea3794e6c3c8408d2145c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.options[:response_format] || provider_opts[:response_format]\u0060 appears character-identically in 2 files \u2014 lib/req_llm/provider/defaults.ex, lib/req_llm/providers/zai/shared.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/provider/defaults.ex"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03eb2f4df5513f582893929277db84bad5308bfd99f3c5d01d17cb45e22eb6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060usage[\u0022total_tokens\u0022] || input_tokens \u002B output_tokens\u0060 appears character-identically in 2 files \u2014 lib/req_llm/providers/amazon_bedrock/responses.ex, lib/req_llm/providers/azure/responses_api.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/providers/amazon_bedrock/responses.ex"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb5e8e06f38add7cccccc5febec5cffa7d10aa72143190b9ffe41b2a62ae6c4"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060String.contains?(model_spec, \u0022imagen\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060String.contains?(model_spec, \u0022imagen\u0022)\u0060 also satisfies \u0060String.contains?(model_spec, \u0022image\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/req_llm/images_test.exs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8392498f12f409a8e9d3f9ef785d64b8307f189fa44e1a472e59c39a8137cc7"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060String.contains?(id, \u0022imagen\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060String.contains?(id, \u0022imagen\u0022)\u0060 also satisfies \u0060String.contains?(id, \u0022image\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/req_llm/images.ex"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42baea7b2fcde7e5d3b05ced050435c2ae0eb1336608294d64cdade4c63ef08"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"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-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":11,"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."]}]}