{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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":"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":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"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":"datastore.search (cyclomatic 43): datastore.search has cyclomatic complexity 43 (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":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"714861798e9d74d2a206e7386e95bf1259e8a8ae306b8feac4dfdd2e9d9a8cd7"}},{"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":"detection.extract_faces (cyclomatic 33): detection.extract_faces has cyclomatic complexity 33 (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":"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":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"9362d3174b2ecf462b68f61ddf3668156ef4178b8aea81f5e646a8c6ba6e6da0"}},{"ruleId":"D1","level":"warning","message":{"text":"streaming.analysis (cyclomatic 20): streaming.analysis has cyclomatic complexity 20 (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":"representation.represent (cyclomatic 18): representation.represent has cyclomatic complexity 18 (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":"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":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaeb2e7fb69f3ae996c46ca6c226aabbde9ec197249254c9d8dcbc94ae53a74"}},{"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":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"49598e4dcfa68443ce1ac8b1bc1cf2af6368c7cca7950c62fd821a1cce24cf19"}},{"ruleId":"D2","level":"warning","message":{"text":"datastore.search (cognitive 84): datastore.search has cognitive complexity 84 (threshold 15). Drivers by points: if/else 18 (46 pts), loops 7 (18 pts), ternaries 4 (10 pts), boolean chains 8, error handling 1 (2 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: deepface/modules/datastore.py holds 4 of the 17 methods over the threshold \u2014 including the worst \u2014 and 87 of the 277 points over it (31%), 2\u00D7 the next-largest file (deepface/modules/detection.py at 43). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/datastore.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cfe9e99aca52561ca8efbddc67ca705a8139247e5e8eadd040fb56b4f1ba25"}},{"ruleId":"D2","level":"warning","message":{"text":"recognition.find (cognitive 58): recognition.find has cognitive complexity 58 (threshold 15). Drivers by points: if/else 28 (43 pts), boolean chains 7, loops 4 (6 pts), ternaries 2 (nesting depth added 17). 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 51): detection.extract_faces has cognitive complexity 51 (threshold 15). Drivers by points: if/else 22 (37 pts), boolean chains 7, loops 4 (7 pts) (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/detection.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2799651e9f923cd06b886c92fcb6a36e2c9e0538a6e46aad342554e2e9e480f"}},{"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":"streaming.analysis (cognitive 36): streaming.analysis has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (26 pts), ternaries 4 (7 pts), boolean chains 2, 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":"weight_utils.download_all_models_in_one_shot (cognitive 28): weight_utils.download_all_models_in_one_shot has cognitive complexity 28 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 5 (9 pts), ternaries 2 (6 pts), error handling 1 (2 pts) (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/commons/weight_utils.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7cd3f9e89ba1a0ef43a1f320033a6182eadaa8204ca41488c411e07b0c9328"}},{"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":432}}}],"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":"representation.represent (cognitive 27): representation.represent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (4 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 9). 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":"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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: deepface/modules/datastore.py holds 4 of the 17 methods over the threshold \u2014 including the worst \u2014 and 87 of the 277 points over it (31%), 2\u00D7 the next-largest file (deepface/modules/detection.py at 43). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/datastore.py"},"region":{"startLine":1083}}}],"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":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f11d6e4e0a374769bc406153493f98fab1dbb0b626ee02ff9dcccdec5fd8692"}},{"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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: deepface/modules/datastore.py holds 4 of the 17 methods over the threshold \u2014 including the worst \u2014 and 87 of the 277 points over it (31%), 2\u00D7 the next-largest file (deepface/modules/detection.py at 43). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/datastore.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"871437bc7b4f49cbdcf4734e4be719bbe89c1ad6ea5c81b39ef1b93d9896abf7"}},{"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":546}}}],"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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: deepface/modules/datastore.py holds 4 of the 17 methods over the threshold \u2014 including the worst \u2014 and 87 of the 277 points over it (31%), 2\u00D7 the next-largest file (deepface/modules/detection.py at 43). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/datastore.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc36d048041ff60ddc391dd20e18275e8a8185afb088ff99b339614a2cd4f7c"}},{"ruleId":"D2","level":"warning","message":{"text":"weight_utils.download_weights_if_necessary (cognitive 17): weight_utils.download_weights_if_necessary has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 1 (2 pts), ternaries 2, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/commons/weight_utils.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c8b0446f9631698f1af1f028285fa092bf0903a5838f17403389f724fe48a1"}},{"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":"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: 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/datastore.py: FileTooLong \u2014 711 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 211 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/modules/datastore.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbe8fbac513b089f11a9fe4d8a508713c210ab44af5ea0dcb10f1363bdf5a05"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modules/streaming.py: FileTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 158 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 522 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 22 over it, 1.04\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":"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":"31aa003855b5ecb98818a82a69f7ee8f8c5d246ddba1137ba6edb7705020a97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): deepface/modules/database/cassandra.py:433-545 | deepface/modules/database/db2.py:234-308 | deepface/modules/database/mssql.py:221-295 | deepface/modules/database/mysql.py:263-335 | deepface/modules/database/oracle.py:251-328 | deepface/modules/database/pgvector.py:169-252 | deepface/modules/database/postgres.py:199-268 | deepface/modules/database/redis.py:164-242 | deepface/modules/database/sqlite.py:194-268 \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":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3981caefbe8f85e63ae9cda731f570a74b655d10900ff4e51015e3087dc94b"}},{"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:263-306 | deepface/modules/database/oracle.py:251-294 | deepface/modules/database/sqlite.py:194-237 \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:226-268 \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:433-472 | 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:430\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":433}}}],"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:279-309 \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 (3\u201326 lines \u00D7 3): deepface/models/facial_recognition/tf/OpenFace.py:62-64 | deepface/models/facial_recognition/tf/OpenFace.py:170-195 | deepface/models/facial_recognition/tf/OpenFace.py:216-233 \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:170\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. 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":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc284551aa1c9235bb3585b58468b2c763b7da4797711edbbb4423fdd8ce0e3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): deepface/modules/database/db2.py:203-228 | deepface/modules/database/sqlite.py:163-188 \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:289-310 \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/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:72-89 \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 16): deepface/models/facial_recognition/tf/Facenet.py:607-623 | deepface/models/facial_recognition/tf/Facenet.py:670-686 | deepface/models/facial_recognition/tf/Facenet.py:733-749 | deepface/models/facial_recognition/tf/Facenet.py:796-812 | deepface/models/facial_recognition/tf/Facenet.py:859-875 | deepface/models/facial_recognition/tf/Facenet.py:922-938 | deepface/models/facial_recognition/tf/Facenet.py:985-1001 | deepface/models/facial_recognition/tf/Facenet.py:1048-1064 | deepface/models/facial_recognition/tf/Facenet.py:1111-1127 | deepface/models/facial_recognition/tf/Facenet.py:1174-1190 | deepface/models/facial_recognition/tf/Facenet.py:1323-1339 | deepface/models/facial_recognition/tf/Facenet.py:1386-1402 | deepface/models/facial_recognition/tf/Facenet.py:1449-1465 | deepface/models/facial_recognition/tf/Facenet.py:1512-1528 | deepface/models/facial_recognition/tf/Facenet.py:1575-1591 | deepface/models/facial_recognition/tf/Facenet.py:1638-1654 \u2014 all 16 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:607\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":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd98e50c24141c27285589d464d092c5d37b8004707dc88eb8ba1809005aed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): deepface/modules/database/pinecone.py:140-156 | deepface/modules/database/pinecone.py:236-252 \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":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a188eb17dfae8ea702af32adeed0c2200ffba794f12f16f949efa3206f2cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): deepface/api/src/modules/core/routes.py:197-212 | deepface/api/src/modules/core/routes.py:243-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23698d04ea2ad058c505af52debd0a97a33e255da0969b4937e40a2aace0174"}},{"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:436-451 \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 32): deepface/models/facial_recognition/tf/Facenet.py:587-601 | deepface/models/facial_recognition/tf/Facenet.py:603-617 | deepface/models/facial_recognition/tf/Facenet.py:650-664 | deepface/models/facial_recognition/tf/Facenet.py:666-680 | deepface/models/facial_recognition/tf/Facenet.py:713-727 | deepface/models/facial_recognition/tf/Facenet.py:729-743 | deepface/models/facial_recognition/tf/Facenet.py:776-790 | deepface/models/facial_recognition/tf/Facenet.py:792-806 | deepface/models/facial_recognition/tf/Facenet.py:839-853 | deepface/models/facial_recognition/tf/Facenet.py:855-869 | deepface/models/facial_recognition/tf/Facenet.py:902-916 | deepface/models/facial_recognition/tf/Facenet.py:918-932 | deepface/models/facial_recognition/tf/Facenet.py:965-979 | deepface/models/facial_recognition/tf/Facenet.py:981-995 | deepface/models/facial_recognition/tf/Facenet.py:1028-1042 | deepface/models/facial_recognition/tf/Facenet.py:1044-1058 | deepface/models/facial_recognition/tf/Facenet.py:1091-1105 | deepface/models/facial_recognition/tf/Facenet.py:1107-1121 | deepface/models/facial_recognition/tf/Facenet.py:1154-1168 | deepface/models/facial_recognition/tf/Facenet.py:1170-1184 | deepface/models/facial_recognition/tf/Facenet.py:1303-1317 | deepface/models/facial_recognition/tf/Facenet.py:1319-1333 | deepface/models/facial_recognition/tf/Facenet.py:1366-1380 | deepface/models/facial_recognition/tf/Facenet.py:1382-1396 | deepface/models/facial_recognition/tf/Facenet.py:1429-1443 | deepface/models/facial_recognition/tf/Facenet.py:1445-1459 | deepface/models/facial_recognition/tf/Facenet.py:1492-1506 | deepface/models/facial_recognition/tf/Facenet.py:1508-1522 | deepface/models/facial_recognition/tf/Facenet.py:1555-1569 | deepface/models/facial_recognition/tf/Facenet.py:1571-1585 | deepface/models/facial_recognition/tf/Facenet.py:1618-1632 | deepface/models/facial_recognition/tf/Facenet.py:1634-1648 \u2014 all 32 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 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":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07ce55378d4fdd477e3f3ec3668c7b79e714a7a00e1db75abbc78fed2f33a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): deepface/DeepFace.py:448-462 | deepface/DeepFace.py:958-972 \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/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 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 (15 lines \u00D7 2): deepface/modules/database/neo4j.py:162-183 | deepface/modules/database/pinecone.py:111-125 \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/modules/database/neo4j.py"},"region":{"startLine":162}}}],"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 3): deepface/api/src/modules/core/routes.py:194-207 | deepface/api/src/modules/core/routes.py:240-253 | deepface/api/src/modules/core/routes.py:282-295 \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":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2982d018fc411294698770f51abbb94f98bbf4d0f94428c006ad5753d227c65"}},{"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/modules/database/db2.py:219-231 | deepface/modules/database/oracle.py:236-248 | deepface/modules/database/sqlite.py:179-191 \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:208-217 | deepface/models/facial_recognition/tf/OpenFace.py:245-255 | deepface/models/facial_recognition/tf/OpenFace.py:267-276 | deepface/models/facial_recognition/tf/OpenFace.py:283-292 | deepface/models/facial_recognition/tf/OpenFace.py:305-314 | deepface/models/facial_recognition/tf/OpenFace.py:326-336 | deepface/models/facial_recognition/tf/OpenFace.py:346-355 | deepface/models/facial_recognition/tf/OpenFace.py:364-375 \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:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \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:202\u0060 calls \u0060ZeroPadding2D\u0060, \u0060concatenate\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:361\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":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52dd0e9e3469e0379613a9d057cfff951c46746daf5e51fdf6fbde7b24f53e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): deepface/api/src/modules/core/routes.py:79-90 | deepface/api/src/modules/core/routes.py:112-123 | deepface/api/src/modules/core/routes.py:149-160 \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":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afb14d3900e2985d2a7196badbafc0639ff7327b901a080f943be2d30ec1152"}},{"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:245-256 \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:314-325 | deepface/modules/database/pgvector.py:233-244 | deepface/modules/database/postgres.py:249-260 \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:314\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":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ceeb16353e5f4ca17b11a545a04cafdd1c10494931e6e2e4fed9480708fa134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): deepface/models/facial_recognition/tf/Facenet.py:549-560 | deepface/models/facial_recognition/tf/Facenet.py:1264-1275 \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:549\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":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b14da83de7f9fae0f4cab34b61e760fbf54bb531d62d62188ef56a9995e2b5"}},{"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 (3\u201311 lines \u00D7 7): deepface/models/facial_recognition/tf/OpenFace.py:68-70 | deepface/models/facial_recognition/tf/OpenFace.py:71-73 | deepface/models/facial_recognition/tf/OpenFace.py:86-96 | deepface/models/facial_recognition/tf/OpenFace.py:97-101 | deepface/models/facial_recognition/tf/OpenFace.py:123-127 | deepface/models/facial_recognition/tf/OpenFace.py:129-139 | deepface/models/facial_recognition/tf/OpenFace.py:151-155 \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:66\u0060 calls \u0060MaxPooling2D\u0060, \u0060Lambda\u0060, \u0060lrn\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:85\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":68}}}],"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 73): deepface/models/facial_recognition/tf/Facenet.py:138-147 | deepface/models/facial_recognition/tf/Facenet.py:149-158 | deepface/models/facial_recognition/tf/Facenet.py:160-169 | deepface/models/facial_recognition/tf/Facenet.py:171-180 | deepface/models/facial_recognition/tf/Facenet.py:182-191 | deepface/models/facial_recognition/tf/Facenet.py:193-202 | deepface/models/facial_recognition/tf/Facenet.py:213-222 | deepface/models/facial_recognition/tf/Facenet.py:224-233 | deepface/models/facial_recognition/tf/Facenet.py:235-244 | deepface/models/facial_recognition/tf/Facenet.py:246-255 | deepface/models/facial_recognition/tf/Facenet.py:257-266 | deepface/models/facial_recognition/tf/Facenet.py:268-277 | deepface/models/facial_recognition/tf/Facenet.py:288-297 | deepface/models/facial_recognition/tf/Facenet.py:299-308 | deepface/models/facial_recognition/tf/Facenet.py:310-319 | deepface/models/facial_recognition/tf/Facenet.py:321-330 | deepface/models/facial_recognition/tf/Facenet.py:332-341 | deepface/models/facial_recognition/tf/Facenet.py:343-352 | deepface/models/facial_recognition/tf/Facenet.py:363-372 | deepface/models/facial_recognition/tf/Facenet.py:374-383 | deepface/models/facial_recognition/tf/Facenet.py:385-394 | deepface/models/facial_recognition/tf/Facenet.py:396-405 | deepface/models/facial_recognition/tf/Facenet.py:407-416 | deepface/models/facial_recognition/tf/Facenet.py:418-427 | deepface/models/facial_recognition/tf/Facenet.py:438-447 | deepface/models/facial_recognition/tf/Facenet.py:449-458 | deepface/models/facial_recognition/tf/Facenet.py:460-469 | deepface/models/facial_recognition/tf/Facenet.py:471-480 | deepface/models/facial_recognition/tf/Facenet.py:482-491 | deepface/models/facial_recognition/tf/Facenet.py:493-502 | deepface/models/facial_recognition/tf/Facenet.py:514-523 | deepface/models/facial_recognition/tf/Facenet.py:525-534 | deepface/models/facial_recognition/tf/Facenet.py:536-545 | deepface/models/facial_recognition/tf/Facenet.py:547-556 | deepface/models/facial_recognition/tf/Facenet.py:565-574 | deepface/models/facial_recognition/tf/Facenet.py:576-585 | deepface/models/facial_recognition/tf/Facenet.py:628-637 | deepface/models/facial_recognition/tf/Facenet.py:639-648 | deepface/models/facial_recognition/tf/Facenet.py:691-700 | deepface/models/facial_recognition/tf/Facenet.py:702-711 | deepface/models/facial_recognition/tf/Facenet.py:754-763 | deepface/models/facial_recognition/tf/Facenet.py:765-774 | deepface/models/facial_recognition/tf/Facenet.py:817-826 | deepface/models/facial_recognition/tf/Facenet.py:828-837 | deepface/models/facial_recognition/tf/Facenet.py:880-889 | deepface/models/facial_recognition/tf/Facenet.py:891-900 | deepface/models/facial_recognition/tf/Facenet.py:943-952 | deepface/models/facial_recognition/tf/Facenet.py:954-963 | deepface/models/facial_recognition/tf/Facenet.py:1006-1015 | deepface/models/facial_recognition/tf/Facenet.py:1017-1026 | deepface/models/facial_recognition/tf/Facenet.py:1069-1078 | deepface/models/facial_recognition/tf/Facenet.py:1080-1089 | deepface/models/facial_recognition/tf/Facenet.py:1132-1141 | deepface/models/facial_recognition/tf/Facenet.py:1143-1152 | deepface/models/facial_recognition/tf/Facenet.py:1196-1205 | deepface/models/facial_recognition/tf/Facenet.py:1207-1216 | deepface/models/facial_recognition/tf/Facenet.py:1218-1227 | deepface/models/facial_recognition/tf/Facenet.py:1229-1238 | deepface/models/facial_recognition/tf/Facenet.py:1240-1249 | deepface/models/facial_recognition/tf/Facenet.py:1251-1260 | deepface/models/facial_recognition/tf/Facenet.py:1262-1271 | deepface/models/facial_recognition/tf/Facenet.py:1281-1290 | deepface/models/facial_recognition/tf/Facenet.py:1292-1301 | deepface/models/facial_recognition/tf/Facenet.py:1344-1353 | deepface/models/facial_recognition/tf/Facenet.py:1355-1364 | deepface/models/facial_recognition/tf/Facenet.py:1407-1416 | deepface/models/facial_recognition/tf/Facenet.py:1418-1427 | deepface/models/facial_recognition/tf/Facenet.py:1470-1479 | deepface/models/facial_recognition/tf/Facenet.py:1481-1490 | deepface/models/facial_recognition/tf/Facenet.py:1533-1542 | deepface/models/facial_recognition/tf/Facenet.py:1544-1553 | deepface/models/facial_recognition/tf/Facenet.py:1596-1605 | deepface/models/facial_recognition/tf/Facenet.py:1607-1616 \u2014 all 73 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 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":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"81448e4d44678869346b16533adb8ddcc15669e602f9ddb984ff22a7e385e903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): deepface/modules/database/cassandra.py:447-456 | deepface/modules/database/db2.py:266-275 | deepface/modules/database/mssql.py:253-262 | deepface/modules/database/mysql.py:295-304 | deepface/modules/database/oracle.py:283-292 | deepface/modules/database/redis.py:178-187 | deepface/modules/database/sqlite.py:226-235 \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:447\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:446\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":447}}}],"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:301-310 | deepface/modules/database/oracle.py:289-298 | deepface/modules/database/pgvector.py:220-229 | deepface/modules/database/postgres.py:236-245 \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 (9 lines \u00D7 2): deepface/models/facial_recognition/tf/OpenFace.py:112-120 | deepface/models/facial_recognition/tf/OpenFace.py:158-166 \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: \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":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4982d551b118bdd47f1e24e8cb7112e305921c58c1ab5018238a7405d73bcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): deepface/models/facial_recognition/tf/OpenFace.py:194-202 | deepface/models/facial_recognition/tf/OpenFace.py:291-299 \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:194\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":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2dcf694c9071a1a343ab7655bb1c090824f6b79bc218798f27a35385e0b38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): deepface/models/facial_recognition/tf/OpenFace.py:232-240 | deepface/models/facial_recognition/tf/OpenFace.py:313-321 \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:232\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":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb70cfe6ec3ab546231bdaa2506acdfda32a91ce13612b95bf9c1734de649749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): deepface/modules/database/milvus.py:111-119 | deepface/modules/database/pinecone.py:105-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060deepface/modules/database/milvus.py:111\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/modules/database/pinecone.py:103\u0060 calls \u0060Index\u0060 and \u0060deepface/modules/database/milvus.py:111\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/milvus.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae2bab5a835630a978f93664bad441fc345ab5a0419594fc307fa77f1aa2c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): deepface/models/facial_recognition/tf/OpenFace.py:194-201 | deepface/models/facial_recognition/tf/OpenFace.py:291-298 | deepface/models/facial_recognition/tf/OpenFace.py:354-361 \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:194\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:202\u0060 calls \u0060ZeroPadding2D\u0060, \u0060concatenate\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:363\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":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f6e40f8baacce1f59e00bc06b2729e51377d05f6d2bb5813dd29de9534b2d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 4): deepface/models/facial_recognition/tf/OpenFace.py:68-70 | deepface/models/facial_recognition/tf/OpenFace.py:77-84 | deepface/models/facial_recognition/tf/OpenFace.py:104-109 | deepface/models/facial_recognition/tf/OpenFace.py:151-155 \u2014 all 4 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 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:67\u0060 calls \u0060Lambda\u0060, \u0060lrn\u0060, \u0060Conv2D\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:77\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":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebcbdb4d623e9c45c832919ef69a54a90fa6afc9b8f77a14c9e7bcce6eb82a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 18): deepface/models/facial_recognition/tf/OpenFace.py:177-183 | deepface/models/facial_recognition/tf/OpenFace.py:193-199 | deepface/models/facial_recognition/tf/OpenFace.py:207-213 | deepface/models/facial_recognition/tf/OpenFace.py:215-221 | deepface/models/facial_recognition/tf/OpenFace.py:231-237 | deepface/models/facial_recognition/tf/OpenFace.py:244-250 | deepface/models/facial_recognition/tf/OpenFace.py:253-259 | deepface/models/facial_recognition/tf/OpenFace.py:263-272 | deepface/models/facial_recognition/tf/OpenFace.py:274-280 | deepface/models/facial_recognition/tf/OpenFace.py:290-296 | deepface/models/facial_recognition/tf/OpenFace.py:304-310 | deepface/models/facial_recognition/tf/OpenFace.py:312-318 | deepface/models/facial_recognition/tf/OpenFace.py:325-331 | deepface/models/facial_recognition/tf/OpenFace.py:334-340 | deepface/models/facial_recognition/tf/OpenFace.py:345-351 | deepface/models/facial_recognition/tf/OpenFace.py:353-359 | deepface/models/facial_recognition/tf/OpenFace.py:363-369 | deepface/models/facial_recognition/tf/OpenFace.py:373-379 \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:263\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \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:201\u0060 calls \u0060MaxPooling2D\u0060, \u0060ZeroPadding2D\u0060, \u0060concatenate\u0060 and \u0060deepface/models/facial_recognition/tf/OpenFace.py:282\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":177}}}],"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:436-442 \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:52-57 | deepface/commons/image_utils.py:70-75 \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":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e486d68757420fea2fe636f7867b4ca5d6e3de0d491ff8793b57bfc574bff0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): deepface/models/facial_recognition/tf/OpenFace.py:143-148 | deepface/models/facial_recognition/tf/OpenFace.py:236-240 | deepface/models/facial_recognition/tf/OpenFace.py:317-321 \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:143\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":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d7762410558dcc93d04a9d7c60b7371161627879a64df7ed077e6942d52ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): deepface/models/spoofing/pytorch/FasNetBackbone.py:231-235 | deepface/models/spoofing/pytorch/FasNetBackbone.py:268-272 \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:231\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/spoofing/pytorch/FasNetBackbone.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e392893da20315cf1a8dcc26fd88cf1307d932d7939b179c59f8f3543aa2eaf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): deepface/models/spoofing/pytorch/FasNetBackbone.py:436-440 | deepface/models/spoofing/pytorch/FasNetBackbone.py:473-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:436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deepface/models/spoofing/pytorch/FasNetBackbone.py"},"region":{"startLine":436}}}],"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 5): deepface/models/facial_recognition/onnx/ArcFace.py:26-40 | deepface/models/facial_recognition/onnx/DeepID.py:26-40 | deepface/models/facial_recognition/onnx/FbDeepFace.py:26-40 | deepface/models/facial_recognition/onnx/GhostFaceNet.py:28-42 | deepface/models/facial_recognition/onnx/OpenFace.py:26-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 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 (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 6): deepface/models/facial_recognition/pytorch/ArcFace.py:36-40 | deepface/models/facial_recognition/pytorch/DeepID.py:33-37 | deepface/models/facial_recognition/pytorch/FbDeepFace.py:35-39 | deepface/models/facial_recognition/pytorch/GhostFaceNet.py:51-55 | deepface/models/facial_recognition/pytorch/OpenFace.py:39-43 | 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 6 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 (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 3): deepface/models/facial_recognition/pytorch/OpenFace.py:94-98 | deepface/models/facial_recognition/pytorch/OpenFace.py:112-116 | deepface/models/facial_recognition/pytorch/OpenFace.py:146-150 \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":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0138488058eb3f075269da0c28e405e3e58af79389942cebf4f3b7761c3cfda6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): deepface/models/facial_recognition/pytorch/OpenFace.py:129-133 | deepface/models/facial_recognition/pytorch/OpenFace.py:163-167 \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":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"c302d6e3bed8033437c4eb6a4f0bdeeaf395b4c53b660daae089e0726cc24561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): deepface/models/facial_recognition/tf/Facenet.py:105-109 | deepface/models/facial_recognition/tf/Facenet.py:110-114 | deepface/models/facial_recognition/tf/Facenet.py:115-119 | deepface/models/facial_recognition/tf/Facenet.py:121-125 | deepface/models/facial_recognition/tf/Facenet.py:126-130 | deepface/models/facial_recognition/tf/Facenet.py:131-135 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060deepface/models/facial_recognition/tf/Facenet.py:120\u0060 calls \u0060MaxPooling2D\u0060 and \u0060deepface/models/facial_recognition/tf/Facenet.py:110\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/facial_recognition/tf/Facenet.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3031f9715357904ae5eae1e6bae74c3ed3818e53a79437707ab486f430c48489"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: ultralytics: \u0060ultralytics\u0060 8.4.183 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.3 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.90 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 9 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 6 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-07-21..2026-10-19, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-21 21:37:28 \u002B01:00\u0027 --until=\u00272026-10-19 21:37:28 \u002B01: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 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in datastore.search at line 232. 3 of those changes were fix/bug commits, and the other 5 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-07-21..2026-10-19, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-21 21:37:28 \u002B01:00\u0027 --until=\u00272026-10-19 21:37:28 \u002B01: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":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1230112c3bb6c18923a32a3585c0fcb958f3123746bfcb5d671af1327b5e54e8"}},{"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-07-21..2026-10-19, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-21 21:37:28 \u002B01:00\u0027 --until=\u00272026-10-19 21:37:28 \u002B01: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/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-07-21..2026-10-19, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-21 21:37:28 \u002B01:00\u0027 --until=\u00272026-10-19 21:37:28 \u002B01: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":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 29 significant file(s) lose their only recent owner: deepface/modules/database/neo4j.py, deepface/models/facial_recognition/tf/OpenFace.py, deepface/modules/database/pgvector.py, deepface/modules/database/postgres.py, deepface/modules/database/mongo.py, deepface/models/spoofing/tf/FasNetBackbone.py, deepface/models/facial_recognition/pytorch/Facenet.py, deepface/models/facial_recognition/pytorch/GhostFaceNet.py (\u002B21 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":364}}}],"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (22541 LoC, 234 module-visible types across 25 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"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":"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":"M3","level":"note","message":{"text":"No src/ separation: Production code isn\u0027t grouped under a src/ folder \u2014 it\u0027s spread across several top-level directories, so there\u0027s no one place that says \u0027this is the product\u0027."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"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 2426 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":[],"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.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6af44330695f142e97be2ec002ed102de04b2fd2598bd0df64e473f0cb33f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 57 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":57}}}],"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":508}}}],"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":31,"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."]}]}