{"$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":"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":"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","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-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"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":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"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":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"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":"recognition.find (cyclomatic 42): recognition.find has cyclomatic complexity 42 (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":"deepface/modules/recognition.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f28845663f1404a680caf016c70c00c560d2b762a4ce875e87d6757ca25e044"}},{"ruleId":"D1","level":"warning","message":{"text":"datastore.__search (cyclomatic 36): datastore.__search has cyclomatic complexity 36 (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":"deepface/modules/datastore.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4eb34970d18099c9d19d9e603fc189d6908462c1be1fcd9467685030bd7f37f"}},{"ruleId":"D1","level":"warning","message":{"text":"detection.extract_faces (cyclomatic 36): detection.extract_faces has cyclomatic complexity 36 (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":"deepface/modules/detection.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"462ded3da4c40c9cb2cbe0aea8506ae995db99705cc2c0de08e7b18c18f01f53"}},{"ruleId":"D1","level":"warning","message":{"text":"weaviate.resolve_connection_details (cyclomatic 26): weaviate.resolve_connection_details has cyclomatic complexity 26 (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":"deepface/modules/database/weaviate.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d942af89bdf8f3ee23dfb669e08e63ec2e24a2068dd6f5c62d3f08e5c785e7"}},{"ruleId":"D1","level":"warning","message":{"text":"demography.analyze (cyclomatic 24): demography.analyze has cyclomatic complexity 24 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/demography.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f882483cd735f6fc40caec51e458f602d6d613c92b070f5b42f46e89bee54f70"}},{"ruleId":"D1","level":"warning","message":{"text":"representation.represent (cyclomatic 24): representation.represent has cyclomatic complexity 24 (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":"deepface/modules/representation.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e923be4c8e02860e9a5e379de9a7d9eab05c9c937dedaced87e51e0f332bedb"}},{"ruleId":"D1","level":"warning","message":{"text":"streaming.analysis (cyclomatic 22): streaming.analysis 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":"deepface/modules/streaming.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"942c9cf889b10e3963df89498012aa07e61f2f711def082d301b631a91817b79"}},{"ruleId":"D1","level":"warning","message":{"text":"datastore.identify (cyclomatic 21): datastore.identify has cyclomatic complexity 21 (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":"deepface/modules/datastore.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"9362d3174b2ecf462b68f61ddf3668156ef4178b8aea81f5e646a8c6ba6e6da0"}},{"ruleId":"D1","level":"warning","message":{"text":"verification.find_confidence (cyclomatic 17): verification.find_confidence has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/verification.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaeb2e7fb69f3ae996c46ca6c226aabbde9ec197249254c9d8dcbc94ae53a74"}},{"ruleId":"D1","level":"warning","message":{"text":"weight_utils.download_all_models_in_one_shot (cyclomatic 16): weight_utils.download_all_models_in_one_shot 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":"deepface/commons/weight_utils.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"078567de6b61eacbffb1ad9e01c65dfa77d197c4abc2e54f5f181254820cccf2"}},{"ruleId":"D1","level":"warning","message":{"text":"detection.extract_face (cyclomatic 16): detection.extract_face 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":"deepface/modules/detection.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"49598e4dcfa68443ce1ac8b1bc1cf2af6368c7cca7950c62fd821a1cce24cf19"}},{"ruleId":"D2","level":"warning","message":{"text":"datastore.__search (cognitive 74): datastore.__search has cognitive complexity 74 (threshold 15). Drivers by points: if/else 16 (42 pts), loops 7 (18 pts), boolean chains 7, ternaries 2 (5 pts), error handling 1 (2 pts) (nesting depth added 41). 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":"deepface/modules/datastore.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"4028df4ee4462f2cced46e2ac47fff8671a1a1dcbd688a6883ba675e612e37ff"}},{"ruleId":"D2","level":"warning","message":{"text":"recognition.find (cognitive 59): recognition.find has cognitive complexity 59 (threshold 15). Drivers by points: if/else 29 (45 pts), boolean chains 6, loops 4 (6 pts), ternaries 2 (nesting depth added 18). 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":"deepface/modules/recognition.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fe2199c469e2b5af9da09c3bd141080540be5eb4a692464bdd0127c19b8e3f"}},{"ruleId":"D2","level":"warning","message":{"text":"detection.extract_faces (cognitive 55): detection.extract_faces has cognitive complexity 55 (threshold 15). Drivers by points: if/else 23 (39 pts), boolean chains 9, loops 4 (7 pts) (nesting depth added 19). 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":"deepface/modules/detection.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2799651e9f923cd06b886c92fcb6a36e2c9e0538a6e46aad342554e2e9e480f"}},{"ruleId":"D2","level":"warning","message":{"text":"weight_utils.download_all_models_in_one_shot (cognitive 39): weight_utils.download_all_models_in_one_shot has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (11 pts), ternaries 2 (7 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 23). 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":"deepface/commons/weight_utils.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7cd3f9e89ba1a0ef43a1f320033a6182eadaa8204ca41488c411e07b0c9328"}},{"ruleId":"D2","level":"warning","message":{"text":"streaming.analysis (cognitive 38): streaming.analysis has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (27 pts), ternaries 4 (7 pts), boolean chains 3, loops 1 (nesting depth added 18). 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":"deepface/modules/streaming.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f864fbb64fcbe03b34c89a229999316c1d4c8752ea335de34d15a0e059a7766b"}},{"ruleId":"D2","level":"warning","message":{"text":"demography.analyze (cognitive 37): demography.analyze has cognitive complexity 37 (threshold 15). Drivers by points: loops 7 (18 pts), if/else 7 (12 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/demography.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e65a2b97281759dc142c7f174290f96eb96ff7dc21b2552483b3b26326610a0"}},{"ruleId":"D2","level":"warning","message":{"text":"representation.represent (cognitive 36): representation.represent has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 5, ternaries 3 (5 pts), loops 3 (4 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":"deepface/modules/representation.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7b8e3e39d2625e45f3835d4dc83469a528a9185adc748ff51624cc0dd73e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"CassandraClient.insert_embeddings (cognitive 28): CassandraClient.insert_embeddings has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 5 (10 pts), boolean chains 1 (nesting depth added 16). 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":"deepface/modules/database/cassandra.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6988d20e78ae94f0dfb827d0add686b8854953fa414ab603194fa708c3eeae5"}},{"ruleId":"D2","level":"warning","message":{"text":"weaviate.resolve_connection_details (cognitive 27): weaviate.resolve_connection_details has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 8, loops 1 (nesting depth added 4). 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":"deepface/modules/database/weaviate.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d6fca3b4bf39b2d531ffd064ce0fd373d8645472ee2951e883aa4efe3187de"}},{"ruleId":"D2","level":"warning","message":{"text":"datastore.__assign_attributes (cognitive 24): datastore.__assign_attributes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 14). 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":"deepface/modules/datastore.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3be5c951878b1da8ac1f9495b43a4b48b1fa45c25475a7b6e9993488a825f3"}},{"ruleId":"D2","level":"warning","message":{"text":"detection.extract_face (cognitive 22): detection.extract_face has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 5 (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":"deepface/modules/detection.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f11d6e4e0a374769bc406153493f98fab1dbb0b626ee02ff9dcccdec5fd8692"}},{"ruleId":"D2","level":"warning","message":{"text":"benchmark.worker (cognitive 22): benchmark.worker has cognitive complexity 22 (threshold 15). Drivers by points: loops 6 (13 pts), if/else 6 (9 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"experiments/engines/benchmark.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfdb519d3630cd63781b70cbeaccdb582a1cc3e4933bd7be1d279054e6cd107"}},{"ruleId":"D2","level":"warning","message":{"text":"datastore.identify (cognitive 21): datastore.identify has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7, ternaries 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"deepface/modules/datastore.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"871437bc7b4f49cbdcf4734e4be719bbe89c1ad6ea5c81b39ef1b93d9896abf7"}},{"ruleId":"D2","level":"warning","message":{"text":"weight_utils.download_weights_if_necessary (cognitive 19): weight_utils.download_weights_if_necessary has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 1 (2 pts), ternaries 2, boolean chains 1, loops 1 (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":"deepface/commons/weight_utils.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c8b0446f9631698f1af1f028285fa092bf0903a5838f17403389f724fe48a1"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisClient.insert_embeddings (cognitive 19): RedisClient.insert_embeddings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 5 (9 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":"deepface/modules/database/redis.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1512c87dd3935995ef977128d6a4c39f934d3a2b461fb6fa6a580f94658c8486"}},{"ruleId":"D2","level":"warning","message":{"text":"verification.find_confidence (cognitive 19): verification.find_confidence has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 4 (8 pts), boolean chains 2 (nesting depth added 4). 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":"deepface/modules/verification.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc61914348bf6904ad093a76664a4c9a53a9cfa52f3815bdd8ee66a1a81a7f4e"}},{"ruleId":"D2","level":"warning","message":{"text":"datastore.__register (cognitive 18): datastore.__register has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (6 pts), loops 2 (3 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":"deepface/modules/datastore.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc36d048041ff60ddc391dd20e18275e8a8185afb088ff99b339614a2cd4f7c"}},{"ruleId":"D2","level":"warning","message":{"text":"weaviate.resolve_collection_options (cognitive 16): weaviate.resolve_collection_options has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (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":"deepface/modules/database/weaviate.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cab99a3ee2b254f069854b35fa825b22d60544395575bcec8a3574686271962"}},{"ruleId":"D2","level":"warning","message":{"text":"recognition.__find_as_dicts (cognitive 16): recognition.__find_as_dicts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 4 (5 pts), boolean chains 2, ternaries 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":"deepface/modules/recognition.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e2b12eab4c80ff8d416f1c09012c763dc59fa898672c0af0760a4de1707259"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tf/Facenet.py: FileTooLong \u2014 1582 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"deepface/models/facial_recognition/tf/Facenet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7938fd105195aa0a78e580371974bd1c1929b5dad85d22d42e612ce112ab6ac6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modules/datastore.py: FileTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 280 over it, 1.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":"deepface/modules/datastore.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbe8fbac513b089f11a9fe4d8a508713c210ab44af5ea0dcb10f1363bdf5a05"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/weaviate.py: FileTooLong \u2014 729 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 229 over it, 1.46\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":"deepface/modules/database/weaviate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5551a83d6b1eb22aacdcb687f4ae64edf1894f7ea90339119e8b6b988c2e1dcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modules/streaming.py: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 162 over it, 1.32\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":"deepface/modules/streaming.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e735ba56942dc8a068158b7bbe91db0c5a4d752bf8c3abb3619595a83c041e9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modules/recognition.py: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 28 over it, 1.06\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":"deepface/modules/recognition.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ea57e3136e1ce741c4f7ffb9071a0eaad48913556609f7feb8fd4c4a8e0527"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): deepface/modules/database/cassandra.py:438-550 | deepface/modules/database/db2.py:234-308 | deepface/modules/database/mssql.py:221-295 | deepface/modules/database/mysql.py:266-338 | deepface/modules/database/oracle.py:251-328 | deepface/modules/database/pgvector.py:169-252 | deepface/modules/database/postgres.py:206-275 | deepface/modules/database/redis.py:164-242 | deepface/modules/database/sqlite.py:201-275 \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":"deepface/modules/database/cassandra.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d84af016db096e4407dce882ca10e7d070b62eb9a7867ebf46baa3af971388"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): deepface/modules/database/neo4j.py:125-206 | deepface/modules/database/pinecone.py:83-130 | deepface/modules/database/qdrant.py:72-117 | deepface/modules/database/weaviate.py:266-350 \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":"deepface/modules/database/neo4j.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e04d04059124139405af051356839dabc01821cd853037d78f0a41d8279b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): deepface/models/spoofing/pytorch/FasNetBackbone.py:414-500 | deepface/models/spoofing/tf/FasNetBackbone.py:238-336 \u2014 These two members are one piece of code written twice and then edited apart: 87 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":"deepface/models/spoofing/pytorch/FasNetBackbone.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5049311ce1c451c39d3d2338c4f2cdb389d15267d539f4c8cbaef89a7f7807"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): deepface/api/src/modules/core/routes.py:220-261 | deepface/api/src/modules/core/routes.py:267-304 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"deepface/api/src/modules/core/routes.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da6fdbd01c52e51f27dba6689cabd169b03ad94302a711624551ba22969c520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): deepface/models/face_detection/onnx/MtCnn.py:281-304 | deepface/models/face_detection/onnx/MtCnn.py:308-331 | deepface/models/face_detection/onnx/Yolo.py:122-148 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/face_detection/onnx/MtCnn.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad83c40d0a5c2817687a05d837084389da6e6993094f53d07753abd754732ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): deepface/modules/verification.py:306-337 | deepface/modules/verification.py:344-380 \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":"deepface/modules/verification.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c82efe013a6bbb61b1e39532e2479c68c3ad0191567ac9e0b83808bcc9367a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): deepface/api/src/modules/core/routes.py:102-130 | deepface/api/src/modules/core/routes.py:136-168 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/api/src/modules/core/routes.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9257e196c0973f70b5fb34fa80cb087689d6852831372e6be4fb972115535a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): deepface/api/src/grpc_server.py:182-205 | deepface/api/src/grpc_server.py:208-228 \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":"deepface/api/src/grpc_server.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8ecd083e1d4d0aab2e880e7363522f31efe1d6bc3f09dd14e8933949944371"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): deepface/models/spoofing/pytorch/FasNetBackbone.py:230-239 | deepface/models/spoofing/pytorch/FasNetBackbone.py:267-277 \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":"deepface/models/spoofing/pytorch/FasNetBackbone.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c94ac930b2191dada8375545dba2f1deb9de3124b93e76bc5a8352b8cfbcfff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 31\u002B corresponding lines): deepface/modules/database/db2.py:84-116 | deepface/modules/database/mssql.py:81-114 | deepface/modules/database/mysql.py:116-147 | deepface/modules/database/oracle.py:82-113 | deepface/modules/database/postgres.py:68-98 | deepface/modules/database/redis.py:53-87 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 31 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":"deepface/modules/database/db2.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"87339a25ba822252367f4369c540bfe2c081d1d434d8b77fdcba6168e898b228"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): deepface/models/facial_recognition/pytorch/Facenet.py:102-116 | deepface/models/facial_recognition/pytorch/Facenet.py:129-139 | deepface/models/facial_recognition/pytorch/Facenet.py:153-163 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/pytorch/Facenet.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b1a348b0957c15fc3777ddfff424c70f5d6e068edd192184c006778796125b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 27\u002B corresponding lines): deepface/modules/database/db2.py:405-434 | deepface/modules/database/mssql.py:392-421 | deepface/modules/database/mysql.py:430-456 | deepface/modules/database/oracle.py:426-455 | deepface/modules/database/sqlite.py:372-401 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"26df001b2ff6a5caa762725d4f5bacc7fc4602924722e55bf58a44d01aa46f6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): deepface/models/face_detection/onnx/MtCnn.py:335-350 | deepface/models/face_detection/onnx/MtCnn.py:354-369 \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":"deepface/models/face_detection/onnx/MtCnn.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"11138436057472b866fa2e00f391e7b4c609850767fdf0978269b38ce72b401d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): deepface/api/src/grpc_server.py:136-148 | deepface/api/src/grpc_server.py:151-165 | deepface/api/src/grpc_server.py:168-179 \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":"deepface/api/src/grpc_server.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea028d3ad7ba0b6413329d334a43555df2059463387a67bec0bb4aa623ed050"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): deepface/modules/database/db2.py:164-194 | deepface/modules/database/mssql.py:152-181 \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":"deepface/modules/database/db2.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f525f978b95983b7ff8414ed073fa789d1aabe5623834e279a3c7d0e53312563"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): deepface/modules/database/db2.py:203-231 | deepface/modules/database/sqlite.py:170-198 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"df834daed583713cf735ba4ea824f0c3904a703034e78657fbdc7fd4f1a1d9bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): deepface/modules/database/milvus.py:27-47 | deepface/modules/database/pinecone.py:28-48 \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":"deepface/modules/database/milvus.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"930aa2496d02e1f3363245e4d269145427461a6dfceea5fd58f58c82ff8f49f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 15\u002B corresponding lines): deepface/api/src/modules/core/service.py:46-63 | deepface/api/src/modules/core/service.py:76-92 | deepface/api/src/modules/core/service.py:103-120 | deepface/api/src/modules/core/service.py:137-157 | deepface/api/src/modules/core/service.py:216-230 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 15 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":"deepface/api/src/modules/core/service.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca00b02ff2a721f91c82d88bfbf6b038b249d37d6826cafe28217dae1aa1d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): deepface/commons/image_utils.py:47-62 | deepface/commons/image_utils.py:66-79 \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":"deepface/commons/image_utils.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4a6cbf8cab7903db5afe78a31b41b9cf450697648105cf436fe7e5af3a08b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): deepface/modules/database/mssql.py:190-218 | deepface/modules/database/mysql.py:233-263 | deepface/modules/database/oracle.py:220-248 | deepface/modules/database/postgres.py:176-203 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 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":"deepface/modules/database/mssql.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"33773d5d7515ab069b5093de3aeea4c16b502694b34a3e86ffcec991a92af6d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 29\u002B corresponding lines): deepface/modules/database/mssql.py:306-337 | deepface/modules/database/mysql.py:349-378 | deepface/modules/database/oracle.py:339-371 | deepface/modules/database/postgres.py:286-314 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 29 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":"deepface/modules/database/mssql.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2394be414eef553f09ca26f8d6725f6312e38895ff6f5f21a76b0edc84f3630"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): deepface/models/facial_recognition/pytorch/OpenFace.py:188-191 | deepface/models/facial_recognition/pytorch/OpenFace.py:204-207 \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":"deepface/models/facial_recognition/pytorch/OpenFace.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84b93700b762b6ec9fa161a89035aa79d6f5a3c6a7ef2439e640e28028c178b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 2\u002B corresponding lines): deepface/models/facial_recognition/pytorch/OpenFace.py:109-111 | deepface/models/facial_recognition/pytorch/OpenFace.py:127-128 | deepface/models/facial_recognition/pytorch/OpenFace.py:161-162 | deepface/models/facial_recognition/pytorch/OpenFace.py:210-212 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/pytorch/OpenFace.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bcf6c66338992799b9ab4b2d4987094ff8bec915824c40f9b78291ba0e1145"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): deepface/modules/database/oracle.py:383-420 | deepface/modules/database/sqlite.py:329-366 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"deepface/modules/database/oracle.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f1f0cddfe4d3347495243f96a13d4cd7c2c2b631c63df67602f3904e2da2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): deepface/modules/database/mysql.py:390-424 | deepface/modules/database/postgres.py:326-360 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"deepface/modules/database/mysql.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4852ef2200c46cbd5ddfd80ce2f8c88e18f32086efd740bedf3aec6f01ca89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): deepface/models/demography/pytorch/Age.py:37-39 | deepface/models/demography/pytorch/Emotion.py:39-41 | deepface/models/demography/pytorch/Gender.py:38-40 | deepface/models/demography/pytorch/Race.py:39-41 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/demography/pytorch/Age.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e079040f9176a5453e32298593356b2845ce5cd812a6015270fad5e5af73f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): deepface/models/facial_recognition/pytorch/Facenet.py:313-324 | deepface/models/facial_recognition/tf/Facenet.py:1696-1709 \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":"deepface/models/facial_recognition/pytorch/Facenet.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cbf8f327527a2f241d85e233ab0fea1b7a8394a0fb6b608665ced975bcb702"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): deepface/models/facial_recognition/pytorch/Facenet.py:296-307 | deepface/models/facial_recognition/tf/Facenet.py:1676-1690 \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":"deepface/models/facial_recognition/pytorch/Facenet.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe97fb815c589883dde0688ffff3499a36b9fe447f8b892f8a5e20ad7de8be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 5): deepface/modules/database/db2.py:234-277 | deepface/modules/database/mssql.py:221-264 | deepface/modules/database/mysql.py:266-309 | deepface/modules/database/oracle.py:251-294 | deepface/modules/database/sqlite.py:201-244 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/mssql.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060deepface/modules/database/db2.py:234\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":"deepface/modules/database/db2.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8597a126b50e3f12d8328bb897b2a13f14e40d8e10617351929bd232e157ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): deepface/modules/database/pgvector.py:210-252 | deepface/modules/database/postgres.py:233-275 \u2014 before extracting anything, compare \u0060deepface/modules/database/pgvector.py\u0060 and \u0060deepface/modules/database/postgres.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/pgvector.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8099d971651069a6bf9035797d97e077e59e711908b48e5897a7d6ebeb78e42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201341 lines \u00D7 2): deepface/modules/database/cassandra.py:438-477 | deepface/modules/database/redis.py:164-204 \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, \u0060deepface/modules/database/cassandra.py:435\u0060 calls \u0060join\u0060 and \u0060deepface/modules/database/redis.py:161\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":"deepface/modules/database/cassandra.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"744b36deffb2f6d5dda027d2990732549175c7037e5a281027010ba5e2c16f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): deepface/modules/database/db2.py:319-349 | deepface/modules/database/sqlite.py:286-316 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/sqlite.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"574e3a6f593eb1c2c1dd88d3efc365c76ee038aa2e7f71e48e68cdafa5df6f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 3): deepface/models/demography/tf/Age.py:73-102 | deepface/models/demography/tf/Gender.py:71-100 | deepface/models/demography/tf/Race.py:69-96 \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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/demography/tf/Age.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daefdee135616602e92b4ed7885cb580a34422818ea09709530a0895beec9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): deepface/modules/database/db2.py:203-228 | deepface/modules/database/sqlite.py:170-195 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/sqlite.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060deepface/modules/database/db2.py:203\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8cd9997a2e7cc59343e9ede368175b42ece875db7d3bd52e8bdf929b1d29f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): deepface/modules/database/db2.py:329-350 | deepface/modules/database/oracle.py:350-371 | deepface/modules/database/sqlite.py:296-317 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/oracle.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96887ef333fa324eb03d827b4a1596bfc59017234dcd65b71e20135e4de9b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): deepface/api/src/modules/core/routes.py:222-239 | deepface/api/src/modules/core/routes.py:269-286 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/api/src/modules/core/routes.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"135e7b0a8cbae37004d20fa3a8e6a80fda1304fc645df25151b9f498dd4dccc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): deepface/models/facial_recognition/onnx/VGGFace.py:36-53 | deepface/models/facial_recognition/pytorch/VGGFace.py:42-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/onnx/VGGFace.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e850f879c8491ef13aa017a60413dd8b0484d0dbbd6394e3ed4065c78c9ecd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): deepface/modules/database/pgvector.py:51-68 | deepface/modules/database/postgres.py:78-95 \u2014 before extracting anything, compare \u0060deepface/modules/database/pgvector.py\u0060 and \u0060deepface/modules/database/postgres.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/pgvector.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ad9e7b64f099a4692a6ab66fd6780ca99062e40e2cdd8fcf40cf5543010de9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): deepface/modules/verification.py:306-323 | deepface/modules/verification.py:344-365 \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":"deepface/modules/verification.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced09293207ef0fe6efa400df0235f5563859a1acdbb7c3522ac1f4e6b93de0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): deepface/modules/database/pinecone.py:141-157 | deepface/modules/database/pinecone.py:237-253 \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":"deepface/modules/database/pinecone.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a188eb17dfae8ea702af32adeed0c2200ffba794f12f16f949efa3206f2cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): deepface/modules/database/db2.py:405-420 | deepface/modules/database/mssql.py:392-407 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/mssql.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060deepface/modules/database/db2.py:405\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"735b468a1bca3ce4af2cd52e80dd6ade77312ae05630075a21fa6870e4765a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): deepface/modules/database/mssql.py:402-417 | deepface/modules/database/mysql.py:439-454 \u2014 before extracting anything, compare \u0060deepface/modules/database/mssql.py\u0060 and \u0060deepface/modules/database/mysql.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"deepface/modules/database/mssql.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"b841aff25c28ddcd5e4ab4bd06eb7a75bfa07afaf4015ab7726caadc00c504bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): deepface/modules/database/weaviate.py:363-377 | deepface/modules/database/weaviate.py:473-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/weaviate.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"1424487819b8ee0299a36d2cf270edca92496f52dca9a89182e1f830e8af8420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): deepface/DeepFace.py:448-462 | deepface/DeepFace.py:958-972 | deepface/modules/datastore.py:369-383 \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 \u0060deepface/DeepFace.py:448\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":"deepface/DeepFace.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1aca70baf94e44f75ecd67711da4a5e9710b860036193c32140af38c4b063e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): deepface/api/src/modules/core/routes.py:220-234 | deepface/api/src/modules/core/routes.py:267-281 | deepface/api/src/modules/core/routes.py:310-324 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/api/src/modules/core/routes.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"71aade2fa6aa50327606dd8d1bda8c4dd27ea08e9842dbc3baecfcdfc4d10aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): deepface/api/src/modules/core/service.py:78-92 | deepface/api/src/modules/core/service.py:143-157 \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 \u0060deepface/api/src/modules/core/service.py: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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/api/src/modules/core/service.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bda79fc9a7eff9b2cdf21ebadb969b26bbeaf6d156a0dfb1fdd00d61a8e0c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201315 lines \u00D7 4): deepface/modules/database/neo4j.py:166-187 | deepface/modules/database/pinecone.py:112-126 | deepface/modules/database/qdrant.py:95-99 | deepface/modules/database/weaviate.py:290-292 \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 4 call sites, so a change lands once. 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":"deepface/modules/database/neo4j.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0845e3ecd997242a76442a89ab9cfa8b222a5a85c60f45bc42a4be4b9dcc3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 20): deepface/models/facial_recognition/tf/Facenet.py:207-219 | deepface/models/facial_recognition/tf/Facenet.py:282-294 | deepface/models/facial_recognition/tf/Facenet.py:357-369 | deepface/models/facial_recognition/tf/Facenet.py:432-444 | deepface/models/facial_recognition/tf/Facenet.py:507-520 | deepface/models/facial_recognition/tf/Facenet.py:622-634 | deepface/models/facial_recognition/tf/Facenet.py:685-697 | deepface/models/facial_recognition/tf/Facenet.py:748-760 | deepface/models/facial_recognition/tf/Facenet.py:811-823 | deepface/models/facial_recognition/tf/Facenet.py:874-886 | deepface/models/facial_recognition/tf/Facenet.py:937-949 | deepface/models/facial_recognition/tf/Facenet.py:1000-1012 | deepface/models/facial_recognition/tf/Facenet.py:1063-1075 | deepface/models/facial_recognition/tf/Facenet.py:1126-1138 | deepface/models/facial_recognition/tf/Facenet.py:1189-1202 | deepface/models/facial_recognition/tf/Facenet.py:1338-1350 | deepface/models/facial_recognition/tf/Facenet.py:1401-1413 | deepface/models/facial_recognition/tf/Facenet.py:1464-1476 | deepface/models/facial_recognition/tf/Facenet.py:1527-1539 | deepface/models/facial_recognition/tf/Facenet.py:1590-1602 \u2014 all 20 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 \u0060deepface/models/facial_recognition/tf/Facenet.py:207\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 first that the copies are not typed on the same thing: \u0060Activation\u0060 names \u0060keras.layers\u0060 in one and \u0060tensorflow.keras.layers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/tf/Facenet.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72063ee843381b8118ce7d90b9243e36a14182cb240bde8107c1243bfb54472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): deepface/models/spoofing/pytorch/FasNet.py:61-74 | deepface/models/spoofing/pytorch/FasNet.py:77-90 \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":"deepface/models/spoofing/pytorch/FasNet.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a601388c5633a051f8c4f2e765d187823a72753470d84007fa19e292efc28f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): deepface/api/src/modules/core/routes.py:102-114 | deepface/api/src/modules/core/routes.py:136-148 | deepface/api/src/modules/core/routes.py:174-186 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/api/src/modules/core/routes.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d86d334411af055b392ed374f9b43ccc46c8fbb1bebdec1f812b13be82520f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): deepface/models/facial_recognition/pytorch/DeepID.py:33-45 | deepface/models/facial_recognition/pytorch/FbDeepFace.py:35-47 | deepface/models/facial_recognition/pytorch/OpenFace.py:39-51 \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":"deepface/models/facial_recognition/pytorch/DeepID.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c4e6e0f86af747408782f8df3edb350db2c872e0f727050d484d6eee2330a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): deepface/modules/database/db2.py:219-231 | deepface/modules/database/oracle.py:236-248 | deepface/modules/database/sqlite.py:186-198 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/oracle.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5407ce759d9ed070a7fd76f0dd463e3134452ffe1d00cc8f479f80f7fecfe0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 8): deepface/models/facial_recognition/tf/OpenFace.py:216-225 | deepface/models/facial_recognition/tf/OpenFace.py:253-263 | deepface/models/facial_recognition/tf/OpenFace.py:275-284 | deepface/models/facial_recognition/tf/OpenFace.py:291-300 | deepface/models/facial_recognition/tf/OpenFace.py:313-322 | deepface/models/facial_recognition/tf/OpenFace.py:334-344 | deepface/models/facial_recognition/tf/OpenFace.py:354-363 | deepface/models/facial_recognition/tf/OpenFace.py:372-383 \u2014 all 8 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 \u0060deepface/models/facial_recognition/tf/OpenFace.py:216\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, \u0060deepface/models/facial_recognition/tf/OpenFace.py:210\u0060 calls \u0060ZeroPadding2D\u0060, \u0060concatenate\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:369\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":"deepface/models/facial_recognition/tf/OpenFace.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52dd0e9e3469e0379613a9d057cfff951c46746daf5e51fdf6fbde7b24f53e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): deepface/models/spoofing/tf/FasNetBackbone.py:256-267 | deepface/models/spoofing/tf/FasNetBackbone.py:274-285 | deepface/models/spoofing/tf/FasNetBackbone.py:299-308 \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 \u0060deepface/models/spoofing/tf/FasNetBackbone.py:256\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":"deepface/models/spoofing/tf/FasNetBackbone.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"5198b181a6667ec5db88f96129d07c79d2ea0793cad8bf5d9dc0d67422262419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): deepface/modules/database/db2.py:285-296 | deepface/modules/database/mssql.py:272-283 | deepface/modules/database/sqlite.py:252-263 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/mssql.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060deepface/modules/database/db2.py:285\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c1e707b8df5d3fe35656b7a43516b052f712fe25db362b2a327c8b5aeaae2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): deepface/modules/database/mysql.py:317-328 | deepface/modules/database/pgvector.py:233-244 | deepface/modules/database/postgres.py:256-267 \u2014 before extracting anything, compare \u0060deepface/modules/database/pgvector.py\u0060 and \u0060deepface/modules/database/postgres.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060deepface/modules/database/mysql.py:317\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/mysql.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ceeb16353e5f4ca17b11a545a04cafdd1c10494931e6e2e4fed9480708fa134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): deepface/models/facial_recognition/tf/Facenet.py:562-572 | deepface/models/facial_recognition/tf/Facenet.py:1277-1288 \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 \u0060deepface/models/facial_recognition/tf/Facenet.py:562\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 first that the copies are not typed on the same thing: \u0060BatchNormalization\u0060 names \u0060keras.layers\u0060 in one and \u0060tensorflow.keras.layers\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/tf/Facenet.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"8938621ec4049c7734d53757905675ea2cdfa8bf1829685015903884f5e4f803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): deepface/models/face_detection/onnx/MtCnn.py:281-291 | deepface/models/face_detection/onnx/Yolo.py:122-133 \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":"deepface/models/face_detection/onnx/MtCnn.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bc20b6f32cb0218b5e211e2c979e6c55ce7d7211840016ab19818ee0ef1a7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 7): deepface/models/facial_recognition/tf/OpenFace.py:76-78 | deepface/models/facial_recognition/tf/OpenFace.py:79-81 | deepface/models/facial_recognition/tf/OpenFace.py:94-104 | deepface/models/facial_recognition/tf/OpenFace.py:105-109 | deepface/models/facial_recognition/tf/OpenFace.py:131-135 | deepface/models/facial_recognition/tf/OpenFace.py:137-147 | deepface/models/facial_recognition/tf/OpenFace.py:159-163 \u2014 all 7 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. Note first that the copies are not typed on the same thing: \u0060Model\u0060 names \u0060keras.models\u0060 in one and \u0060tensorflow.keras.models\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060deepface/models/facial_recognition/tf/OpenFace.py:74\u0060 calls \u0060MaxPooling2D\u0060, \u0060Lambda\u0060, \u0060lrn\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:93\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":"deepface/models/facial_recognition/tf/OpenFace.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d071cbf25fde9677d6256e9064ff2b22444d84056ad713c76afad91774194b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): deepface/modules/database/db2.py:184-194 | deepface/modules/database/mssql.py:171-181 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/mssql.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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, \u0060deepface/modules/database/db2.py:183\u0060 calls \u0060Binary\u0060 and \u0060deepface/modules/database/mssql.py:170\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":"deepface/modules/database/db2.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2ab3d90baa99467248909496a2f37a3a87d9ee2dadf458ea83f3b44dcd30ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): deepface/modules/database/cassandra.py:452-461 | deepface/modules/database/db2.py:266-275 | deepface/modules/database/mssql.py:253-262 | deepface/modules/database/mysql.py:298-307 | deepface/modules/database/oracle.py:283-292 | deepface/modules/database/redis.py:178-187 | deepface/modules/database/sqlite.py:233-242 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/mssql.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060deepface/modules/database/cassandra.py:452\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060deepface/modules/database/db2.py:264\u0060 calls \u0060dumps\u0060, \u0060list\u0060, \u0060astype\u0060 and \u0060deepface/modules/database/cassandra.py:451\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":"deepface/modules/database/cassandra.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8bb9ff06eeea12e1f1c581190b2396d704e61dd35729f92d2c3c7b674d0a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): deepface/modules/database/mssql.py:259-268 | deepface/modules/database/mysql.py:304-313 | deepface/modules/database/oracle.py:289-298 | deepface/modules/database/pgvector.py:220-229 | deepface/modules/database/postgres.py:243-252 \u2014 before extracting anything, compare \u0060deepface/modules/database/mssql.py\u0060 and \u0060deepface/modules/database/mysql.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060deepface/modules/database/mssql.py:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/mssql.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49408406bd58f460974de3122373cfdf349b35617b7ce8f1affe045f3534d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): deepface/api/src/modules/core/service.py:56-63 | deepface/api/src/modules/core/service.py:113-120 | deepface/api/src/modules/core/service.py:196-205 \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 \u0060deepface/api/src/modules/core/service.py:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/api/src/modules/core/service.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b70d2d52caf2e70d989c0acf5a852ec671eacbe8e9882ded59b23b6f569bd36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): deepface/models/facial_recognition/pytorch/Facenet.py:129-137 | deepface/models/facial_recognition/pytorch/Facenet.py:153-161 \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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060scale\u0060 to \u0060float = 0.1\u0060 in one and \u0060float = 0.2\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/pytorch/Facenet.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b19908c871d0540aca4a93e7ff0d8222c8e35e1ed7a714bedefd8f5fbea3076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): deepface/models/facial_recognition/tf/OpenFace.py:202-215 | deepface/models/facial_recognition/tf/OpenFace.py:299-312 \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 \u0060deepface/models/facial_recognition/tf/OpenFace.py:202\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":"deepface/models/facial_recognition/tf/OpenFace.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2dcf694c9071a1a343ab7655bb1c090824f6b79bc218798f27a35385e0b38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): deepface/models/facial_recognition/tf/OpenFace.py:240-248 | deepface/models/facial_recognition/tf/OpenFace.py:321-329 \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 \u0060deepface/models/facial_recognition/tf/OpenFace.py:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/tf/OpenFace.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb70cfe6ec3ab546231bdaa2506acdfda32a91ce13612b95bf9c1734de649749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): deepface/models/facial_recognition/tf/OpenFace.py:202-209 | deepface/models/facial_recognition/tf/OpenFace.py:299-306 | deepface/models/facial_recognition/tf/OpenFace.py:362-369 \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 \u0060deepface/models/facial_recognition/tf/OpenFace.py:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060deepface/models/facial_recognition/tf/OpenFace.py:210\u0060 calls \u0060ZeroPadding2D\u0060, \u0060concatenate\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:371\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":"deepface/models/facial_recognition/tf/OpenFace.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f6e40f8baacce1f59e00bc06b2729e51377d05f6d2bb5813dd29de9534b2d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): deepface/models/face_detection/onnx/Yolo.py:238-245 | deepface/models/face_detection/pytorch/Yolo.py:148-155 \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 \u0060deepface/models/face_detection/onnx/Yolo.py:238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/face_detection/onnx/Yolo.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c6fcdf009ca137017b4945f7c74f4216c64ca440cccaa0144c9e51206b6af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 18): deepface/models/facial_recognition/tf/OpenFace.py:185-191 | deepface/models/facial_recognition/tf/OpenFace.py:201-207 | deepface/models/facial_recognition/tf/OpenFace.py:215-221 | deepface/models/facial_recognition/tf/OpenFace.py:223-229 | deepface/models/facial_recognition/tf/OpenFace.py:239-245 | deepface/models/facial_recognition/tf/OpenFace.py:252-258 | deepface/models/facial_recognition/tf/OpenFace.py:261-267 | deepface/models/facial_recognition/tf/OpenFace.py:271-280 | deepface/models/facial_recognition/tf/OpenFace.py:282-288 | deepface/models/facial_recognition/tf/OpenFace.py:298-304 | deepface/models/facial_recognition/tf/OpenFace.py:312-318 | deepface/models/facial_recognition/tf/OpenFace.py:320-326 | deepface/models/facial_recognition/tf/OpenFace.py:333-339 | deepface/models/facial_recognition/tf/OpenFace.py:342-348 | deepface/models/facial_recognition/tf/OpenFace.py:353-359 | deepface/models/facial_recognition/tf/OpenFace.py:361-367 | deepface/models/facial_recognition/tf/OpenFace.py:371-377 | deepface/models/facial_recognition/tf/OpenFace.py:381-387 \u2014 all 18 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 \u0060deepface/models/facial_recognition/tf/OpenFace.py:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060deepface/models/facial_recognition/tf/OpenFace.py:209\u0060 calls \u0060MaxPooling2D\u0060, \u0060ZeroPadding2D\u0060, \u0060concatenate\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:290\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":"deepface/models/facial_recognition/tf/OpenFace.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4ca57756fff02b14638110d161d96c4ff25c765c3576c49728e498c04e4aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): deepface/modules/database/db2.py:415-421 | deepface/modules/database/mssql.py:402-408 | deepface/modules/database/mysql.py:439-445 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/mssql.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060deepface/modules/database/db2.py:415\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":"deepface/modules/database/db2.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2f8001af0d49dc357803950e5d7d351110e9633bf7188e21e7640d3151282a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): deepface/commons/image_utils.py:55-60 | deepface/commons/image_utils.py:73-78 \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":"deepface/commons/image_utils.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e486d68757420fea2fe636f7867b4ca5d6e3de0d491ff8793b57bfc574bff0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): deepface/models/facial_recognition/tf/OpenFace.py:151-156 | deepface/models/facial_recognition/tf/OpenFace.py:244-248 | deepface/models/facial_recognition/tf/OpenFace.py:325-329 \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 \u0060deepface/models/facial_recognition/tf/OpenFace.py:151\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 first that the copies are not typed on the same thing: \u0060Model\u0060 names \u0060keras.models\u0060 in one and \u0060tensorflow.keras.models\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/tf/OpenFace.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d7762410558dcc93d04a9d7c60b7371161627879a64df7ed077e6942d52ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): deepface/models/spoofing/pytorch/FasNetBackbone.py:231-239 | deepface/models/spoofing/pytorch/FasNetBackbone.py:268-276 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060deepface/models/spoofing/pytorch/FasNetBackbone.py:277\u0060 calls \u0060SEModule\u0060 and \u0060deepface/models/spoofing/pytorch/FasNetBackbone.py:241\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":"deepface/models/spoofing/pytorch/FasNetBackbone.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e392893da20315cf1a8dcc26fd88cf1307d932d7939b179c59f8f3543aa2eaf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): deepface/models/spoofing/pytorch/FasNetBackbone.py:435-440 | deepface/models/spoofing/pytorch/FasNetBackbone.py:472-477 \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 \u0060deepface/models/spoofing/pytorch/FasNetBackbone.py:435\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":"deepface/models/spoofing/pytorch/FasNetBackbone.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"86edf51cb749217d4ef668777f55f93d2736cc7a1ebdc7ba7ea8bba0bdafb6a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): deepface/models/demography/onnx/Gender.py:33-63 | deepface/models/demography/onnx/Race.py:33-64 \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":"deepface/models/demography/onnx/Gender.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee609edeabff10e83507eb969f81d6babf2162b8eb7d81c248f46fd377d1b76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): deepface/models/facial_recognition/onnx/ArcFace.py:26-40 | deepface/models/facial_recognition/onnx/GhostFaceNet.py:28-42 \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":"deepface/models/facial_recognition/onnx/ArcFace.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"808c2c2e8bd4d1adbdcae406eeb8716a113904f6400bc68a58ea72ea5e22c652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): deepface/models/facial_recognition/onnx/DeepID.py:26-48 | deepface/models/facial_recognition/onnx/FbDeepFace.py:26-48 | deepface/models/facial_recognition/onnx/OpenFace.py:26-48 \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":"deepface/models/facial_recognition/onnx/DeepID.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12dc5fa454e13c9a4de34cacb7fdb0959fec48496ba54d84ee81eba4e2bf913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): deepface/models/demography/onnx/Age.py:35-55 | deepface/models/demography/pytorch/Age.py:44-64 | deepface/models/demography/tf/Age.py:47-67 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/demography/onnx/Age.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c350df234dc0fc40ee9735fb1192fe04fecd6081136078e5b9c87dac17317e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): deepface/models/demography/onnx/Emotion.py:50-70 | deepface/models/demography/pytorch/Emotion.py:56-76 | deepface/models/demography/tf/Emotion.py:67-87 \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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/demography/onnx/Emotion.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1d453ea27bbc18b33ab0b3e3a500d09bfc513a02b8e4f3350347df53fed79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): deepface/models/demography/pytorch/Age.py:88-99 | deepface/models/demography/pytorch/Emotion.py:149-160 | deepface/models/demography/pytorch/Gender.py:82-93 | deepface/models/demography/pytorch/Race.py:84-95 | deepface/models/facial_recognition/pytorch/ArcFace.py:184-195 | deepface/models/facial_recognition/pytorch/GhostFaceNet.py:293-304 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/demography/pytorch/Age.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46905e5734e064eacc19b592cb1d7468069e175738ad7d67449366f0f6ed777"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): deepface/models/facial_recognition/onnx/OnnxFacialRecognition.py:36-40 | deepface/models/facial_recognition/pytorch/TorchFacialRecognition.py:63-67 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/facial_recognition/onnx/OnnxFacialRecognition.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94ec7f1241b08d61ee65b55aca9e6224cbb7a523ea5d8e18108e043ae2b8878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): deepface/models/facial_recognition/pytorch/ArcFace.py:36-40 | deepface/models/facial_recognition/pytorch/GhostFaceNet.py:51-55 | deepface/models/facial_recognition/pytorch/VGGFace.py:35-39 \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":"deepface/models/facial_recognition/pytorch/ArcFace.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8222ccba903124b546575632e0cdba1f67fb322ba596343ccd0ca1ad0b8a6d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): deepface/models/facial_recognition/tf/DeepID.py:53-64 | deepface/models/facial_recognition/tf/OpenFace.py:45-56 \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":"deepface/models/facial_recognition/tf/DeepID.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"484c4c0a24647e906ed274b678fcebf3a1dc280c1debf3ceab9288a9e24e2483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): deepface/modules/database/db2.py:362-399 | deepface/modules/database/mssql.py:349-386 \u2014 before extracting anything, compare \u0060deepface/modules/database/db2.py\u0060 and \u0060deepface/modules/database/mssql.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/database/db2.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"6346bffcc98e8641dc5e019e78df67cb52c1464aedbd4a1eff1fc68de7a0bcda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): deepface/models/face_detection/onnx/MtCnn.py:300-304 | deepface/models/face_detection/onnx/Yolo.py:144-148 \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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/face_detection/onnx/MtCnn.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8f4529673bd0bc05e8610a3962e5b5581f79beccf337e54e59fe3188294dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): deepface/models/facial_recognition/pytorch/OpenFace.py:102-106 | deepface/models/facial_recognition/pytorch/OpenFace.py:120-124 | deepface/models/facial_recognition/pytorch/OpenFace.py:154-158 \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":"deepface/models/facial_recognition/pytorch/OpenFace.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0138488058eb3f075269da0c28e405e3e58af79389942cebf4f3b7761c3cfda6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): deepface/models/facial_recognition/pytorch/OpenFace.py:137-141 | deepface/models/facial_recognition/pytorch/OpenFace.py:171-175 \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":"deepface/models/facial_recognition/pytorch/OpenFace.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c302d6e3bed8033437c4eb6a4f0bdeeaf395b4c53b660daae089e0726cc24561"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: ultralytics: \u0060ultralytics\u0060 8.4.215 is published on PyPI under \u0060AGPL-3.0\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"311dc4d6c868d3f33de97772a04c6d536fe2e278852cf9f3a4dd8a363ba601de"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: ultralytics-thop: \u0060ultralytics-thop\u0060 2.2.5 is published on PyPI under \u0060AGPL-3.0\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9cc5a654498d125ae87c4f1f0c70b18abe9b92717071862f604fcadf2c5b502"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: ultralytics-platform: \u0060ultralytics-platform\u0060 0.1.111 is published on PyPI under \u0060AGPL-3.0-only\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"529919b00785b1717ea53a0779096b6aa49b697a912ceed5821df3bc723d9528"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: deepface/modules/recognition.py: deepface/modules/recognition.py changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in recognition.find at line 41. 3 of those changes were fix/bug commits, and the other 12 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 15:25:48 \u002B00:00\u0027 --until=\u00272026-11-16 15:25:48 \u002B00:00\u0027 --full-history --no-merges -- deepface/modules/recognition.py\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":"deepface/modules/recognition.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e27cb8b767abe57dbaeffba91bce2e1eccae415fc832a7acfcd009a37cabe9a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: deepface/modules/datastore.py: deepface/modules/datastore.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in datastore.__search at line 394. 3 of those changes were fix/bug commits, and the other 9 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 15:25:48 \u002B00:00\u0027 --until=\u00272026-11-16 15:25:48 \u002B00:00\u0027 --full-history --no-merges -- deepface/modules/datastore.py\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":"deepface/modules/datastore.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"1230112c3bb6c18923a32a3585c0fcb958f3123746bfcb5d671af1327b5e54e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: deepface/modules/detection.py: deepface/modules/detection.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in detection.extract_faces at line 47. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 15:25:48 \u002B00:00\u0027 --until=\u00272026-11-16 15:25:48 \u002B00:00\u0027 --full-history --no-merges -- deepface/modules/detection.py\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":"deepface/modules/detection.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa175ef99c4c7ac073fca90c58a2a119c7de55be357575df9bb52d1cd6281b7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: deepface/modules/representation.py: deepface/modules/representation.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in representation.represent at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 15:25:48 \u002B00:00\u0027 --until=\u00272026-11-16 15:25:48 \u002B00:00\u0027 --full-history --no-merges -- deepface/modules/representation.py\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":"deepface/modules/representation.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0bd40f929616a5730c779cd67b05aafa91997466dd56948707a1274c3e22f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: deepface/modules/database/weaviate.py: deepface/modules/database/weaviate.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in weaviate.resolve_connection_details at line 619. 1 of those changes was a fix/bug commit, and the other 3 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 15:25:48 \u002B00:00\u0027 --until=\u00272026-11-16 15:25:48 \u002B00:00\u0027 --full-history --no-merges -- deepface/modules/database/weaviate.py\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":"deepface/modules/database/weaviate.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7180b83cf7f832bc286737213b2bb26ad98299d2b32992d4b041fb39139a60"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: deepface/commons/weight_utils.py: deepface/commons/weight_utils.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in weight_utils.download_all_models_in_one_shot at line 186. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 15:25:48 \u002B00:00\u0027 --until=\u00272026-11-16 15:25:48 \u002B00:00\u0027 --full-history --no-merges -- deepface/commons/weight_utils.py\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":"deepface/commons/weight_utils.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea538c6f88ceb79ea307cfec5f699546fd75c45472bde46e353d93c712c4f97a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: deepface/modules/demography.py: deepface/modules/demography.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in demography.analyze at line 20. 1 of those changes was a fix/bug commit, and the other 1 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 15:25:48 \u002B00:00\u0027 --until=\u00272026-11-16 15:25:48 \u002B00:00\u0027 --full-history --no-merges -- deepface/modules/demography.py\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":"deepface/modules/demography.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2084e248e7b2d59b191479e46941b6dfa966dca6ec3892d933b6b21927f59a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: deepface/modules/streaming.py: deepface/modules/streaming.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in streaming.analysis at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 15:25:48 \u002B00:00\u0027 --until=\u00272026-11-16 15:25:48 \u002B00:00\u0027 --full-history --no-merges -- deepface/modules/streaming.py\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":"deepface/modules/streaming.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cf777b9bf0ad0f2085c81c87fba50292a0544309009ea7d8f279b880dd825f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 18 significant file(s) lose their only recent owner: deepface/models/facial_recognition/tf/OpenFace.py, deepface/models/spoofing/tf/FasNetBackbone.py, deepface/api/src/grpc_server.py, deepface/models/facial_recognition/pytorch/Facenet.py, deepface/models/facial_recognition/pytorch/OpenFace.py, deepface/api/src/modules/core/service.py, deepface/models/facial_recognition/pytorch/FbDeepFace.py, deepface/commons/backend_utils.py (\u002B10 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f85b0f03548c68611ea673fcf54fd18f3c169d880b40f252238d23601fd90b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: find a way to check write is called \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/unit/test_commons.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9329a278d81da59d514c12f78434c0873be39ef4c5bb175b48b4215547e23f9d"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060setup.py\u0060 makes this repository a deployable product (line 69)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"setup.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"592d3b527192dcc635e0d3620b5ab85e733e86a8c73dc2514871cd852d17c732"}},{"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":"5d20f7026d96dff87c0a5ec8a5880d244c1ff97e25de946511a7f44e3751b656"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"92174a20f13f532e94fb54bed4baa60553f418f95ce8c6e2136e4e36c8a44995"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1632a67b7dae349a2bbd08ea6bbc9953841b2706240b025d72cdfbe56e66f017"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c71bc63859c427b5f68580967c02c400ab4e29e08e06757c03d03a3a6ea4ae32"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3d982864d1247ce3113d97003662332f8e88af3c407da22373660c412a061d8a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1d7d6b23a158593e5a180b2078eeb1d6b46d64836d95abe7b2cfc7e5107b18b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"29b52813d437f1517227b445585db55709d6308d0c5c4c74395d5729b1b8f361"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8156da87730863e36625e2f575160ff00499aa7468cbbd4314bbaa4ff04b0373"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0446ad0610f91ab060ba1a4783f9d38b58690c0b05a284cc79222d7296b5646d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"b9988bb1de6b725e51a5dcc3cf7b7ac5b6ac46b25fbecd3bba203040ce099eb4"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e4834abb9dd9c60a608b41773e0b412d03521ffee384d73e4fc79979af60edd8"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"5dac97c99e0d2fbadf46bb19d3452d818ba79358d8048bec117ff722d0de641d"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e639b4fd435dd91e6260a4e72c3cac07b37c1cffe5dd55475b226804ce298109"},"properties":{"dependency":{"package":"torch","version":"2.1.2","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2026-139"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad4a683fa899f9769f3a0157881649e4863cca05e1686a859b72a011501edc36"},"properties":{"dependency":{"package":"torch","version":"2.1.2","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2026-139"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1159268c951daf0b42b14d71cfe4b0073fc2ffc6a6cd93e52a0667fecbbac651"},"properties":{"dependency":{"package":"keras","version":"2.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2025-121"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","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":"7947c9095bdec1e5615d7ac4e17395aaff5d453247c6994532bf7cf968af69b8"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"3d0d06e972d21ce09a33eb5c1189df4d379341dbf1af622e526c5f55663e89e1"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"d1a9578aaf77e0ba55a31bc6160fd6b2bd530e4d22804926fb1b2d44521ba32d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"ed8b91efb447be7a64231e9f421593a49b65aa6869a67609174434932963efb1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"9dfb844c6ad857f58cf25b622e68de3e40a6eb426c35b256f2e3dfab2d2572e4"}},{"ruleId":"D31","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":"80a5c56961d5fa3fb5579b5e325d3a2b949c4570ab59478a9d72855ff84627c3"}},{"ruleId":"D31","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":"8e348677904dfe2887276b4df522c2b34f37d6add8d325cc5ee1a25f275e1449"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"eedd6ec2be9aa2b0a0993eb5d2fa1d187c94085e3d33f0b36195538bde94e095"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"71b46548a912b8369b0bed7131101a5661a5917a5ac84da23d15babe14a74e15"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"59500afd2a3d683c433a32e3952898e60cf205b4bc6f58a2f9c36ef434d6c386"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"bc76384f386f892b152acad1113efaa4e9467693b9e23a3d602b7b388b9f7ba9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"c778fc26db12bf3cf26468b6f7b123a1ca00ac34cc7754600af438146cd1fb9c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: Age.py, Emotion.py, Gender.py, Race.py: 4 files \u2014 \u0060deepface/models/demography/tf/Age.py\u0060, \u0060deepface/models/demography/tf/Emotion.py\u0060, \u0060deepface/models/demography/tf/Gender.py\u0060, \u0060deepface/models/demography/tf/Race.py\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 6 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/demography/tf/Age.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dcecce5c0a7540b1db9d3f068d34845a3968b542876a88f39500ae95f0b109"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: MtCnn.py \u2192 Dlib.py, RetinaFace.py, OpenCv.py: \u0060deepface/models/face_detection/tf/MtCnn.py\u0060 changes together with 3 other files \u2014 \u0060deepface/models/face_detection/external/Dlib.py\u0060, \u0060deepface/models/face_detection/external/RetinaFace.py\u0060, \u0060deepface/models/face_detection/opencv/OpenCv.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/face_detection/tf/MtCnn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51e235a6b18c7d956a28888cc7f2cf568f176031245ce632c8ffedb3b329e1b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Dlib.py \u2194 OpenCv.py: \u0060deepface/models/face_detection/external/Dlib.py\u0060 and \u0060deepface/models/face_detection/opencv/OpenCv.py\u0060 change together 59% of the time (10 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060745b4b88\u0060 set left and right eye locations with respect to the person instead o\u2026 (at that commit the files were still \u0060deepface/detectors/Dlib.py\u0060 and \u0060deepface/detectors/OpenCv.py\u0060); \u00607ee55cb6\u0060 common confidence scales (at that commit the files were still \u0060deepface/detectors/Dlib.py\u0060 and \u0060deepface/detectors/OpenCv.py\u0060); \u0060e529fa5c\u0060 make detection, alignment and expanding in common place (at that commit the files were still \u0060deepface/detectors/Dlib.py\u0060 and \u0060deepface/detectors/OpenCv.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/face_detection/external/Dlib.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa5a2daf57f75bc146c0c2cb531a3d29734155c621cab223c337904c81934fe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: preprocessing.py \u2194 recognition.py: \u0060deepface/modules/preprocessing.py\u0060 and \u0060deepface/modules/recognition.py\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060b345b1df\u0060 image utils; \u0060cd36b13d\u0060 more file utils; \u006083c381e3\u0060 using with clause to open img with pil to guarantee it is closed \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/preprocessing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bed97609705fa77152909130f9b577428641de3b4df9e4f6162299266d8b87"}},{"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":"16306b945c4d23f63233ca9e436ca6f07b29beb9e894901775fc18bf267cb0a8"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 1 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/tests.yml"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060anti_spoofing is True and img_obj.get(\u0022is_real\u0022, True) is False\u0060 appears character-identically in 3 files \u2014 deepface/modules/demography.py, deepface/modules/representation.py, deepface/modules/verification.py. 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":"deepface/modules/demography.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ad687c8255601cd4046c346d13f062af44e2a3b95997c340cb94c7498405bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060connection_details or os.environ.get(\u0022DEEPFACE_POSTGRES_URI\u0022)\u0060 appears character-identically in 2 files \u2014 deepface/modules/database/pgvector.py, deepface/modules/database/postgres.py. 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":"deepface/modules/database/pgvector.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe363fe2b6b5723fa8b645b4f4e93789d2572583454feb7ba8d915b86a1f469d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(img_path, np.ndarray) and img_path.ndim == 4\u0060 appears character-identically in 3 files \u2014 deepface/modules/demography.py, deepface/modules/detection.py, deepface/modules/representation.py. 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":"deepface/modules/demography.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a8a51a9179af6b0568aa27a19d61f1c3d2272484c919e7c1b0351fea73e0a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(distance_metric, str) and threshold is None\u0060 appears character-identically in 2 files \u2014 deepface/modules/recognition.py, deepface/modules/verification.py. 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":"deepface/modules/recognition.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"635defce4a30e59f5fe7711b0953a94bb46aba562e4df2fdc2e9cfcda368135f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060to_native\u0060 is public and takes \u0060obj: Any\u0060 from its caller, and it calls itself at line 25 (\u0060to_native\u0060) with a piece of \u0060obj\u0060 (and at line 27, line 29, line 31) \u2014 and nowhere in \u0060to_native\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060to_native\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/api/src/modules/core/service.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b127781ed78095f57889cab848c27d6c8464761c9fe40994888336186aece524"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/face_detection/opencv/OpenCv.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d303f935be189f4a49745a86c0d50abce97d321444535556d50b44f65b5b84b1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 54 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/commons/package_utils.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"56744c5d027ac2ff06b8d044c8d3a63923260aa133a10d9a64224c226b8c5eba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060grab_facial_areas\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/streaming.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a6c2d4b16d0339ccee0b183647c72b9e4f469131c25ca5023f7ff122cd72d1"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.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-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"Improper Certificate Validation","shortDescription":{"text":"Improper Certificate Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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":"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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":32,"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."]}]}