{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"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":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"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":"debug_data.debug_data (cyclomatic 94): debug_data.debug_data has cyclomatic complexity 94 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: spacy/cli/debug_data.py holds 2 of the 34 methods over the threshold \u2014 including the worst \u2014 and 127 of the 337 points over it (38%), 3.8\u00D7 the next-largest file (spacy/scorer.py at 33). 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":"spacy/cli/debug_data.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d463ad93e20f3b2d04bfd458bedb1e1acc9532ba6c3fcffd6e2d6acf12365198"}},{"ruleId":"D1","level":"warning","message":{"text":"debug_data._compile_gold (cyclomatic 63): debug_data._compile_gold has cyclomatic complexity 63 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: spacy/cli/debug_data.py holds 2 of the 34 methods over the threshold \u2014 including the worst \u2014 and 127 of the 337 points over it (38%), 3.8\u00D7 the next-largest file (spacy/scorer.py at 33). 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":"spacy/cli/debug_data.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1187504328024c1b719413097918da9eb7a61b28c571fde8aca61f4dc4274e2"}},{"ruleId":"D1","level":"warning","message":{"text":"package.package (cyclomatic 40): package.package has cyclomatic complexity 40 (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":"spacy/cli/package.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4db202f4bc03098d7415e0ab98e157af858ac553efeafa242dded146e2fd352"}},{"ruleId":"D1","level":"warning","message":{"text":"Language.from_config (cyclomatic 39): Language.from_config has cyclomatic complexity 39 (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":"spacy/language.py"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa35a6b7032c98b1507a94cbe719874ef8ab666dad35635f5845b4b5580cee30"}},{"ruleId":"D1","level":"warning","message":{"text":"Scorer.score_cats (cyclomatic 32): Scorer.score_cats has cyclomatic complexity 32 (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":"spacy/scorer.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"016ea58e9fb735b115c7448d4d32a92146fd964dd18116a13e401d73defebdb7"}},{"ruleId":"D1","level":"warning","message":{"text":"quickstart.Quickstart (cyclomatic 31): quickstart.Quickstart has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 10 of the 31 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 103, a function literal at line 130, getRawContent, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/components/quickstart.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd53fd050dbed4cb17aaa9c41a8f097b6e6b00789c4efceb721cd9880fa84c4"}},{"ruleId":"D1","level":"warning","message":{"text":"conllu_to_docs.conllu_sentence_to_doc (cyclomatic 28): conllu_to_docs.conllu_sentence_to_doc has cyclomatic complexity 28 (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":"spacy/training/converters/conllu_to_docs.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a1fc5914b1e66fbfe3a2db6bb397e34cdcedb6c08ae93611507699b02b389d"}},{"ruleId":"D1","level":"warning","message":{"text":"universe.Project (cyclomatic 28): universe.Project has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/templates/universe.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca24dd225cd07e27b9688d11aef2e612cab79460eb546c3ca0bda17a61c5b97"}},{"ruleId":"D1","level":"warning","message":{"text":"models.Model (cyclomatic 26): models.Model has cyclomatic complexity 26 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/templates/models.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c6d51611e853d5056fdeef628b4f1c497dd6c8a93b7ac98c7ba6735bd4bfe4"}},{"ruleId":"D1","level":"warning","message":{"text":"conll_ner_to_docs.conll_ner_to_docs (cyclomatic 24): conll_ner_to_docs.conll_ner_to_docs has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/converters/conll_ner_to_docs.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9003364df25810dc4db3e59c35a7867b601e18751eec94fab32ebe547a13df8"}},{"ruleId":"D1","level":"warning","message":{"text":"Scorer.score_spans (cyclomatic 22): Scorer.score_spans has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/scorer.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"69764e91cf1f66816daeeaa513dcdd5a5101fd897aa8a95dacc2af20938876fe"}},{"ruleId":"D1","level":"warning","message":{"text":"SpanishLemmatizer.lemmatize_verb (cyclomatic 21): SpanishLemmatizer.lemmatize_verb has cyclomatic complexity 21 (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":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"19df5cbb781df8a74edc5e09bc6d38efb3478da68295b98c29f26e9784eadd57"}},{"ruleId":"D1","level":"warning","message":{"text":"RussianLemmatizer._pymorphy_lemmatize (cyclomatic 21): RussianLemmatizer._pymorphy_lemmatize has cyclomatic complexity 21 (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":"spacy/lang/ru/lemmatizer.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"295826ec4c80f16096cd1808423f8e342f884a2ffe7466bf1b3fc30149036a6a"}},{"ruleId":"D1","level":"warning","message":{"text":"EntityLinker.predict (cyclomatic 21): EntityLinker.predict has cyclomatic complexity 21 (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":"spacy/pipeline/entity_linker.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c08c54826bb5f20fbd2f0c5c104493acccaa843d7d54fb113210d79c918e02"}},{"ruleId":"D1","level":"warning","message":{"text":"iob_utils.offsets_to_biluo_tags (cyclomatic 21): iob_utils.offsets_to_biluo_tags has cyclomatic complexity 21 (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":"spacy/training/iob_utils.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be6412bf1f4dd254fc33dc924ac7e821eb4c55010a0d4a5f54e9183810d2768"}},{"ruleId":"D1","level":"warning","message":{"text":"Scorer.score_deps (cyclomatic 20): Scorer.score_deps 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":"spacy/scorer.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae23b9401701efcb14a5092f41bd58c321abd8c2db9d64563465f17105823cd"}},{"ruleId":"D1","level":"warning","message":{"text":"augment.make_whitespace_variant (cyclomatic 20): augment.make_whitespace_variant 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":"spacy/training/augment.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"7360e03fe1ba3b540fe32dd6697e49525bdb0b87f7d95a84508bb9a52ed571b0"}},{"ruleId":"D1","level":"warning","message":{"text":"Scorer.score_token_attr_per_feat (cyclomatic 19): Scorer.score_token_attr_per_feat has cyclomatic complexity 19 (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":"spacy/scorer.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3005eda6da10faf12443df2ec89f29ede1ae5f102e2454d2828877254aaed4cf"}},{"ruleId":"D1","level":"warning","message":{"text":"initialize.init_nlp (cyclomatic 19): initialize.init_nlp has cyclomatic complexity 19 (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":"spacy/training/initialize.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"236d568deeb3b179cfbbf69b6b1f5a974b1ad42c52d9d6c902637d0b586f8a27"}},{"ruleId":"D1","level":"warning","message":{"text":"quickstart-install.QuickstartInstall (cyclomatic 19): quickstart-install.QuickstartInstall has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"website/src/widgets/quickstart-install.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"67659609e9b484078f6caafbff4919a7d7ebb89a330d8f3c310edd29c2fa634e"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cyclomatic 18): syntax_iterators.noun_chunks 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":"spacy/lang/fr/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"431a0c5e51b0ddeed488da8a2e985cb6b9021bbbc5dbf7854dc0ae19d1acbf66"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cyclomatic 18): syntax_iterators.noun_chunks 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":"spacy/lang/it/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b56fd4201062bfee372b838090d9163de01613924589de9260d393a0435c080"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cyclomatic 18): syntax_iterators.noun_chunks 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":"spacy/lang/pt/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d7864d7eb1622abefd5a058eb2dc9114a9ab47c78f5d174d8133d1543411b8"}},{"ruleId":"D1","level":"warning","message":{"text":"package.get_third_party_dependencies (cyclomatic 17): package.get_third_party_dependencies has cyclomatic complexity 17 (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":"spacy/cli/package.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1526c023efe6e7002f083d214fc41c510738577d6834656e94c1e3fe0df4172a"}},{"ruleId":"D1","level":"warning","message":{"text":"displacy.parse_deps (cyclomatic 17): displacy.parse_deps has cyclomatic complexity 17 (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":"spacy/displacy/__init__.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0e0a69ea5e6284177d1dae83c4a46394b2ffa91c9646ccf673a9f59ed8e84b"}},{"ruleId":"D1","level":"warning","message":{"text":"DutchLemmatizer.rule_lemmatize (cyclomatic 17): DutchLemmatizer.rule_lemmatize has cyclomatic complexity 17 (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":"spacy/lang/nl/lemmatizer.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a2bae398d2759c5558797b6c8f0e6af1345a09072ef52ff09aa0985ab98be6"}},{"ruleId":"D1","level":"warning","message":{"text":"Language.update (cyclomatic 17): Language.update has cyclomatic complexity 17 (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":"spacy/language.py"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a0e839b8471c0f66c73547cac493175c301d7765b4266d4f9cdd60ddde688d"}},{"ruleId":"D1","level":"warning","message":{"text":"pipe_analysis.validate_attrs (cyclomatic 17): pipe_analysis.validate_attrs has cyclomatic complexity 17 (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":"spacy/pipe_analysis.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b34b5a5525e46109acf3e246ac2f1075fc265cca87c6abebe88d4b6cba911a"}},{"ruleId":"D1","level":"warning","message":{"text":"Lemmatizer.rule_lemmatize (cyclomatic 17): Lemmatizer.rule_lemmatize has cyclomatic complexity 17 (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":"spacy/pipeline/lemmatizer.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"884bdbe6250a3ed0ba87762d4e764ad34af1380e32b8a4cd9f19a2e10e1ebca1"}},{"ruleId":"D1","level":"warning","message":{"text":"initialize.convert_vectors (cyclomatic 17): initialize.convert_vectors has cyclomatic complexity 17 (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":"spacy/training/initialize.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"797f88fe78adffda511900265cd76c691c4b897ef611ec7cea4a4352a9cecf51"}},{"ruleId":"D1","level":"warning","message":{"text":"link.Link (cyclomatic 17): link.Link has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/components/link.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe5dedf5839827b9d887c52ea30de76dac3d950de96a2c8edb4e9fdae6842c8"}},{"ruleId":"D1","level":"warning","message":{"text":"title.Title (cyclomatic 17): title.Title has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/components/title.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7cb331a1be8968c1b1a8cba4b18f8149fc3b1214bb279dffc7b7cc75e91b1b"}},{"ruleId":"D1","level":"warning","message":{"text":"debug_model.debug_model (cyclomatic 16): debug_model.debug_model has cyclomatic complexity 16 (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":"spacy/cli/debug_model.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09fb0749677200fdde8dbe6b62f0491e43d2c45fea172f7ddf2d8253a88a012"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cyclomatic 16): syntax_iterators.noun_chunks 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":"spacy/lang/es/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"933d8845e6aae088bd2b5dee51ee09362b5e9147773ddd2511c07d612a062fb5"}},{"ruleId":"D2","level":"warning","message":{"text":"debug_data.debug_data (cognitive 191): debug_data.debug_data has cognitive complexity 191 (threshold 15). Drivers by points: if/else 91 (164 pts), loops 7 (15 pts), boolean chains 6, ternaries 3 (6 pts) (nesting depth added 84). 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":"spacy/cli/debug_data.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2714a0f06aa7e167d3e54737927b0f97abc42808f5d170acaa6242fc3845e31"}},{"ruleId":"D2","level":"warning","message":{"text":"debug_data._compile_gold (cognitive 191): debug_data._compile_gold has cognitive complexity 191 (threshold 15). Drivers by points: if/else 42 (142 pts), loops 13 (42 pts), boolean chains 7 (nesting depth added 129). 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":"spacy/cli/debug_data.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"664751f480db86554d55e3e38ec46a258d0800c154b0098d43c3285a9a0163c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Language.from_config (cognitive 77): Language.from_config has cognitive complexity 77 (threshold 15). Drivers by points: if/else 32 (65 pts), loops 2 (6 pts), boolean chains 4, ternaries 2 (nesting depth added 37). 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":"spacy/language.py"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a5e5a90e211221ef028d78e0675902c2d7d0a258008053fe01e38d3b15859d"}},{"ruleId":"D2","level":"warning","message":{"text":"Scorer.score_deps (cognitive 67): Scorer.score_deps has cognitive complexity 67 (threshold 15). Drivers by points: if/else 18 (58 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 43). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/scorer.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcbbd95577744b2e424d3bbec5eb189f97e8544e3757b2af5aff31ad5ee8720"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityLinker.predict (cognitive 66): EntityLinker.predict has cognitive complexity 66 (threshold 15). Drivers by points: if/else 14 (49 pts), ternaries 2 (9 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 45). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/entity_linker.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fc703dd699c5f2ffb066c7ebe74507b7d6cd692363b7a1e56a8f9140d96561"}},{"ruleId":"D2","level":"warning","message":{"text":"Scorer.score_token_attr_per_feat (cognitive 64): Scorer.score_token_attr_per_feat has cognitive complexity 64 (threshold 15). Drivers by points: if/else 12 (45 pts), loops 6 (17 pts), boolean chains 2 (nesting depth added 44). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/scorer.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1d9a7a5afec3a05ccb40f7c5b4bd4f253b37fd789b5b7bec2c8ada0a96d818"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanishLemmatizer.lemmatize_verb (cognitive 53): SpanishLemmatizer.lemmatize_verb has cognitive complexity 53 (threshold 15). Drivers by points: if/else 11 (34 pts), loops 8 (18 pts), boolean chains 1 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"689f96f1b94b7f57286ae2fdcdab90d55be54a395c56ba2c2b1506417773744c"}},{"ruleId":"D2","level":"warning","message":{"text":"package.package (cognitive 52): package.package has cognitive complexity 52 (threshold 15). Drivers by points: if/else 30 (38 pts), boolean chains 7, ternaries 2 (4 pts), loops 3 (nesting depth added 10). 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":"spacy/cli/package.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eafb4be4df261d1ded3c2f3cfb84fbea6fcbbd04d5cfa069d1fcdcbc5230ada"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityLinker_v1.predict (cognitive 50): EntityLinker_v1.predict has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (46 pts), loops 2 (4 pts) (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/legacy/entity_linker.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ebb6e20b417bd5ad7a5cd899efffc2b3a172628d7bc577eaebd12893c69a18"}},{"ruleId":"D2","level":"warning","message":{"text":"Scorer.score_cats (cognitive 49): Scorer.score_cats has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 4 (7 pts), boolean chains 6, ternaries 3 (4 pts) (nesting depth added 22). 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":"spacy/scorer.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ddb43606967af2e5f9d0ec98e8c7c5cafb21ee08ff5fc06fb02a7a17215324"}},{"ruleId":"D2","level":"warning","message":{"text":"iob_utils.offsets_to_biluo_tags (cognitive 48): iob_utils.offsets_to_biluo_tags has cognitive complexity 48 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 8 (18 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 26). 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":"spacy/training/iob_utils.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e88b090db1225404c47c9ab7f70e84b662ad85af8a15e17a5de8d42c039c937"}},{"ruleId":"D2","level":"warning","message":{"text":"pipe_analysis.validate_attrs (cognitive 46): pipe_analysis.validate_attrs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (39 pts), loops 3 (7 pts) (nesting depth added 30). 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":"spacy/pipe_analysis.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e0bd9db45df9a5dee713e44a72c1e29bf0329193286d6f67ff7195a0654270"}},{"ruleId":"D2","level":"warning","message":{"text":"debug_model._print_model (cognitive 44): debug_model._print_model has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 5 (17 pts), boolean chains 1 (nesting depth added 29). 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":"spacy/cli/debug_model.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d6128a71a81c9364d21f14e19f2c1b8cdc9aebd4f718cb44732cf7cb212857"}},{"ruleId":"D2","level":"warning","message":{"text":"Scorer.score_spans (cognitive 44): Scorer.score_spans has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (28 pts), loops 5 (11 pts), boolean chains 5 (nesting depth added 21). 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":"spacy/scorer.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"a004b69dcc6f6ab4ed1e9ddf86e8cb900552dc7dc996d2331897f954ccd40f8c"}},{"ruleId":"D2","level":"warning","message":{"text":"conllu_to_docs.conllu_sentence_to_doc (cognitive 44): conllu_to_docs.conllu_sentence_to_doc has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (28 pts), ternaries 5 (10 pts), boolean chains 3, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/converters/conllu_to_docs.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f6998cbaeba5648866fe614fa36b11c4f402a29426f38dad89db5f90b754b1"}},{"ruleId":"D2","level":"warning","message":{"text":"conllu_to_docs.merge_conllu_subtokens (cognitive 38): conllu_to_docs.merge_conllu_subtokens has cognitive complexity 38 (threshold 15). Drivers by points: loops 7 (22 pts), if/else 3 (12 pts), ternaries 1 (4 pts) (nesting depth added 27). 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":"spacy/training/converters/conllu_to_docs.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d49b4139679b85c49a0e5d23e5c7c8a231282fb52397065270d58e9ba8c272"}},{"ruleId":"D2","level":"warning","message":{"text":"augment.make_whitespace_variant (cognitive 37): augment.make_whitespace_variant has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 5, loops 1 (2 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":"spacy/training/augment.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6d398d4cbd6f1b7dad9166a84d1a62442f98a214c7b3345b5d9494df6d1ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"conll_ner_to_docs.conll_ner_to_docs (cognitive 37): conll_ner_to_docs.conll_ner_to_docs has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 6, loops 3 (5 pts), ternaries 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/converters/conll_ner_to_docs.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"019af0e2301bc49325eea63debb2f0c358ea0f49176441460b6c81e074c5dc76"}},{"ruleId":"D2","level":"warning","message":{"text":"package.get_third_party_dependencies (cognitive 35): package.get_third_party_dependencies has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 6 (8 pts), error handling 2 (7 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/package.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7786891d961a23c8d6cfb070252f3af0e57bcd6c0123a3008bcc36d990502360"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 35): syntax_iterators.noun_chunks has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/fr/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9287163cc3b7b2259b2f7684d5f351626c415163f26e52bbac9cfe26ca674b66"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 35): syntax_iterators.noun_chunks has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/it/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9437bc3506f23958449aa2cfc413eab3e01d45c9fe79333a57eddf56ddf26a"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 35): syntax_iterators.noun_chunks has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/pt/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67486527bce9361ebc8b64f37d60f4a81706e1ec490efcf6eb5aa8162769022"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 34): syntax_iterators.noun_chunks has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (10 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f1f99313aaaf3bace6d325fc1e8dbdcbe4d43f34f20be1452614b3c8cfe7e4"}},{"ruleId":"D2","level":"warning","message":{"text":"initialize.convert_vectors (cognitive 34): initialize.convert_vectors has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/initialize.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"63824907aab066e7aef2a595b151e9486c9e2b1c4e21356559dbb4ebfbb51e3a"}},{"ruleId":"D2","level":"warning","message":{"text":"augment.make_orth_variants (cognitive 33): augment.make_orth_variants has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 5 (11 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/augment.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e772072bdfe23bea4ac3c84fe8a8ba06ea69ca3754d617efbc409dbdd97d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"evaluate.evaluate (cognitive 30): evaluate.evaluate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (27 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/evaluate.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7b300bc86eaeb99745055fef81b55851ddcfd911df81d9a4930c1178597145"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 30): syntax_iterators.noun_chunks has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (8 pts), boolean chains 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":"spacy/lang/el/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b80c13cf36d271784dd897edf5bc90d3e231e3b5a950b07d1fe7c375d935c1"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 29): syntax_iterators.noun_chunks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (7 pts), boolean chains 1 (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":"spacy/lang/ht/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"37905052769e9eea84ea0444fe89064a82c80c9c1a5a089560cda10c5c25bff8"}},{"ruleId":"D2","level":"warning","message":{"text":"initialize.init_nlp (cognitive 29): initialize.init_nlp has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/initialize.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c5637c01bab9b2b972a64ae3d1b682af8313d942a89dab57ee56a00006a399"}},{"ruleId":"D2","level":"warning","message":{"text":"quickstart.Quickstart (cognitive 29): quickstart.Quickstart has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 19, ternaries 3 (6 pts), if/else 4 (nesting depth added 3). Most of this is not in the body itself: 8 of the 29 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 103, a function literal at line 130, getRawContent, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/components/quickstart.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca89abab57242fdb6ef5b0fd3b312bc9ad3b7a75a2550d21253531dd333fad1"}},{"ruleId":"D2","level":"warning","message":{"text":"loop.train_while_improving (cognitive 28): loop.train_while_improving has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 11). 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":"spacy/training/loop.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b35a31e4b3bbebdfb0ddb5e1ad9384abef27ac443e07f26e89ab5e3a11ed3ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Lemmatizer.rule_lemmatize (cognitive 27): Lemmatizer.rule_lemmatize has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 2, boolean chains 1 (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":"spacy/pipeline/lemmatizer.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b83614fade744fc173ab2e3c424bf4571866d6c8d22eb8fbdf05016f07546a"}},{"ruleId":"D2","level":"warning","message":{"text":"conllu_to_docs.get_entities (cognitive 27): conllu_to_docs.get_entities has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/converters/conllu_to_docs.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5072a50d47fac190044a31561fad7614a1a8f736128ade657ae5f38c319380"}},{"ruleId":"D2","level":"warning","message":{"text":"scorer.get_ner_prf (cognitive 26): scorer.get_ner_prf has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 4 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/scorer.py"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f56f9f7b55df27e7ccfd1b41cc3b9a2da1144dc7aa111a7d375a58726c5dbd2"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 25): syntax_iterators.noun_chunks has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/fi/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3cc106af2b14bff42301a62b55b03bda20d35d625bc507d62cf094ecc43b57"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanFinder.set_annotations (cognitive 25): SpanFinder.set_annotations has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 4 (8 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/span_finder.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"abae31ef93c6f55b84ffa3a85078f59d9ef95a9ab29e467e19a1c574dfe91459"}},{"ruleId":"D2","level":"warning","message":{"text":"pretrain.pretrain (cognitive 25): pretrain.pretrain has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/pretrain.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec85204f1c3c1f88860894383700b85c04aac211036ccbc4808a86fdf54933fe"}},{"ruleId":"D2","level":"warning","message":{"text":"DutchLemmatizer.rule_lemmatize (cognitive 24): DutchLemmatizer.rule_lemmatize has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2 (3 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/nl/lemmatizer.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c81aaed99499efffcc9f4886e85e8569b04ac2ac95bf377cf76df8fc2eed527"}},{"ruleId":"D2","level":"warning","message":{"text":"RussianLemmatizer._pymorphy_lemmatize (cognitive 24): RussianLemmatizer._pymorphy_lemmatize has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ru/lemmatizer.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5500bea8575a7741722ff635dd854123785af8bd8ee4056b65b9cd46ed1a30"}},{"ruleId":"D2","level":"warning","message":{"text":"Language.update (cognitive 24): Language.update has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/language.py"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ccbb081913d177cf0d9473e577b0c902dcce8d3a50c9c6ffd0405c7dda0896"}},{"ruleId":"D2","level":"warning","message":{"text":"Language.replace_listeners (cognitive 24): Language.replace_listeners has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (4 pts), error handling 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/language.py"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d06ab3059b17b6c17e5e13c83af1a6e92341f431445b54faf616cc0ca6ed53"}},{"ruleId":"D2","level":"warning","message":{"text":"Scorer.score_links (cognitive 24): Scorer.score_links has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/scorer.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b344648487653005b5ac1135f9f69ad9724965d52ecf9d6e18d42478f91dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"models.Model (cognitive 24): models.Model has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 17, ternaries 6, if/else 1. Of this number, 18 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/templates/models.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66fc483ab13629794f22d65bd759f7a2d3f38c9448ebc29e6f6785a1d956780"}},{"ruleId":"D2","level":"warning","message":{"text":"universe.Project (cognitive 24): universe.Project has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 24. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/templates/universe.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edb42de2d4529f261bcff22e193c242b47b1d2740185ba05915e8218bdc580e"}},{"ruleId":"D2","level":"warning","message":{"text":"displacy.parse_deps (cognitive 23): displacy.parse_deps has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 6 (9 pts), boolean chains 2, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/displacy/__init__.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"07da9514bbb17e87234637a4980e0654ebe3e3297f82f6ef7a01d7a9046e8ee2"}},{"ruleId":"D2","level":"warning","message":{"text":"remarkWrapSections.remarkWrapSection.transformer (cognitive 23): remarkWrapSections.remarkWrapSection.transformer has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (14 pts), if/else 3 (5 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 13). Of this number, 20 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"website/plugins/remarkWrapSections.mjs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49d5261a41864f24fc072a3d4e53a29cdd2796c8f521c600edf7e5adfd77529"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 22): syntax_iterators.noun_chunks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ca/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d66ef65f3e852f9d620bee25e91584740217d1fa9c8decf8c137b5aeb06590"}},{"ruleId":"D2","level":"warning","message":{"text":"batchers.minibatch_by_words (cognitive 22): batchers.minibatch_by_words has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/batchers.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20377f2df766662548ce437187494540f536e183fdc5fc4ee5ad92fdfadfecc"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanRenderer._assemble_per_token_info (cognitive 21): SpanRenderer._assemble_per_token_info has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 2 (9 pts), if/else 3 (8 pts), loops 3 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/displacy/render.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"231324dd605737db58a4396ea7d58a097bd617907f9e64746a5bc3017d35bc6f"}},{"ruleId":"D2","level":"warning","message":{"text":"Scorer.score_token_attr (cognitive 21): Scorer.score_token_attr has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (5 pts) (nesting depth added 11). 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":"spacy/scorer.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97903905a720d1a9a5c60bbce8ed07c1f1110a6ff91bdb5ad2599985afb5c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"MacedonianLemmatizer.rule_lemmatize (cognitive 20): MacedonianLemmatizer.rule_lemmatize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/mk/lemmatizer.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"97756e0c4daff2c261c091f3589c355d496946df638b2e97f096ace8535bf946"}},{"ruleId":"D2","level":"warning","message":{"text":"loop.train (cognitive 20): loop.train has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 1 (2 pts), boolean chains 1, error handling 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":"spacy/training/loop.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd21da96b01c5f39db5e144ae233076d7e624181555a5c0fc8fd57dc03f16139"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanishLemmatizer.lemmatize_adj (cognitive 19): SpanishLemmatizer.lemmatize_adj has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SpanishLemmatizer.lemmatize_noun) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c811766aa87c7bf987212d0c3fcae401f546d38a024d05157696ce6ffa9c51ca"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanishLemmatizer.lemmatize_noun (cognitive 19): SpanishLemmatizer.lemmatize_noun has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SpanishLemmatizer.lemmatize_adj) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba86a58ba9f3ef8e78bda4aff4f77f6df5bf7f93e4b25bb121e8458e56a2a45"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanishLemmatizer.lemmatize_pron (cognitive 19): SpanishLemmatizer.lemmatize_pron has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e1436ce7808cb90e6937d85dd884368e1ab739338c06bce2ec1770525c787e"}},{"ruleId":"D2","level":"warning","message":{"text":"lex_attrs.like_num (cognitive 19): lex_attrs.like_num has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 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":"spacy/lang/mk/lex_attrs.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2e2ff2c58f4ef787f63d3b9880e0184ae5cdb23a1da7f81cabab86d5aba1aa"}},{"ruleId":"D2","level":"warning","message":{"text":"callbacks.pipes_with_nvtx_range (cognitive 19): callbacks.pipes_with_nvtx_range has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 2 (6 pts), loops 2 (3 pts) (nesting depth added 11). 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":"spacy/ml/callbacks.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f72df457a3db6b6dcbe2bb86d88fbd20f65b79789458bf096ae7814eb189ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"EditTreeLemmatizer.set_annotations (cognitive 19): EditTreeLemmatizer.set_annotations has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). 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":"spacy/pipeline/edit_tree_lemmatizer.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78527a210408cbc7bf29a7be71814c30a59697c448c98f487e9f8ef10fdd54e"}},{"ruleId":"D2","level":"warning","message":{"text":"tok2vec.forward (cognitive 19): tok2vec.forward has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (5 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":"spacy/pipeline/tok2vec.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e2ad1470f315180922c599b1ba66f359ff64ce5f6956d50721c9e47d7bb2ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Scorer.score_tokenization (cognitive 19): Scorer.score_tokenization has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (5 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":"spacy/scorer.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c35fa9a74a8760e79ce757667747a1d5d273a95cdfb9e3de6c4ceaf7e10a6af"}},{"ruleId":"D2","level":"warning","message":{"text":"initialize.init_vocab (cognitive 19): initialize.init_vocab has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/initialize.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7768e528b742562dcbb2f023c7011c65de16e48cd5f272aedb9b70f102a60c"}},{"ruleId":"D2","level":"warning","message":{"text":"universe.UniverseContent (cognitive 19): universe.UniverseContent has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (11 pts), boolean chains 6, if/else 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 80). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/templates/universe.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ff5daf58dae7e3d36622910d8d6bc79779b7658d5d7240898316e855e0e31f"}},{"ruleId":"D2","level":"warning","message":{"text":"evaluate.handle_scores_per_type (cognitive 18): evaluate.handle_scores_per_type has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (18 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/evaluate.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b14333e15f311559f39bb960a68fbb382ba5eca4a8d309aaad9823f4d786564"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityRenderer.render_ents (cognitive 18): EntityRenderer.render_ents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/displacy/render.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"863ff6cb924bf2c4ff6f9d277d0c837f7939f37414e3916eb2998be1c51fc340"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalanLemmatizer.rule_lemmatize (cognitive 18): CatalanLemmatizer.rule_lemmatize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ca/lemmatizer.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ca80ace3e98047e302385eea7efdd3c3450bb978905f9efe2c505c520ba496"}},{"ruleId":"D2","level":"warning","message":{"text":"FrenchLemmatizer.rule_lemmatize (cognitive 18): FrenchLemmatizer.rule_lemmatize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/fr/lemmatizer.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"42615ca7649d47fe9eb419f74fbc3a0731477919217c5b95587eb11ddb9f0e24"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 18): syntax_iterators.noun_chunks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/nl/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e78d1d008108c87b317058ccca3505d2224c1bcaf4406cfcea8e756d9c8166d"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanFinder._get_aligned_truth_scores (cognitive 18): SpanFinder._get_aligned_truth_scores has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 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":"spacy/pipeline/span_finder.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"def9ae7f3b6c1dd28fb67e6012cfddeaffc5a82de20dfc9c888f87f4fb192220"}},{"ruleId":"D2","level":"warning","message":{"text":"conll_ner_to_docs.segment_sents_and_docs (cognitive 18): conll_ner_to_docs.segment_sents_and_docs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), boolean chains 1 (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":"spacy/training/converters/conll_ner_to_docs.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e373683ac6131d2260b0dc319a60d2bcc8ea5a13063c2f49fb77b947c4aa0f8f"}},{"ruleId":"D2","level":"warning","message":{"text":"conllu_to_docs.has_ner (cognitive 18): conllu_to_docs.has_ner has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 2 (7 pts) (nesting depth added 12). 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":"spacy/training/converters/conllu_to_docs.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"95597d0319c1ee207d964706af7a603ed3fb7678d06c5881f94f12511d50d531"}},{"ruleId":"D2","level":"warning","message":{"text":"JinjaToJS._process_compare (cognitive 18): JinjaToJS._process_compare has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3 (nesting depth added 6). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/setup/jinja_to_js.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb389c4daf02b7996020edcf3571deb2dd4e324b2dd46e871aa69d540d32d41f"}},{"ruleId":"D2","level":"warning","message":{"text":"code.splitLines (cognitive 18): code.splitLines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4 (nesting depth added 6). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 38, 41, 65). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/components/code.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19820f3e325b0c2d317dd739ef9b95cbbaa23c03efe15033706792041800ae8"}},{"ruleId":"D2","level":"warning","message":{"text":"_util._parse_overrides (cognitive 17): _util._parse_overrides has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/_util.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db1b442b8ebe2c53b3e51de5bae78933c60f583ee537f4d04f57801e483dda4"}},{"ruleId":"D2","level":"warning","message":{"text":"debug_model.debug_model (cognitive 17): debug_model.debug_model has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/debug_model.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f76f827fd5e15f8fb820cbf463de7640552a95bfbd2197e7576ab4b6360e93"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 17): syntax_iterators.noun_chunks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/de/syntax_iterators.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7053c7a35080403504bf709b133c828ab01d25d9529bdc73107824689a9e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"GreekLemmatizer.rule_lemmatize (cognitive 17): GreekLemmatizer.rule_lemmatize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/el/lemmatizer.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c439a725d2e09f88817aa1ed09a6fa46d30f9fddb9550cbca090d7ee04e38d19"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanishLemmatizer.lemmatize_det (cognitive 17): SpanishLemmatizer.lemmatize_det has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (5 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2b2620679245c2c574e6e33da4660697e2fe029ea5895ca879797d31b29a29"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanCategorizer.get_loss (cognitive 17): SpanCategorizer.get_loss has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/spancat.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6777a2f382a9f536976e0ebb56dbea43efa49d76a0ff276f4a4422f6f59376"}},{"ruleId":"D2","level":"warning","message":{"text":"SpanCategorizer._make_span_group_multilabel (cognitive 17): SpanCategorizer._make_span_group_multilabel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/spancat.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ff3f5685f684514b6e44fcce2e08662cc0d7236c0dc7d1400f009623346e25"}},{"ruleId":"D2","level":"warning","message":{"text":"quickstart-install.QuickstartInstall (cognitive 17): quickstart-install.QuickstartInstall has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, if/else 1. Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/widgets/quickstart-install.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"406865ddfa0ccbeacbec5ddfe931822912e44a0d60fbd45a4da2fdb077c60f99"}},{"ruleId":"D2","level":"warning","message":{"text":"_util.show_validation_error (cognitive 16): _util.show_validation_error has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 2 (4 pts), boolean chains 2, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/_util.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e102798d50cf01cd08abdf3bf54887702bbbb56012f22945653d18d2d7e2b4bd"}},{"ruleId":"D2","level":"warning","message":{"text":"find_threshold.find_threshold (cognitive 16): find_threshold.find_threshold has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/find_threshold.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dda7cc8cb9c73add77007a5bce3fa05dc244e44d4c06419e3931b2835655485"}},{"ruleId":"D2","level":"warning","message":{"text":"displacy.render (cognitive 16): displacy.render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 3, loops 1 (2 pts), ternaries 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/displacy/__init__.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c709c8418eb34a058525f6f4553e0f38bbc6fcc0103b15de4416ed6240344bf"}},{"ruleId":"D2","level":"warning","message":{"text":"get_pos_from_wiktionary.get_pos_from_wiktionary (cognitive 16): get_pos_from_wiktionary.get_pos_from_wiktionary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 5 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/el/get_pos_from_wiktionary.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace601d51510db3f293302a562883518ca53856de21c7cb98457878eeb139ef4"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_iterators.noun_chunks (cognitive 16): syntax_iterators.noun_chunks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (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":"spacy/lang/ja/syntax_iterators.py"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18cf06a5523519b41f8ef83e930ab1f03ba31a06038c20877b04d6a3c843187"}},{"ruleId":"D2","level":"warning","message":{"text":"lemmatizer.oc2ud (cognitive 16): lemmatizer.oc2ud has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ru/lemmatizer.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4688aa546f64f5ebb9f3a98cfbbfdad17ad535cc0527e518d5386a53486d393"}},{"ruleId":"D2","level":"warning","message":{"text":"Language.pipe (cognitive 16): Language.pipe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 4 (6 pts) (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":"spacy/language.py"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacee73039a5ec60c2077ad15b6317e4fa9e55d281f3d9da8742c851ce926524"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityRuler.add_patterns (cognitive 16): EntityRuler.add_patterns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4, error handling 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":"spacy/pipeline/entityruler.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"4831ba4d72c389806b4359b068e6080ccd36ae6c05843af848d100717e1450cf"}},{"ruleId":"D2","level":"warning","message":{"text":"DocCleaner.__call__ (cognitive 16): DocCleaner.__call__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 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":"spacy/pipeline/functions.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4998465f6be9b769c1a4ebb115c6f73ecae4bfdf5e7bc6cba8c784b09dd8e699"}},{"ruleId":"D2","level":"warning","message":{"text":"Corpus.read_docbin (cognitive 16): Corpus.read_docbin has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/corpus.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"660775bf2ff708998e3ecb5a0c14bd67a7f16e792c44beaeeb8a86bc498fd7a4"}},{"ruleId":"D2","level":"warning","message":{"text":"util.resolve_dot_names (cognitive 16): util.resolve_dot_names has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/util.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"900bd00cddc5e9c47f8073a19469c57394eb1f36857163bcb8e0207814fab085"}},{"ruleId":"D2","level":"warning","message":{"text":"util.load_meta (cognitive 16): util.load_meta has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, 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":"spacy/util.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2c50f4a5cb5e69524eb77430d0f30ed3de7ac0a61d1bd89e4a70c7c97376f9"}},{"ruleId":"D2","level":"warning","message":{"text":"remarkCodeBlocks.remarkCodeBlocks.transformer (cognitive 16): remarkCodeBlocks.remarkCodeBlocks.transformer has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (7 pts) (nesting depth added 3). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 24). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/plugins/remarkCodeBlocks.mjs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe9971ae7acbf2002693d54ae356d5cd2a167ce836ede9b412d0a2a9d3af8c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spacy/language.py: FileTooLong \u2014 1488 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 988 over it, 2.98\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":"spacy/language.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a6ae36accce762c8c88e31d96244199bfc967f1d0e7dac7da4b6bc5e797afb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JinjaToJS: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/setup/jinja_to_js.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8b584c165bd462b3b6ac6d3d06dd4efea0d1be3417204292232043b8f2a1c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.Landing: FunctionTooLong \u2014 Landing runs 232 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 132 over it, 2.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/pages/index.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2253cb37786fe3acd872727fba9ea4323fb689e4e9000900b4d137efcb8b31c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spacy/util.py: FileTooLong \u2014 1081 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 581 over it, 2.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":"spacy/util.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63df9ba74a4ffe166072629a607edb67cf23265918797ef322e5ac7b0a648b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spacy/errors.py: FileTooLong \u2014 970 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 470 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/errors.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fee4b524cdf14f1998b4c132e681933e50f363fa7b14aad2cb4536a925c6db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/debug_data.py: FileTooLong \u2014 950 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 450 over it, 1.90\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":"spacy/cli/debug_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c7cb95a38c309c09430f5d4c34df729fa33df1a3a08a438d3ec7c6201ddbf6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: models.Model: FunctionTooLong \u2014 Model runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/templates/models.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"19dde251adee28e301e09f9a71d5eb5f655691528ebd6ee2a96149da99a17fab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Language: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/language.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"badf967ab7f02e5547828798f2f4f562871798053115a3d6cd3ce0f4af584fee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: quickstart-install.QuickstartInstall: FunctionTooLong \u2014 QuickstartInstall runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/widgets/quickstart-install.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f185667316169f483ef8826f2827f45ba8a9e45009562080df3decc29df1f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spacy/scorer.py: FileTooLong \u2014 763 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 263 over it, 1.53\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":"spacy/scorer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99360218a2706d78659a3e65412b3ea5d0a2e214b2aa5a2ddc95a17ce31fc2c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipeline/factories.py: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 249 over it, 1.50\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":"spacy/pipeline/factories.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46928b46607e3fdd5d0f196a752cd56b00d3c74887f217a174eb979dae6ef952"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: universe.UniverseContent: FunctionTooLong \u2014 UniverseContent runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/templates/universe.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a654c2fc5025ef63494a111cad89b2d07a119cf03823eea722087c0fdcad0af"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: universe.Project: FunctionTooLong \u2014 Project runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/src/templates/universe.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"95790419eeed8a4d066330247edf9270b3c8546a08bfd124da0892fb8e332468"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/package.py: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/package.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49ef770112133e959e0040f3b6fa8657a1ccdd7372fcfad4093db85726b7293"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 15 shared lines): spacy/lang/es/syntax_iterators.py:9-73 | spacy/lang/fr/syntax_iterators.py:9-82 | spacy/lang/ht/syntax_iterators.py:9-71 | spacy/lang/it/syntax_iterators.py:9-83 | spacy/lang/pt/syntax_iterators.py:9-82 \u2014 These 5 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/syntax_iterators.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5558def8d09d623ae07ffc08cf3087e67b9315b6967b3805d4365030ff490727"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 24 shared lines): spacy/lang/id/syntax_iterators.py:9-38 | spacy/lang/ms/syntax_iterators.py:9-38 | spacy/lang/nb/syntax_iterators.py:9-36 | spacy/lang/sv/syntax_iterators.py:9-36 \u2014 These 4 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/id/syntax_iterators.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefbba494e681bdbe7dd8b4f4fc9a734a4f8a93f9691980f94df7421c7a5fbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (55 members, 50\u002B identical tokens): spacy/lang/am/lex_attrs.py:78-99 | spacy/lang/ar/lex_attrs.py:78-94 | spacy/lang/az/lex_attrs.py:66-85 | spacy/lang/bg/lex_attrs.py:73-84 | spacy/lang/bo/lex_attrs.py:48-62 | spacy/lang/ca/lex_attrs.py:44-55 | spacy/lang/cs/lex_attrs.py:47-58 | spacy/lang/da/lex_attrs.py:34-47 | spacy/lang/dsb/lex_attrs.py:95-110 | spacy/lang/el/lex_attrs.py:79-96 | spacy/lang/en/lex_attrs.py:25-43 | spacy/lang/es/lex_attrs.py:85-100 | spacy/lang/eu/lex_attrs.py:60-73 | spacy/lang/fi/lex_attrs.py:41-52 | spacy/lang/fr/lex_attrs.py:27-40 | spacy/lang/he/lex_attrs.py:75-92 | spacy/lang/hi/lex_attrs.py:166-185 | spacy/lang/hsb/lex_attrs.py:88-103 | spacy/lang/ht/lex_attrs.py:54-71 | spacy/lang/hy/lex_attrs.py:42-53 | spacy/lang/id/lex_attrs.py:38-53 | spacy/lang/kmr/lex_attrs.py:105-125 | spacy/lang/ko/lex_attrs.py:49-60 | spacy/lang/ky/lex_attrs.py:34-45 | spacy/lang/lb/lex_attrs.py:23-37 | spacy/lang/lex_attrs.py:40-50 | spacy/lang/lg/lex_attrs.py:80-92 | spacy/lang/lt/lex_attrs.py:1138-1147 | spacy/lang/mk/lex_attrs.py:106-135 | spacy/lang/ml/lex_attrs.py:59-73 | spacy/lang/ms/lex_attrs.py:37-52 | spacy/lang/ne/lex_attrs.py:80-91 | spacy/lang/nl/lex_attrs.py:26-37 | spacy/lang/pl/lex_attrs.py:53-62 | spacy/lang/pt/lex_attrs.py:102-115 | spacy/lang/ro/lex_attrs.py:26-39 | spacy/lang/ru/lex_attrs.py:212-225 | spacy/lang/sa/lex_attrs.py:110-124 | spacy/lang/si/lex_attrs.py:49-58 | spacy/lang/sk/lex_attrs.py:45-56 | spacy/lang/sl/lex_attrs.py:117-131 | spacy/lang/sr/lex_attrs.py:51-62 | spacy/lang/sv/lex_attrs.py:44-55 | spacy/lang/ta/lex_attrs.py:66-77 | spacy/lang/te/lex_attrs.py:42-51 | spacy/lang/th/lex_attrs.py:44-55 | spacy/lang/ti/lex_attrs.py:49-70 | spacy/lang/tl/lex_attrs.py:44-53 | spacy/lang/tn/lex_attrs.py:83-104 | spacy/lang/tr/lex_attrs.py:66-85 | spacy/lang/tt/lex_attrs.py:44-55 | spacy/lang/uk/lex_attrs.py:58-67 | spacy/lang/ur/lex_attrs.py:29-42 | spacy/lang/vi/lex_attrs.py:31-42 | spacy/lang/zh/lex_attrs.py:77-94 \u2014 These 55 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 55 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 55 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/am/lex_attrs.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"baed0aec4338902fd9a62e16a71482fdf113cf8f77d3412f6d221ac097e325a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): spacy/lang/ca/lemmatizer.py:27-81 | spacy/lang/fr/lemmatizer.py:26-87 \u2014 These two members are one piece of code written twice and then edited apart: 55 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":"spacy/lang/ca/lemmatizer.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef34b84e2b5ef5fe2a63bddeb59621355f06f4266cf90db89b1d72dfd3fee34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): spacy/lang/da/syntax_iterators.py:9-71 | spacy/lang/la/syntax_iterators.py:11-83 \u2014 These two members are one piece of code written twice and then edited apart: 63 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":"spacy/lang/da/syntax_iterators.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc13a5ace689fbbe6b50ef8c3b4de31293ebcc69ec2a53e7bea2b1c48391222b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): spacy/lang/mk/lemmatizer.py:10-58 | spacy/pipeline/lemmatizer.py:173-240 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"spacy/lang/mk/lemmatizer.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8a71fe390f2981796f02ebf2b8490e17e63ba83b3f17faeb57e3465afd8691"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): spacy/lang/en/syntax_iterators.py:9-47 | spacy/lang/fa/syntax_iterators.py:9-48 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/en/syntax_iterators.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"130c651baa8621879a11c87790504aac612dec0c22b7f0db5537c9131d5ab971"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): spacy/lang/es/lemmatizer.py:147-195 | spacy/lang/es/lemmatizer.py:275-325 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ec52f614acb868d7b09db000da47941b8e94d185395ac031d36eb9cdc6a0ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): spacy/displacy/render.py:58-100 | spacy/displacy/render.py:510-539 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/displacy/render.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca21ac5b0343164daac5d2d18f8a2b0854478c5642114aaa48d43e70204ddc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): spacy/displacy/render.py:105-127 | spacy/displacy/render.py:544-565 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/displacy/render.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee8e975f8f0975aa0013a64afc7d9dc1554fdc60da39e1991db4752986f0a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): spacy/util.py:230-253 | spacy/util.py:259-289 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/util.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3db5f2b6c96c7ac5bfb5e03ec9e891d0ebe27735dcba10f77db40a22d20d1a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): spacy/lang/ru/lemmatizer.py:25-53 | spacy/lang/uk/lemmatizer.py:21-45 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ru/lemmatizer.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bfe145f247df9adb4a1f3b61500237daf990e44440fbc6352716d27f0fddbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): spacy/pipeline/spancat.py:416-447 | spacy/pipeline/textcat.py:190-217 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/spancat.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0232eac20d921554d0e1c8fd37ef7c279e60405deb16f3eb3ee0f2cd76dad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): spacy/pipeline/span_ruler.py:39-59 | spacy/pipeline/span_ruler.py:69-89 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/span_ruler.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"622e8d959338892bbda93ed91d7754b2ca21d9fd1609188f0593129ca79329eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): spacy/pipeline/_edit_tree_internals/schemas.py:37-51 | spacy/schemas.py:55-70 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/_edit_tree_internals/schemas.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"303215c4581968210181337d8649627b2d9208ab849f1686631c46e816dc44cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): spacy/pipeline/span_ruler.py:389-406 | spacy/pipeline/span_ruler.py:409-429 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/span_ruler.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb14027049b1fc47ff50292ce76c73019589f4a884b70724161b45d4854e10d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): spacy/pipeline/attributeruler.py:172-188 | spacy/pipeline/attributeruler.py:193-212 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/attributeruler.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a343dfe264976c8b7b96498087148e0200c4223a296a06ca049202c46b6063"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): spacy/pipeline/span_ruler.py:99-108 | spacy/pipeline/spancat.py:160-169 \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":"spacy/pipeline/span_ruler.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1053dc36c3350f76b6119048790fa1554966cc9f5ff037f73c71bc9d992e5a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): spacy/displacy/render.py:251-267 | spacy/displacy/render.py:270-288 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/displacy/render.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb211a5749efe4dd1cc8a0ca5ccd7e92b1b157b1e0d8fb466355bdb9cbaff97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): website/setup/jinja_to_js.py:715-722 | website/setup/jinja_to_js.py:776-783 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/setup/jinja_to_js.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74fadc0fa643e505d20c397354744a95b3712a3e01c8e73fe3d72776bf972d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): spacy/cli/init_pipeline.py:133-143 | spacy/cli/init_pipeline.py:173-187 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/init_pipeline.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"301c1f809bba0c94daf08e92a2605107186151007cf275fbe5bb2ef2d5897ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): spacy/ml/models/tok2vec.py:278-303 | spacy/ml/models/tok2vec.py:309-325 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/ml/models/tok2vec.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdead292d9a388afd1f436d2529c0530236808ef1a66b8378d6fa09d4377acb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): spacy/pipeline/lemmatizer.py:271-284 | spacy/pipeline/lemmatizer.py:302-315 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/lemmatizer.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"55eaa1289f980732ac01f717b77b3185def89be985029c3775959389baf259af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): spacy/pipeline/entityruler.py:165-181 | spacy/pipeline/entityruler.py:205-219 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/entityruler.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43eb6c93011a65cce3df4693a1829f8087c14b2540156d8c73f25cabd2ab798"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): spacy/lang/hi/lex_attrs.py:149-162 | spacy/lang/ne/lex_attrs.py:64-76 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/hi/lex_attrs.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea978a1bf3539f4b1122104831f2ef187f740b0cdd9aac4a18b4b72a7284e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): spacy/pipeline/entity_linker.py:178-181 | spacy/pipeline/legacy/entity_linker.py:99-102 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/entity_linker.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a1f2d73d820ee37db533a6747af7588ec1d1c89b293a26326d3f78ca9c6cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): spacy/lang/ja/__init__.py:184-188 | spacy/lang/vi/__init__.py:150-153 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ja/__init__.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94a26ccb62c18fff315c87d4870f247ee6f3f5cb2731c508170a8d23fb12689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): spacy/lang/ja/__init__.py:179-181 | spacy/lang/vi/__init__.py:145-147 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ja/__init__.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a0b5e069440e4dd4bc5e59463307f100745db7b4958ae58121632685cc40f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): spacy/pipeline/attributeruler.py:263-273 | spacy/pipeline/lemmatizer.py:287-297 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/attributeruler.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e620bddf70992ee961818cca4536aff68b6e033a05778d89bf3fc0b8cb4b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): spacy/lang/ja/__init__.py:173-176 | spacy/lang/vi/__init__.py:140-142 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ja/__init__.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e83734d214d00ef65de292fe1fd41627c1d3753aa57438e601ef7d42a66a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201345 lines \u00D7 2): spacy/lang/ca/lemmatizer.py:27-66 | spacy/lang/fr/lemmatizer.py:26-70 \u2014 \u0060spacy/lang/ca/lemmatizer.py\u0060 and \u0060spacy/lang/fr/lemmatizer.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 74 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/ca/lemmatizer.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d0485ad4256d2ed9aae95c22354f116654edb4cb7ab447501a280d38df02b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): spacy/lang/es/lemmatizer.py:77-120 | spacy/lang/es/lemmatizer.py:200-243 \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":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76778e832c568a252a99ac446db69d1e37656c06544ecea3e5865491c82be28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): spacy/lang/es/lemmatizer.py:147-180 | spacy/lang/es/lemmatizer.py:275-309 \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":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c843cc889c8b21db15f0b041868b0ca34cd424e3eb63bcd82eb59e3bebb47a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): spacy/pipeline/entity_linker.py:418-445 | spacy/pipeline/legacy/entity_linker.py:273-300 \u2014 before extracting anything, compare \u0060spacy/pipeline/entity_linker.py\u0060 and \u0060spacy/pipeline/legacy/entity_linker.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/entity_linker.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"498e2bc6e6675f72ee1b0410adddf0df993ce11976a2cec0c97c3e5a14069b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): spacy/lang/fr/syntax_iterators.py:41-66 | spacy/lang/pt/syntax_iterators.py:39-64 \u2014 \u0060spacy/lang/fr/syntax_iterators.py\u0060 and \u0060spacy/lang/pt/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 84 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/fr/syntax_iterators.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9731e34f3ccfbd973cdbd9fd3070c4014a18cdec520441530357b35f4f4a83a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): spacy/pipeline/entityruler.py:247-269 | spacy/pipeline/span_ruler.py:323-347 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The 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":"spacy/pipeline/entityruler.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df7d94442f643d64e11c7de8c2e0d07c553bdd44737273f4bd8d5c4686b8cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): spacy/lang/id/syntax_iterators.py:15-38 | spacy/lang/ms/syntax_iterators.py:15-38 | spacy/lang/nb/syntax_iterators.py:13-36 | spacy/lang/sv/syntax_iterators.py:13-36 \u2014 \u0060spacy/lang/id/syntax_iterators.py\u0060 and \u0060spacy/lang/ms/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/id/syntax_iterators.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4391f008ace592455302bdd64d6d85d0b7b71bfaee8de58f39555a23128bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201324 lines \u00D7 3): spacy/lang/ca/lemmatizer.py:60-77 | spacy/lang/el/lemmatizer.py:43-58 | spacy/lang/fr/lemmatizer.py:60-83 \u2014 \u0060spacy/lang/ca/lemmatizer.py\u0060 and \u0060spacy/lang/fr/lemmatizer.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 74 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/ca/lemmatizer.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d442ff2d783008cd2263c7ada082a6605b301b4f7f59246c883061b47a91f423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): spacy/cli/debug_data.py:457-479 | spacy/cli/debug_data.py:506-528 \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 \u0060spacy/cli/debug_data.py:457\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, \u0060spacy/cli/debug_data.py:481\u0060 calls \u0060fail\u0060 and \u0060spacy/cli/debug_data.py:529\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":"spacy/cli/debug_data.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"204ac672ca3f4786d8cbc120e4d284fe720d25a6a77afd42dbaeb323e4e2de43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): spacy/lang/da/syntax_iterators.py:13-35 | spacy/lang/la/syntax_iterators.py:15-37 \u2014 \u0060spacy/lang/da/syntax_iterators.py\u0060 and \u0060spacy/lang/la/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/da/syntax_iterators.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d661c0d46e7be5087609c37e7971cf2b232554821f5e6e89e97ace95d4371085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): spacy/lang/es/syntax_iterators.py:47-67 | spacy/lang/it/syntax_iterators.py:57-77 | spacy/lang/pt/syntax_iterators.py:56-76 \u2014 \u0060spacy/lang/es/syntax_iterators.py\u0060 and \u0060spacy/lang/it/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spacy/lang/es/syntax_iterators.py:47\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":"spacy/lang/es/syntax_iterators.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53f1e325f752ce024b28a1fc74c132fff062d7fc66c0a5df2f187b3982de674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): spacy/lang/en/syntax_iterators.py:9-28 | spacy/lang/fa/syntax_iterators.py:9-29 | spacy/lang/tr/syntax_iterators.py:9-28 \u2014 \u0060spacy/lang/en/syntax_iterators.py\u0060 and \u0060spacy/lang/fa/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/en/syntax_iterators.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a5c904e5cf7ba5be2f5da844c2f7cd6a75f4170d4a4d306d1421227a028382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): spacy/lang/ht/syntax_iterators.py:9-31 | spacy/lang/pt/syntax_iterators.py:9-27 \u2014 \u0060spacy/lang/ht/syntax_iterators.py\u0060 and \u0060spacy/lang/pt/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ht/syntax_iterators.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b4844194c125d8e445bb09b29fadcd026156a055ea8f4ca32dcd9b7c7e5677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): spacy/pipeline/entity_linker.py:461-479 | spacy/pipeline/legacy/entity_linker.py:312-330 \u2014 before extracting anything, compare \u0060spacy/pipeline/entity_linker.py\u0060 and \u0060spacy/pipeline/legacy/entity_linker.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/entity_linker.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c954aa8bf7937db3f9571ff71db94d446124bafbb977c69ebc926532cee6dd42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): spacy/pipeline/entity_linker.py:499-521 | spacy/pipeline/legacy/entity_linker.py:350-372 \u2014 before extracting anything, compare \u0060spacy/pipeline/entity_linker.py\u0060 and \u0060spacy/pipeline/legacy/entity_linker.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060TrainablePipe\u0060 names \u0060..trainable_pipe\u0060 in one and \u0060.trainable_pipe\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":"spacy/pipeline/entity_linker.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"139fa41b9f4d6b9328155f859128756b488d6391942cf9d5c9a240b5d6e68574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): spacy/pipeline/entity_linker.py:543-565 | spacy/pipeline/legacy/entity_linker.py:394-416 \u2014 before extracting anything, compare \u0060spacy/pipeline/entity_linker.py\u0060 and \u0060spacy/pipeline/legacy/entity_linker.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060SimpleFrozenList\u0060 names \u0060...util\u0060 in one and \u0060..util\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":"spacy/pipeline/entity_linker.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f907a7d81639b3bc80ed6f6feaccdbbc2ea7596eaf21421154b4bdb96b24ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): spacy/displacy/render.py:58-74 | spacy/displacy/render.py:510-525 \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":"spacy/displacy/render.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b0fd44322c640f80704ea885540a021bba73771b3af268f37089f14313a594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): spacy/lang/mk/lemmatizer.py:20-36 | spacy/pipeline/lemmatizer.py:192-208 \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":"spacy/lang/mk/lemmatizer.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d108f644d58f01596db03dc352269ad7323d7b65a4e88a5e3cbb0d08c82e473f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): spacy/lang/am/lex_attrs.py:84-99 | spacy/lang/ti/lex_attrs.py:55-70 | spacy/lang/tn/lex_attrs.py:89-104 \u2014 \u0060spacy/lang/am/lex_attrs.py\u0060 and \u0060spacy/lang/ti/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/am/lex_attrs.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"847e44079f19a0936a6fead5f4c4eb7e0482659d8dfcae47e81bd8b177cb3bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): spacy/lang/da/syntax_iterators.py:57-71 | spacy/lang/la/syntax_iterators.py:68-83 \u2014 \u0060spacy/lang/da/syntax_iterators.py\u0060 and \u0060spacy/lang/la/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spacy/lang/la/syntax_iterators.py:68\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":"spacy/lang/da/syntax_iterators.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"598aa1d62b89717cf3528ff14cc941c8d49ef33b54505332ea4eb52900332070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): spacy/lang/fr/syntax_iterators.py:40-54 | spacy/lang/it/syntax_iterators.py:39-53 | spacy/lang/pt/syntax_iterators.py:38-52 \u2014 \u0060spacy/lang/fr/syntax_iterators.py\u0060 and \u0060spacy/lang/it/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spacy/lang/fr/syntax_iterators.py:40\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":"spacy/lang/fr/syntax_iterators.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e549b3762b34fe548729490a602fe761bd65ef685375bc2be117b9f23bb8ae77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): spacy/lang/es/lemmatizer.py:181-195 | spacy/lang/es/lemmatizer.py:311-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"196eeff3a41d16177848d628b1741b0cce1a760cb8b1ebac910291ecb570b451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): spacy/lang/es/syntax_iterators.py:60-73 | spacy/lang/fr/syntax_iterators.py:69-82 | spacy/lang/it/syntax_iterators.py:70-83 | spacy/lang/pt/syntax_iterators.py:69-82 \u2014 \u0060spacy/lang/es/syntax_iterators.py\u0060 and \u0060spacy/lang/fr/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/syntax_iterators.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da9fc642f7c4fb9b59bd247b081ee4bc517db14d0243ef23d82bf7123091380"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): spacy/cli/debug_data.py:567-580 | spacy/cli/debug_data.py:585-598 \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":"spacy/cli/debug_data.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ec6e2e48198793290b4b9d3d249080eafe3fd5d84385b9927e6bc9218b1bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): spacy/lang/az/lex_attrs.py:72-85 | spacy/lang/tr/lex_attrs.py:72-85 \u2014 \u0060spacy/lang/az/lex_attrs.py\u0060 and \u0060spacy/lang/tr/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/az/lex_attrs.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b11076d2d0b980e0651646ba5824137f3aac38de0926bbea2850c78c573c1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): spacy/displacy/render.py:105-117 | spacy/displacy/render.py:544-556 \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":"spacy/displacy/render.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"069d8a8b801abe6786e945d1eab71c38f33df9fcc1c65267f9c64a74c7802945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): spacy/lang/id/lex_attrs.py:41-53 | spacy/lang/ms/lex_attrs.py:40-52 \u2014 \u0060spacy/lang/id/lex_attrs.py\u0060 and \u0060spacy/lang/ms/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/id/lex_attrs.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a100729d340cf23c758c6fc1fa20f46622c6d5db977a764ef52d792d36654f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): spacy/ml/models/textcat.py:185-195 | spacy/ml/models/textcat.py:275-287 \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":"spacy/ml/models/textcat.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9672264a9ce52d0be7aecfea7e5e24e5be2e7601a981921678e208868dbf83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): spacy/lang/es/syntax_iterators.py:33-44 | spacy/lang/fr/syntax_iterators.py:38-49 | spacy/lang/it/syntax_iterators.py:37-48 | spacy/lang/pt/syntax_iterators.py:36-47 \u2014 \u0060spacy/lang/es/syntax_iterators.py\u0060 and \u0060spacy/lang/fr/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/es/syntax_iterators.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b99a6d349b1f1a05285c55647b5b36df8cc20f0935c114717428109ac08f321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): spacy/cli/package.py:240-251 | spacy/cli/package.py:256-267 \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 \u0060spacy/cli/package.py:240\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/package.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aacaf4dce66d20f5783d10cb7ee989f1407991b98171ab408b0c13bc8c357be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): spacy/pipeline/entity_linker.py:482-496 | spacy/pipeline/legacy/entity_linker.py:333-347 \u2014 before extracting anything, compare \u0060spacy/pipeline/entity_linker.py\u0060 and \u0060spacy/pipeline/legacy/entity_linker.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/entity_linker.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ef403fe4834f737a4c77013ce1821f39d9ef8a3a0301440eba82129d2a7830"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 12): spacy/lang/el/syntax_iterators.py:20-29 | spacy/lang/en/syntax_iterators.py:28-37 | spacy/lang/es/syntax_iterators.py:31-40 | spacy/lang/fa/syntax_iterators.py:29-38 | spacy/lang/fr/syntax_iterators.py:36-45 | spacy/lang/ht/syntax_iterators.py:35-45 | spacy/lang/id/syntax_iterators.py:19-28 | spacy/lang/it/syntax_iterators.py:35-44 | spacy/lang/ms/syntax_iterators.py:19-28 | spacy/lang/nb/syntax_iterators.py:17-26 | spacy/lang/pt/syntax_iterators.py:34-43 | spacy/lang/sv/syntax_iterators.py:17-26 \u2014 \u0060spacy/lang/el/syntax_iterators.py\u0060 and \u0060spacy/lang/en/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 31 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060spacy/lang/el/syntax_iterators.py:19\u0060 calls \u0060add\u0060 and \u0060spacy/lang/en/syntax_iterators.py:27\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":"spacy/lang/el/syntax_iterators.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa346077a2e2af75a819b95b4aaeae360bc24805ddd317b87bd8b8878a0f567d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): spacy/lang/am/lex_attrs.py:82-94 | spacy/lang/az/lex_attrs.py:70-81 | spacy/lang/en/lex_attrs.py:29-39 | spacy/lang/kmr/lex_attrs.py:109-120 | spacy/lang/ti/lex_attrs.py:53-65 | spacy/lang/tn/lex_attrs.py:87-99 | spacy/lang/tr/lex_attrs.py:70-81 \u2014 \u0060spacy/lang/am/lex_attrs.py\u0060 and \u0060spacy/lang/az/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/am/lex_attrs.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"124ac75663ec49770306ce2b98dbe9df3fbf704c4a472ee93ac98fd923949f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): spacy/lang/ar/lex_attrs.py:84-94 | spacy/lang/eu/lex_attrs.py:63-73 | spacy/lang/he/lex_attrs.py:78-92 | spacy/lang/lb/lex_attrs.py:27-37 | spacy/lang/ur/lex_attrs.py:32-42 \u2014 \u0060spacy/lang/ar/lex_attrs.py\u0060 and \u0060spacy/lang/eu/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060spacy/lang/ar/lex_attrs.py:81\u0060 calls \u0060startswith\u0060 and \u0060spacy/lang/lb/lex_attrs.py:24\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":"spacy/lang/ar/lex_attrs.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b36717abad393baf007cf0e67292b31234db1dfabf80752514ccb2ab7ab5fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): spacy/lang/da/lex_attrs.py:37-47 | spacy/lang/fr/lex_attrs.py:30-40 | spacy/lang/nl/lex_attrs.py:27-37 | spacy/lang/pt/lex_attrs.py:105-115 | spacy/lang/ro/lex_attrs.py:29-39 \u2014 \u0060spacy/lang/da/lex_attrs.py\u0060 and \u0060spacy/lang/fr/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 34 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060spacy/lang/fr/lex_attrs.py:27\u0060 calls \u0060startswith\u0060 and \u0060spacy/lang/nl/lex_attrs.py:21\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":"spacy/lang/da/lex_attrs.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb7fe67ccfe25aa4df1bfd8eb79759ca94d0291592748dc8a2bfa7a685fe09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): spacy/lang/dsb/lex_attrs.py:99-110 | spacy/lang/es/lex_attrs.py:89-100 | spacy/lang/hsb/lex_attrs.py:92-103 | spacy/lang/sl/lex_attrs.py:121-131 \u2014 \u0060spacy/lang/dsb/lex_attrs.py\u0060 and \u0060spacy/lang/es/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/dsb/lex_attrs.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8748f5502074928897cec72d53ed3450b9980bd550ba08268cc29b83f21bc50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): spacy/lang/el/syntax_iterators.py:40-50 | spacy/lang/en/syntax_iterators.py:38-47 | spacy/lang/fa/syntax_iterators.py:39-48 \u2014 \u0060spacy/lang/el/syntax_iterators.py\u0060 and \u0060spacy/lang/en/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 31 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/el/syntax_iterators.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"822e33008f2deb3b66da16a428b9ef762aeee463801fb6c92604e82ac0b7c242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): spacy/pipeline/entity_linker.py:526-538 | spacy/pipeline/legacy/entity_linker.py:377-389 \u2014 before extracting anything, compare \u0060spacy/pipeline/entity_linker.py\u0060 and \u0060spacy/pipeline/legacy/entity_linker.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060SimpleFrozenList\u0060 names \u0060...util\u0060 in one and \u0060..util\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":"spacy/pipeline/entity_linker.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47c00b9e1121cd00d1e6c5efd32587cc648f5fcfaa88ecb5536ee82e0471bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): spacy/lang/am/lex_attrs.py:82-94 | spacy/lang/az/lex_attrs.py:70-81 | spacy/lang/dsb/lex_attrs.py:99-109 | spacy/lang/en/lex_attrs.py:29-39 | spacy/lang/es/lex_attrs.py:89-99 | spacy/lang/hsb/lex_attrs.py:92-102 | spacy/lang/kmr/lex_attrs.py:109-120 | spacy/lang/sl/lex_attrs.py:121-130 | spacy/lang/ti/lex_attrs.py:53-65 | spacy/lang/tn/lex_attrs.py:87-99 | spacy/lang/tr/lex_attrs.py:70-81 \u2014 \u0060spacy/lang/am/lex_attrs.py\u0060 and \u0060spacy/lang/az/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060spacy/lang/am/lex_attrs.py:95\u0060 calls \u0060endswith\u0060, \u0060isdigit\u0060 and \u0060spacy/lang/dsb/lex_attrs.py:110\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":"spacy/lang/am/lex_attrs.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3950601fa9fd37e0f508bb096ccceb01aec77faeea3ed55e6f920f71cc6b5d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): spacy/lang/ar/lex_attrs.py:84-93 | spacy/lang/eu/lex_attrs.py:63-72 | spacy/lang/he/lex_attrs.py:78-91 | spacy/lang/ht/lex_attrs.py:58-67 | spacy/lang/lb/lex_attrs.py:27-36 | spacy/lang/ur/lex_attrs.py:32-41 \u2014 \u0060spacy/lang/ar/lex_attrs.py\u0060 and \u0060spacy/lang/eu/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060spacy/lang/ar/lex_attrs.py:81\u0060 calls \u0060startswith\u0060 and \u0060spacy/lang/lb/lex_attrs.py:24\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":"spacy/lang/ar/lex_attrs.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61c4c9a3aa51d443c2c46305a3fc3ca87a280c6d9a30d1fee9460dfb89778de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 13): spacy/lang/am/lex_attrs.py:81-90 | spacy/lang/az/lex_attrs.py:69-78 | spacy/lang/dsb/lex_attrs.py:98-106 | spacy/lang/en/lex_attrs.py:28-36 | spacy/lang/es/lex_attrs.py:88-96 | spacy/lang/hsb/lex_attrs.py:91-99 | spacy/lang/kmr/lex_attrs.py:108-116 | spacy/lang/lg/lex_attrs.py:83-91 | spacy/lang/mk/lex_attrs.py:109-118 | spacy/lang/sl/lex_attrs.py:120-128 | spacy/lang/ti/lex_attrs.py:52-61 | spacy/lang/tn/lex_attrs.py:86-95 | spacy/lang/tr/lex_attrs.py:69-78 \u2014 \u0060spacy/lang/am/lex_attrs.py\u0060 and \u0060spacy/lang/az/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/am/lex_attrs.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd34ee207bdc341f1cf51432017f1c85f6db823534205f8d957fadb516037cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 13): spacy/lang/bg/lex_attrs.py:76-84 | spacy/lang/cs/lex_attrs.py:50-58 | spacy/lang/hy/lex_attrs.py:45-53 | spacy/lang/lt/lex_attrs.py:1139-1147 | spacy/lang/ne/lex_attrs.py:83-91 | spacy/lang/pl/lex_attrs.py:54-62 | spacy/lang/ru/lex_attrs.py:217-225 | spacy/lang/si/lex_attrs.py:50-58 | spacy/lang/sk/lex_attrs.py:48-56 | spacy/lang/sr/lex_attrs.py:54-62 | spacy/lang/sv/lex_attrs.py:47-55 | spacy/lang/te/lex_attrs.py:43-51 | spacy/lang/vi/lex_attrs.py:34-42 \u2014 \u0060spacy/lang/bg/lex_attrs.py\u0060 and \u0060spacy/lang/cs/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060spacy/lang/bg/lex_attrs.py:73\u0060 calls \u0060startswith\u0060 and \u0060spacy/lang/pl/lex_attrs.py:52\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":"spacy/lang/bg/lex_attrs.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c5c41440a702e51e742d0b96ccb6978e01e7ad7ec358601938e8f0bc10d2ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): spacy/lang/bo/lex_attrs.py:54-62 | spacy/lang/ca/lex_attrs.py:47-55 | spacy/lang/fi/lex_attrs.py:44-52 | spacy/lang/ky/lex_attrs.py:37-45 | spacy/lang/ml/lex_attrs.py:65-73 | spacy/lang/sa/lex_attrs.py:116-124 | spacy/lang/th/lex_attrs.py:47-55 | spacy/lang/tl/lex_attrs.py:45-53 | spacy/lang/tt/lex_attrs.py:47-55 | spacy/lang/uk/lex_attrs.py:59-67 \u2014 \u0060spacy/lang/bo/lex_attrs.py\u0060 and \u0060spacy/lang/ml/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 33 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060spacy/lang/ca/lex_attrs.py:44\u0060 calls \u0060startswith\u0060 and \u0060spacy/lang/tl/lex_attrs.py:43\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":"spacy/lang/bo/lex_attrs.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5897fb277d4f3d4899560e497c0de914ae59c71e3a05b3a9f401bf28ba6751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): spacy/lang/ar/lex_attrs.py:78-86 | spacy/lang/bo/lex_attrs.py:48-56 | spacy/lang/ml/lex_attrs.py:59-67 | spacy/lang/sa/lex_attrs.py:110-118 \u2014 \u0060spacy/lang/bo/lex_attrs.py\u0060 and \u0060spacy/lang/ml/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 33 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/ar/lex_attrs.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee897bea323ce0dd92d771b8c299558352ca37b1297f377f435e14e305a5c0d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 4): spacy/lang/el/syntax_iterators.py:15-20 | spacy/lang/en/syntax_iterators.py:23-29 | spacy/lang/fa/syntax_iterators.py:22-30 | spacy/lang/tr/syntax_iterators.py:22-29 \u2014 \u0060spacy/lang/el/syntax_iterators.py\u0060 and \u0060spacy/lang/en/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 31 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spacy/lang/en/syntax_iterators.py:23\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, \u0060spacy/lang/el/syntax_iterators.py:21\u0060 calls \u0060add\u0060 and \u0060spacy/lang/en/syntax_iterators.py:30\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":"spacy/lang/el/syntax_iterators.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7aebac0329e9cd195ce2d7b848369a84ab5b700f819b84ce55f926d84312d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spacy/util.py:230-238 | spacy/util.py:259-274 \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":"spacy/util.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d672fee4077c1f76693bac1d8a33b17d5ea14803e0deb6543080e65cc2fd05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 53): spacy/lang/am/lex_attrs.py:80-86 | spacy/lang/ar/lex_attrs.py:83-89 | spacy/lang/az/lex_attrs.py:68-74 | spacy/lang/bg/lex_attrs.py:75-81 | spacy/lang/bo/lex_attrs.py:53-59 | spacy/lang/ca/lex_attrs.py:46-52 | spacy/lang/cs/lex_attrs.py:49-55 | spacy/lang/da/lex_attrs.py:36-42 | spacy/lang/dsb/lex_attrs.py:97-103 | spacy/lang/el/lex_attrs.py:81-87 | spacy/lang/en/lex_attrs.py:27-33 | spacy/lang/es/lex_attrs.py:87-93 | spacy/lang/eu/lex_attrs.py:62-68 | spacy/lang/fi/lex_attrs.py:43-49 | spacy/lang/fr/lex_attrs.py:29-35 | spacy/lang/he/lex_attrs.py:77-84 | spacy/lang/hi/lex_attrs.py:168-174 | spacy/lang/hsb/lex_attrs.py:90-96 | spacy/lang/ht/lex_attrs.py:57-63 | spacy/lang/hy/lex_attrs.py:44-50 | spacy/lang/id/lex_attrs.py:40-46 | spacy/lang/kmr/lex_attrs.py:107-113 | spacy/lang/ko/lex_attrs.py:51-57 | spacy/lang/ky/lex_attrs.py:36-42 | spacy/lang/lb/lex_attrs.py:26-32 | spacy/lang/lex_attrs.py:43-49 | spacy/lang/lg/lex_attrs.py:82-88 | spacy/lang/lt/lex_attrs.py:1138-1144 | spacy/lang/mk/lex_attrs.py:108-114 | spacy/lang/ml/lex_attrs.py:64-70 | spacy/lang/ms/lex_attrs.py:39-45 | spacy/lang/ne/lex_attrs.py:82-88 | spacy/lang/nl/lex_attrs.py:26-32 | spacy/lang/pl/lex_attrs.py:53-59 | spacy/lang/ro/lex_attrs.py:28-34 | spacy/lang/ru/lex_attrs.py:216-222 | spacy/lang/sa/lex_attrs.py:115-121 | spacy/lang/si/lex_attrs.py:49-55 | spacy/lang/sk/lex_attrs.py:47-53 | spacy/lang/sl/lex_attrs.py:119-125 | spacy/lang/sr/lex_attrs.py:53-59 | spacy/lang/sv/lex_attrs.py:46-52 | spacy/lang/ta/lex_attrs.py:66-72 | spacy/lang/te/lex_attrs.py:42-48 | spacy/lang/th/lex_attrs.py:46-52 | spacy/lang/ti/lex_attrs.py:51-57 | spacy/lang/tl/lex_attrs.py:44-50 | spacy/lang/tn/lex_attrs.py:85-91 | spacy/lang/tr/lex_attrs.py:68-74 | spacy/lang/tt/lex_attrs.py:46-52 | spacy/lang/uk/lex_attrs.py:58-64 | spacy/lang/ur/lex_attrs.py:31-37 | spacy/lang/vi/lex_attrs.py:33-39 \u2014 \u0060spacy/lang/am/lex_attrs.py\u0060 and \u0060spacy/lang/az/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060spacy/lang/am/lex_attrs.py:88\u0060 calls \u0060lower\u0060 and \u0060spacy/lang/ar/lex_attrs.py:90\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":"spacy/lang/am/lex_attrs.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"942b2318d1103f411728f1ff2092850fb174f5cddb575a56d13148accca3cfae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 22): spacy/lang/bg/lex_attrs.py:76-83 | spacy/lang/cs/lex_attrs.py:50-57 | spacy/lang/da/lex_attrs.py:37-44 | spacy/lang/fr/lex_attrs.py:30-37 | spacy/lang/hi/lex_attrs.py:169-176 | spacy/lang/hy/lex_attrs.py:45-52 | spacy/lang/id/lex_attrs.py:41-48 | spacy/lang/lt/lex_attrs.py:1139-1146 | spacy/lang/ms/lex_attrs.py:40-47 | spacy/lang/ne/lex_attrs.py:83-90 | spacy/lang/nl/lex_attrs.py:27-34 | spacy/lang/pl/lex_attrs.py:54-61 | spacy/lang/pt/lex_attrs.py:105-112 | spacy/lang/ro/lex_attrs.py:29-36 | spacy/lang/ru/lex_attrs.py:217-224 | spacy/lang/si/lex_attrs.py:50-57 | spacy/lang/sk/lex_attrs.py:48-55 | spacy/lang/sr/lex_attrs.py:54-61 | spacy/lang/sv/lex_attrs.py:47-54 | spacy/lang/ta/lex_attrs.py:67-74 | spacy/lang/te/lex_attrs.py:43-50 | spacy/lang/vi/lex_attrs.py:34-41 \u2014 \u0060spacy/lang/bg/lex_attrs.py\u0060 and \u0060spacy/lang/cs/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060spacy/lang/da/lex_attrs.py:45\u0060 calls \u0060lower\u0060 and \u0060spacy/lang/bg/lex_attrs.py:84\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":"spacy/lang/bg/lex_attrs.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad2d42c5115bcbb18f6374ae2faa3a3b70bbffaeee9828106cb1a7f6ec52b3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spacy/displacy/render.py:120-127 | spacy/displacy/render.py:558-565 \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":"spacy/displacy/render.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acd684d7ca149fe51c2e0a60b25048d897cfe52bb5dec782707ce5dbaecbb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spacy/lang/ca/syntax_iterators.py:9-16 | spacy/lang/sv/syntax_iterators.py:9-16 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060spacy/lang/sv/syntax_iterators.py:18\u0060 calls \u0060add\u0060 and \u0060spacy/lang/ca/syntax_iterators.py:18\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":"spacy/lang/ca/syntax_iterators.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3ce7923c4811aba952aa8ba017da8dfb3e091e66f606a0149deba2f51702db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spacy/lang/pt/lex_attrs.py:102-110 | spacy/lang/zh/lex_attrs.py:77-85 \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":"spacy/lang/pt/lex_attrs.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d6e80c43543c2bd714d3f8d2d088f8f196571cf592acb8c0b264a52af07205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spacy/scorer.py:540-548 | spacy/scorer.py:629-637 \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":"spacy/scorer.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f658f894dc4213a7362505df53deb641def8fa812c4a529d7b5cbb9628f963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): website/setup/jinja_to_js.py:749-756 | website/setup/jinja_to_js.py:766-773 \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":"website/setup/jinja_to_js.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3148876f1323975a9be81196157f74e6ead71f1feee2436583d0994e3e41b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): website/setup/jinja_to_js.py:740-746 | website/setup/jinja_to_js.py:807-813 | website/setup/jinja_to_js.py:837-843 \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":"website/setup/jinja_to_js.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"b224678b443762a1bbf85a04a2740da193a98c99a466569542c1ddcfe294d69f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spacy/lang/el/lemmatizer.py:33-39 | spacy/lang/nl/lemmatizer.py:44-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/el/lemmatizer.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb15e8478690585ba5cd22cf9e1c03daac9b1704b7e873ca1cbf140ebfabe93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spacy/lang/it/lemmatizer.py:126-132 | spacy/lang/pl/lemmatizer.py:80-86 \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":"spacy/lang/it/lemmatizer.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f84445c1755d5a0a8068eebb3e6509aec13d416c54ab703b846107f3626f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spacy/pipeline/_edit_tree_internals/schemas.py:44-51 | spacy/schemas.py:63-70 \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":"spacy/pipeline/_edit_tree_internals/schemas.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0a397b331128989d4d9c9ef29c4f6fad203481fd8d31939a3216fdc193ebee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spacy/pipeline/span_ruler.py:400-406 | spacy/pipeline/span_ruler.py:423-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/span_ruler.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4744cf3d7c69fd91d75650f22b4d5120957008c1ca4adc4b265955a05d2dd0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spacy/scorer.py:296-302 | spacy/scorer.py:318-324 \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":"spacy/scorer.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"446a913109ef07bab45af2f903ab9a1292a94d8327af2eed66226f9cf8f2d742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 40): spacy/lang/ar/lex_attrs.py:84-89 | spacy/lang/bg/lex_attrs.py:76-81 | spacy/lang/bo/lex_attrs.py:54-59 | spacy/lang/ca/lex_attrs.py:47-52 | spacy/lang/cs/lex_attrs.py:50-55 | spacy/lang/da/lex_attrs.py:37-42 | spacy/lang/el/lex_attrs.py:82-87 | spacy/lang/eu/lex_attrs.py:63-68 | spacy/lang/fi/lex_attrs.py:44-49 | spacy/lang/fr/lex_attrs.py:30-35 | spacy/lang/he/lex_attrs.py:78-84 | spacy/lang/hi/lex_attrs.py:169-174 | spacy/lang/ht/lex_attrs.py:58-63 | spacy/lang/hy/lex_attrs.py:45-50 | spacy/lang/id/lex_attrs.py:41-46 | spacy/lang/ky/lex_attrs.py:37-42 | spacy/lang/lb/lex_attrs.py:27-32 | spacy/lang/lt/lex_attrs.py:1139-1144 | spacy/lang/ml/lex_attrs.py:65-70 | spacy/lang/ms/lex_attrs.py:40-45 | spacy/lang/ne/lex_attrs.py:83-88 | spacy/lang/nl/lex_attrs.py:27-32 | spacy/lang/pl/lex_attrs.py:54-59 | spacy/lang/pt/lex_attrs.py:105-110 | spacy/lang/ro/lex_attrs.py:29-34 | spacy/lang/ru/lex_attrs.py:217-222 | spacy/lang/sa/lex_attrs.py:116-121 | spacy/lang/si/lex_attrs.py:50-55 | spacy/lang/sk/lex_attrs.py:48-53 | spacy/lang/sr/lex_attrs.py:54-59 | spacy/lang/sv/lex_attrs.py:47-52 | spacy/lang/ta/lex_attrs.py:67-72 | spacy/lang/te/lex_attrs.py:43-48 | spacy/lang/th/lex_attrs.py:47-52 | spacy/lang/tl/lex_attrs.py:45-50 | spacy/lang/tt/lex_attrs.py:47-52 | spacy/lang/uk/lex_attrs.py:59-64 | spacy/lang/ur/lex_attrs.py:32-37 | spacy/lang/vi/lex_attrs.py:34-39 | spacy/lang/zh/lex_attrs.py:80-85 \u2014 \u0060spacy/lang/ar/lex_attrs.py\u0060 and \u0060spacy/lang/eu/lex_attrs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060spacy/lang/hi/lex_attrs.py:175\u0060 calls \u0060lower\u0060 and \u0060spacy/lang/ar/lex_attrs.py:90\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":"spacy/lang/ar/lex_attrs.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc7f623a4c7962bdc974304f55e6ac92de4c583d17fac9b820f9c2c2165c982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): spacy/lang/ca/syntax_iterators.py:13-17 | spacy/lang/id/syntax_iterators.py:15-19 | spacy/lang/ms/syntax_iterators.py:15-19 | spacy/lang/nb/syntax_iterators.py:13-17 | spacy/lang/sv/syntax_iterators.py:13-17 \u2014 \u0060spacy/lang/id/syntax_iterators.py\u0060 and \u0060spacy/lang/ms/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060spacy/lang/id/syntax_iterators.py:20\u0060 calls \u0060add\u0060 and \u0060spacy/lang/ca/syntax_iterators.py:18\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":"spacy/lang/ca/syntax_iterators.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8fb528a4c7ea1b26bd41983d843906186aa306e6e70f82f26571eb649dba70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): spacy/lang/es/syntax_iterators.py:23-27 | spacy/lang/fr/syntax_iterators.py:26-30 | spacy/lang/ht/syntax_iterators.py:27-32 | spacy/lang/it/syntax_iterators.py:25-29 | spacy/lang/pt/syntax_iterators.py:24-28 \u2014 \u0060spacy/lang/es/syntax_iterators.py\u0060 and \u0060spacy/lang/fr/syntax_iterators.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060spacy/lang/it/syntax_iterators.py:32\u0060 calls \u0060add\u0060 and \u0060spacy/lang/es/syntax_iterators.py:30\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":"spacy/lang/es/syntax_iterators.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21fac462db6b0a0cc1591f1972563532d1b70baa20ee73b819767ad96dc6bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): spacy/lang/ca/lemmatizer.py:20-24 | spacy/lang/es/lemmatizer.py:15-19 | spacy/lang/fr/lemmatizer.py:19-23 | spacy/lang/nl/lemmatizer.py:10-14 \u2014 \u0060spacy/lang/ca/lemmatizer.py\u0060 and \u0060spacy/lang/fr/lemmatizer.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 74 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"spacy/lang/ca/lemmatizer.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c34819c0d5cab5cf4c3f7b2591dc2f214a65d77a8d810e7e3f9dc9970e88eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): spacy/pipeline/attributeruler.py:122-135 | spacy/pipeline/entityruler.py:113-126 | spacy/pipeline/span_ruler.py:212-225 \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 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":"spacy/pipeline/attributeruler.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"97039fa7bcdca1ca86777430c191503620a934a31cf666e23bb7fdfe1d737fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): spacy/pipeline/entity_linker.py:169-174 | spacy/pipeline/legacy/entity_linker.py:90-95 \u2014 before extracting anything, compare \u0060spacy/pipeline/entity_linker.py\u0060 and \u0060spacy/pipeline/legacy/entity_linker.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 127 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060Vocab\u0060 names \u0060...vocab\u0060 in one and \u0060..vocab\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":"spacy/pipeline/entity_linker.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe8deb98b9c1543b066c9245cb49183469303f3122e423694ece7e55c063cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): spacy/pipeline/functions.py:190-196 | spacy/pipeline/span_ruler.py:501-507 | spacy/pipeline/spancat.py:657-663 \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 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":"spacy/pipeline/functions.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa5956d90c61cb13a884ddf0abd02841b01ac5aa920a07e47faa3508060d3c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): spacy/pipeline/textcat.py:357-361 | spacy/pipeline/textcat_multilabel.py:154-158 \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":"spacy/pipeline/textcat.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51fe9870b48e1d3c4b43a4cd175144cc640edf726277e32d892ea5a21e95eef"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_doc_gc: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Test is unreliable for unknown reason\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/tests/pipeline/test_spancat.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8884fb9883e7d717bd06311c4e4af632fd2967011287eba2746894708c2427d"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_simple_train: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Test is flakey when run with others\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/tests/pipeline/test_textcat.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c4e9714c619410a450c64aa09bf80a0d45018a98e30fdaa441ccbcd1a0839f"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_textcat_learns_multilabel: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Test is flakey when run with others\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/tests/pipeline/test_textcat.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"11321fea08bd0bc0d32b5cca2f27db38f92cd440d525125bedaff935b7c180c9"}},{"ruleId":"D13","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":"7f9cd6a3d627e89109829e24d16e31067ab220f5eb2c6734a7947b62bcbdeb14"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"0cbd1f19374f6538bbf7181962a7ce15622de46e0f5e495914f7d561f61a6080"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: spacy/schemas.py, spacy/lang/ja/__init__.py, spacy/lang/ko/__init__.py, spacy/__init__.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"517960043b2a02e94086084e1a10eaf896af240f401308b733faefc866d1882c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Adding this back to prevent breaking people\u0027s code etc., but \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":"spacy/language.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9513d43e7c70f6aae21dfa0dc17cf157acff46b4f134378d50c18e8361a7c8f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Having trouble with contextlib \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":"spacy/language.py"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"95468ef46306660dc7e282f74c6b336e8da4ef260d72305f0499f1e8a00709a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: import spacy_lookups_data instead of going via entry points here? \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":"spacy/lookups.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d40e304f1ba2203f23c5cc3995e70914cb11a0d23916b182530a67f513fed3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: include schema? \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":"spacy/util.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c91ea35f84cffea7c19579a018cb89c0daf7abbfce9c9872384217af089bd7d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Is this correct? Does this matter? \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":"spacy/training/initialize.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"358abcd8eb1361da1f808faba41bbe0c25b3d82804d236fdce4d6874b74c63f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We shouldn\u0027t be getting these malformed inputs. Fix this. \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":"spacy/training/iob_utils.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d4e3f30d003128ea86490180e46f69344e5de5416d3f2f3c29499b6890e1ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: refactor this so we don\u0027t have to run it separately in here \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":"spacy/training/loop.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bffae8b80c5b8324daca4223c82953fd04c0b570c57ba2f1e11667536fd5ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: move this to logger function? \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":"spacy/training/pretrain.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7838a40c4e6e2cbf6af84d05fe6e33ce7846a5bd6854b06a665a2b079591cf3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: I think we probably want this to look more like the \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":"spacy/training/pretrain.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd45779399bbe9f6686465c85c58ed08e3a17dceecbfe1c829ba5a70fdfaca0"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to enable autocomplete on custom extensions \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/tokens/underscore.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fa594e70f975c797e79ff75f5b7b01f3069aee5b6f54e19634a8f9798468fe"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to port over docstrings of the original function \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/tokens/underscore.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90b38d655013a326809e80608becacc4bf665ae525cd18977dee94c8c4d47cc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add more tests and also check for GPU with transformers \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":"spacy/tests/test_cli.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ef20159259f16a77b391bb493512016ad2193595713064114fba13c0e80845"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix so that the following test is the actual behavior \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":"spacy/tests/test_language.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0fff3de7ea598dbc3c1dc9d10a9b2064a9cc0a0c1a6d10f444d30eb76f0b46"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: explicitly check for lack of a warning \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":"spacy/tests/serialize/test_serialize_span_groups.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bbab09692e2fbb58a7fbe8ee29190643154138500d0d1e44c29cb4e46662f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: below assert is still flaky - EL doesn\u0027t properly overfit quite yet \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":"spacy/tests/pipeline/test_entity_linker.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aee1af09d407cfa994c59cc335e887b1467f595cec3149bc3dbcb39328da92d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: test for logging here \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":"spacy/tests/pipeline/test_entity_ruler.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd789c413393d979628f169587a09a8c0d364b7dee839f6bc66b62b2d127702"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: fix this \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":"spacy/tests/pipeline/test_pipe_factories.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"764327dd64338758a715dbc4ac653b58a08e3842f3aba851a28874752df1c34a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO figure out why this is flaky \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":"spacy/tests/pipeline/test_spancat.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40544c17bd81fed706c0cfef5576123abde900e3d54358025d69a27aa5ffae0"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX This fails with length 0 sometimes \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":"spacy/tests/pipeline/test_spancat.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2e9c281b8d279abc9ce90cf856479726fd653a81442063869720a2fddd1ea5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: should this warn or error? \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":"spacy/tests/pipeline/test_tok2vec.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1dd0934ba57bb70468a1615b753a8ce533753a802d1d6ddbe57785283982b8b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO add test cases with valid punctuation signs. \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":"spacy/tests/lang/hy/test_tokenizer.py"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed88d1b4a69ccbcf1777ba1fc174be617a681fb3872218715ecfbbd24c25e5b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Test more of these, esp. if a bug is found \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":"spacy/tests/doc/test_token_api.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3433e7560d7ec73cdc6f02221ba7929f0e12dd92f565752cf4172bbe4bdee98e"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX In order for size estimation to work, there has to be at least \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":"spacy/pipeline/entity_linker.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1e4c8d194a2833bde867980c7db66424208f52d564167e54efff6dfb140c37"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Looping through each entity in batch (TODO: rewrite) \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":"spacy/pipeline/entity_linker.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb8b15c5f183995738229f7e15e5710c807d20c54f6ec7c871a720fcc8efd50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make stateful component with \u0022label\u0022 config \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":"spacy/pipeline/functions.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e76f7ba8a962601f071674461bf8525b5fe3e5eaa1483b07ad4585ff37e3e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \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":"spacy/pipeline/spancat.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9aef7beaac0905335903d5b87e15cc49e2a2d9d741a053403682c9d2c826c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \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":"spacy/lang/lb/tokenizer_exceptions.py"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad513ef670455fbda7f30154701468848d921aef1aef489ddd82318467e6b662"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Looping through each entity (TODO: rewrite) \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":"spacy/pipeline/legacy/entity_linker.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb6168188f92a072795efd5c3fbd39b4a846d77a98f3f2dd1af74e61fe140c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: more options for UNK tokens \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/ml/staticvectors.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"051f9def22bb7c403c025236b8b0c4b44dceda73d102d2d6f51f4c3f85c4521c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: glorot_uniform_init seems to work a bit better than zero_init here?! \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":"spacy/ml/models/tagger.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ec35461385dc12608560eb4c1c7eef80d85bcd95cb3e4a755fdf0a3c04df29"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: build the model with _build_parametric_attention_with_residual_nonlinear \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":"spacy/ml/models/textcat.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff0818a716eb8c708ec0211623f8973897f6ddee5ec6da7d0f84bc421fb4d88"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: ## TODO: Look into systematically handling u/v \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":"spacy/lang/la/tokenizer_exceptions.py"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"da837496d7eeed0105ae8553a7672bef2225a577591152f2e5d253b82f771d3e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this can probably be pruned a bit \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":"spacy/lang/ja/syntax_iterators.py"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec1ae47428302ecf9ed8e4fe2ba1b81e5345a0c2d4af6ed724e2ce24fde9751"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX ADJ if alone, AUX otherwise \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":"spacy/lang/ja/tag_map.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94f061a777820b63b927e3bc5a3f106dd6c4539f27856eb315e391fed1471f3"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX: might need refinement \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":"spacy/lang/ja/tag_map.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"068e32b8d67d3f43d36303424c11b6d8d0b874b0acd3860cff8aa2a12e963f69"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX see \u540D\u8A5E,\u666E\u901A\u540D\u8A5E,\u30B5\u5909\u53EF\u80FD,* \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":"spacy/lang/ja/tag_map.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"425bb8e04e6bd579ad7d6ad6bb1a3eed7450b18a68479a765a0c0ff13eb772cb"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX VERB if alone, AUX otherwise \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":"spacy/lang/ja/tag_map.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca532fcde3a351e329dd2a7fe8ef39b044fca49306172a829d12b0edbd5d9d5"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX: sometimes VERB in UDv2; suru-verb noun \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":"spacy/lang/ja/tag_map.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"836f6fbf443aa1d57b5859fb8ff7848192650595deadeafb85f1f3dce079275f"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX: sometimes ADJ in UDv2 \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":"spacy/lang/ja/tag_map.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"810dd96a97d931baac334882b5cfdbe4a5d513aa4b04d456156ad2706dfae617"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # XXX this has exceptions based on literal token \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":"spacy/lang/ja/tag_map.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"922229886929bb9a3b76f3c3221015cfa7b852e711836244a6f24cdc111c7d98"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: lookup is actually required for the genitive forms, but \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":"spacy/lang/ga/lemmatizer.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a484c72bd41c9121f75ca72b7f2ff1ceb50c7b95303f61d45be7e1711df8c3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: improve logic to handle simple types like list of strings? \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":"spacy/cli/_util.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1953604b165f796095c8a74b4ecb4d5bbe033f2b692edc7599114722f6ee8e31"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make this feedback more fine-grained and report on updated \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":"spacy/cli/debug_data.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8e4ffd2ab973126a0a7de61e37d98ccb19b6042ec13782d725da65925ae4ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: What\u0027s the solution here? How do we handle optional blocks? \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":"spacy/cli/pretrain.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ddee3ece74578dc33da59da277b77c570a83339579114323ebfb2a2fa0527a"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060setup.cfg\u0060 makes this repository a deployable product (line 73)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"setup.cfg"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23d57b54026de9f5da783310ac1a4f7fff20b7661517165a45078cc659192ab"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (88477 LoC, 444 module-visible types across 94 directories) overshoots its size bounds. 1 of 3 build unit(s) (Python, npm) overshoot their size bounds, lowering Project Cohesion to 3.3/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4842ad367a78941ccec73d857627e21e838b932492f4ae73cdd87ada79a9f00"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 93 % of calls cross a namespace and only 35 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c9fab46b026aad193f65cfd562bca7973b6071596af52946fafb7e5f80ee061"},"properties":{"commitSha":"86277d4ef2efb80f8a30559700c9e724a1c08aff"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7652f7205377ca02932c6bd3b0e3f7eacb1cc2d717cd294f88ab33dbb7158d4e"},"properties":{"commitSha":"bec546cec0aac4f344b739e266a5bcb93399ba64"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"34a4be1c03dd0359d6a547b8cd7f9b530e5c88d734793c2d8a90a7528e1e44b4"},"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":"ccc36c566a901115864d4b1cca6abfb7e763474bd607dd74235825679b6d6a75"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"ce35959b6e5c50a2ce0ace1076f0914f08c2a23c65c84382a0385767a371cebd"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"0224b4f026ce31131bf1ebc271b761cff02088a08e17cb39eede39fcaee134d9"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"bfc5c64a02c45fbddf37d3e5b95e92dc9b752767644975f2de735746204bf639"},"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":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/id/_tokenizer_exceptions_list.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2915d81db94677f0727fb3c79598985a443112d52e37989bcfc97a437b5a2a6"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/scorer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f1de30119110a302023d14c8f16e04b1f58e957bf9a9350200482a2c784e86"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ms/_tokenizer_exceptions_list.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3de24df7707bb750a3c0b5da122d684c97203869190e2a2ae6547d01283bd00"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ru/tokenizer_exceptions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a44c05ce80be1afb11887a0f56fa5ec4a635e03526eea0daf4ee9cce3b9f019"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/gd/tokenizer_exceptions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e533148027e4c3811254ad2713ea084c70b82b414a0e1048329042a07d7cfc9f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/vi/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c8f2ca7d13a28d64bb3ca53990f276376cd149684f32497aaefbf021838071"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 54 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: spacy/pipeline/span_ruler.py, spacy/pipeline/legacy/entity_linker.py, spacy/lang/ru/lex_attrs.py, spacy/lang/tt/stop_words.py, spacy/lang/es/lemmatizer.py, spacy/pipeline/edit_tree_lemmatizer.py, spacy/pipeline/attributeruler.py, spacy/lang/sl/tokenizer_exceptions.py (and 46 more) (60 orphaned of 161 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 161 of the 507 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/span_ruler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56494a95f615f50a7ddcf2b4ace8284fc6069ec17136d9ec2cac307075b8bb13"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/legacy/entity_linker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db32729887acc2aacbe9e0e6213390f647848c6f33403f2bf3d92fd7d2227928"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ru/lex_attrs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00abd9782754e9b99dfbbf0a2b1f3ba59f7b9f0bc1554b37c63cf7c308ee2544"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/tt/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1c934e95552431eab901419cf9f4dc017a8001e22d811d5969e5021c211bd6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/es/lemmatizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e55bed93a3007a244cb0614afe9f200e6a2e9c87aaa9b4e5150b40435ac505"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/edit_tree_lemmatizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"449dbb9e75146ab96185a07e14842412f18fc33a6082dc55558b794ddecd8699"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/attributeruler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a5f0c7af325e393eb0248221f072250c7cb2bef6a81ce5588a5df0c7db97ab"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/sl/tokenizer_exceptions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33ebddddd159cf81fb3a7c00d13441cb8d53de49c75a56c42c4a4eb84028495"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/span_finder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3acad3ace3162dc953526ab93f18b0d408398d601363735f77583bea424a572"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/training/converters/conllu_to_docs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0446a4f0a93fe64c831eb59902bd5c82c3b7ce7ee62ecb891362bfd646c3bc9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/find_threshold.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b602c3d75d1eb60a78dc1bb7139806ad1c9ab100694be61dee4c9c842a88acf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/sa/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"952d9b1d1742ec9633cfd5fa66604dd88c9aa1955cb45508dde0b8c949258da3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/grc/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"972da3d7f36d2bf15b40b83d5a941d10ccf410cd6cfeb2799e7cda9a6b6ddf85"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/ml/models/multi_task.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed8393202985806db606adb00eaae1ade58caf816294b5b5fb192d76cf7481e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/bg/tokenizer_exceptions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9194c2ea62ae91d5f48699cfce01b2fb9f174c3f610b427919c1c829ec38d0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/mk/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c227400cdec8137b309694f38597d493033efcaf28f374a8b0c430f3658b24e9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/debug_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"768b3c26dd0f59cd141644a83d153acbe45049df5d8d83d14b8e7fcb1365151b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ru/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad3efbc64d17cc743bfc15707ccaba84d2752765ec4f5ac7f4649841ec81ee8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/el/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa3ab10f0109925e96bc84e3553d8cd715a7489141babbc4c31f026ab07f409"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ne/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f413d10914f4402bc042e1b56a38e07adf4f1893dcdab40bffbe1c16a5714f92"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/ml/models/parser.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edac74c7cccaf68a5316923281843e9b1f19f7beeb79acbd8810c2a8c26369dd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/grc/tokenizer_exceptions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"950d32d9e40e741c07331c119071b5f8aa1792489a37d0a8a1da77a1b9598918"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/grc/lex_attrs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9a26869232293c676226825c1fcfcf6aea14b2137ca227ebbf26d4958508a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/sl/lex_attrs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44321f91feebca731cfb48e8c5380f694dbaaae1ee8ce21c68a492067ff01be4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ms/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c770738355d35adfdfa6f6b0bda920cdee20c1c1b20fbcd52c0d68fc01d040f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/tr/tokenizer_exceptions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"706cd73818a8a639769b7a8ec81b25e2f22a3e1f532ffc6864aab833570e439d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/ml/_precomputable_affine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"175ce1ed3dd8ebb9bf52d63c6636b910e0d387fe445695eb144b683c5292626e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/benchmark_speed.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6bdef6b24a2ff571f13e1c9683a56da8bf95d2fee47046935d8aafe264b9a6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/pipeline/textcat_multilabel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e604cafd04af73f1a9aacc56f5a605e5519f13dbe21dd9e51cc3f9f6e91848"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ga/lemmatizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c43c73c6335d9c9ccf7509b5e966f26c2b0f584ff1e358eea2b71ca883cacc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/uk/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16d65d75e83bbdc16425367bc5da043600d68a5454af0d8aefbc07d0576e842"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/apply.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb6a08f5c5283780d3ffa4ea20440aa9ac8e6a0ebc3564736a5c005a5af04bb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/it/lemmatizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be315029c3466e5a4ef36b5d1d662e50bd120f090ab8a3348c0e46c1a644dcca"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/sa/lex_attrs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1773270209a3317a5a793bb3d0afb53ad1be2de15540fb5d96f04da36eba566"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/ml/models/entity_linker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acdc6632cacdaf1a3ca218e410960e1ff24f4f0256dd15fd18f4ba3cb18f940f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/sr/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec8f84bcdd0244f3e05283ee5939eec5ebbe34fbd3193c463cbc8bb7306cc2a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/debug_diff.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b202b7eea6e0c784cea4eb69709108023e652ddcdd8e3ada3b03b7f4fb265dc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/ml/callbacks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3d8d79c2a39f26679bd652cf01ba5d55671572dc364a2984f430287e9e74c4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/mk/tokenizer_exceptions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"016911959a3d10dce107cc2c81e762ba8f41c2702a4ae46466d8099bdb394d36"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/da/lex_attrs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70271857c21c688791343c0d8a9b0a8a3b8a3da73e6e64018fd544a9b79a2ca2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/pl/lemmatizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c377725a037143dab87511153c23433c589ea646ebbde197eeef8b5de283fbf9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ne/lex_attrs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b097a07d01309cf2facc662f73c93dcc2582081757c800addaa405adef4b1bab"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/sl/punctuation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ed474acb03fb4cd073d83e1338c14e3738534cb7d14289e27b330188b652a5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ar/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87b36f790d831a32d6fb6d9c57ae371ce23b88601b66a25fcf199bf0bd3926c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/ro/punctuation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8345f357e76d343bd59aa1b1918f488783f7f2da9e3c390eefb4e9ce87ed6ee"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/it/syntax_iterators.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0437d19435c57301004aafcfac96319abb19ae7cf02087f67aeed0e704627aae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/nl/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5586cf7d375276559766ef85fe1665fb13c8e7a79828529eaf49125a1b91bea2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/pt/syntax_iterators.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8938e8916f18dbb4bf787cd8aeaabf0a98723177c69a03b1a5a950fa1f3fb088"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/nl/syntax_iterators.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdf8fa19565556989109eab92db302eac7648ac74338dadd5e166ff0c2808fb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/assemble.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe3a726d1e8ecb0861bc1214d8221564b65e979e828b973d6d17faeb782c4c9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/lg/lex_attrs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fcf04aeacd52ebe16638f7e4729fff911a4d7785a8f3dc3b1a29e08f0323db"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/yo/lex_attrs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"924d7d2f28488d357e245c492831534e9e3293ae46c3560cba4a82f18564e938"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/mr/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfc97a8216391f1525fe07fcbc83c039a9f2e48bf0c8fce0cabc9aec786ec5e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/lang/si/stop_words.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1604b9f9d9a62d90957d79b1d8f37b429f16b74b8c03f461d020f91f276ef6ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README.md names Python 3.7 or later, but setup.cfg:34 requires \u0060python_requires = \u003E=3.10,\u003C3.16\u0060: the package does not install on Python 3.7. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85864071a30ab325207b0475304e4f6aa1b79c8e2996b50e4173a6d35a328ea"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: website/docs/usage/index.mdx names Python 3.7 or later, but setup.cfg:34 requires \u0060python_requires = \u003E=3.10,\u003C3.16\u0060: the package does not install on Python 3.7. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/docs/usage/index.mdx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9469e794ac2141f403d56d91bd9467e8f2ea763e605255ccb45f08f95bb9a19"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: website/docs/usage/v3.mdx names Python 3.6 or later, but setup.cfg:34 requires \u0060python_requires = \u003E=3.10,\u003C3.16\u0060: the package does not install on Python 3.6. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/docs/usage/v3.mdx"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba90e88c8bf1d0474c454df1473763671e67cea806bac448fb5b871854bbda42"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060website\u0060, \u0060website/setup\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"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 7 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/spacy_universe_alert.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060website/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/package.json"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fce86b2103c4f2843d013c58b5c7f061667466a865c9a8b7a65b915759d9d19"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"Changelog looks stale/thin: The changelog this check read carries 0 versioned entries, against a bar of 3. Counted as either the distinct \u0060x.y.z\u0060 versions it names (a link\u0027s target is not counted) or its version-shaped section headings (\u0060## [1.2.0]\u0060, \u0060## V14.x.x\u0060, \u0060## Updates in 8.0.x\u0060), whichever is the larger \u2014 so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read \u2014 release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository \u2014 are not counted here, and this row is about what is re-findable in the tree rather than about how often you release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9a74c249fe67853238d9c15085f7f97d31f51bb82455046aa10c2cef82f67b8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readdirSync\u0060 in \u0060loadFolder\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/pages/[...listPathPage].tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb15ae2dacb8aafa08972d552539c45a156fe9927deb9c42faf899c55fbc4589"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/pages/[...listPathPage].tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"644e95c8f833c61663cf051a5a78420e86f5a9de64e31dcec4a1cfad9f765d16"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/pages/[...listPathPage].tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a92cb60a5a52b4bf58fdeceefa0eabb0cd9c0d813fd8edfd30142978f468bb7"}},{"ruleId":"S1","level":"note","message":{"text":"Security headers incomplete: Set: X-Frame-Options. Missing: Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options \u2014 the four headers that carry the points of this card\u0027s security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each. (\u22121.5 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"netlify.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3182fdd353cebd1ffcc8701615d873fe907530c44d8c6141925b0a123424ef1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isClient \u0026\u0026 document.queryCommandSupported(\u0027copy\u0027)\u0060 appears character-identically in 2 files \u2014 website/src/components/copy.js, website/src/components/quickstart.js. 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":"website/src/components/copy.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19ee40343b6912f88da8e677a7cae959fcbc83e5dd731bac73f85fe3c41aba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022lemma_rules\u0022 not in self.lookups or univ_pos not in ( \u0022noun\u0022, \u0022verb\u0022, \u0022adj\u0022, \u0022adp\u0022, \u0022adv\u0022, \u0022aux\u0022, \u0022cconj\u0022, \u0022det\u0022, \u0022pron\u0022, \u0022punct\u0022, \u0022sconj\u0022,\u2026\u0060 appears character-identically in 2 files \u2014 spacy/lang/ca/lemmatizer.py, spacy/lang/fr/lemmatizer.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":"spacy/lang/ca/lemmatizer.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f286b4cffbcf7a03e355f0972a1f4fdc1bcd6661f9914c1e772f0f902d14592"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(proc, \u0022is_trainable\u0022) and proc.is_trainable\u0060 appears character-identically in 2 files \u2014 spacy/language.py, spacy/training/loggers.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":"spacy/language.py"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"be50118d0e7805518bf6b5e774b67dac63914900cbf1691337bf33aabd07a45d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022cfg\u0022) and self.cfg is not None\u0060 appears character-identically in 2 files \u2014 spacy/pipeline/entity_linker.py, spacy/pipeline/legacy/entity_linker.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":"spacy/pipeline/entity_linker.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8bb0875adeea78877d4b18031775e1fb1fb84f63e2c99c173ef94da83187a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060head.dep == conj and head.head.i \u003C head.i\u0060 appears character-identically in 10 files \u2014 spacy/lang/el/syntax_iterators.py, spacy/lang/en/syntax_iterators.py, spacy/lang/es/syntax_iterators.py, spacy/lang/fa/syntax_iterators.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":"spacy/lang/el/syntax_iterators.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"481f18e5e24a86b9b9ffb40cd19ee0ae8b93827c5ad34a9f69d16efbf9bd8e6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060head.dep == conj_label and head.head.i \u003C head.i\u0060 appears character-identically in 2 files \u2014 spacy/lang/fr/syntax_iterators.py, spacy/lang/ht/syntax_iterators.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":"spacy/lang/fr/syntax_iterators.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf5a4ca90508d99413182a4c0600ca786bf9067727184ea5864c4156e4a5181"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060right_child.dep == det_label and right_child.pos == det_pos\u0060 appears character-identically in 2 files \u2014 spacy/lang/fr/syntax_iterators.py, spacy/lang/pt/syntax_iterators.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":"spacy/lang/fr/syntax_iterators.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"da34e2a19440c50911a8bde47cad58978699ecd485edb5a413ffc51f3e9d867d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060str(config_path) != \u0022-\u0022 and not config_path.exists()\u0060 appears character-identically in 3 files \u2014 spacy/cli/assemble.py, spacy/cli/pretrain.py, spacy/cli/train.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":"spacy/cli/assemble.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7204e9dde2cf829f98d2b5aaa24bd15a162877a02fb70a9cec955c5dfd6dad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060text_lower[:-3].isdigit() or text_lower[:-4].isdigit()\u0060 appears character-identically in 2 files \u2014 spacy/lang/az/lex_attrs.py, spacy/lang/tr/lex_attrs.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":"spacy/lang/az/lex_attrs.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"12606bbb15c2ad4aa1cd66d2a0899afd6b833f9c0f2b34b69b6e7f80316bceeb"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060walk_dict\u0060 is public and takes \u0060node: Dict[str, Any]\u0060 from its caller, and it calls itself at line 1630 (\u0060walk_dict\u0060) with a piece of \u0060node\u0060 \u2014 and nowhere in \u0060walk_dict\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 \u0060walk_dict\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/util.py"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8458229773a08dde6f5d31c38f43ed7dcf59725d49cac8058dc0d7b06455a48"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 99 is called with an argument built by \u0060list(env_overrides)\u0060 (line 99), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/cli/_util.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecc928a1d683050757acec4dbcedbeea31ab7223dbb6b3955299a517b3ea635"}},{"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":"setup.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e866bb27ad9ad68292f0034c6f9cb9f982f1fc77d1448218591fc5f8854cba0"}},{"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":"setup.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3baa56d07f066dac19463f76f37d7f3808e9a0b45f83e5dfaf4608e74ae18c"}},{"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":"spacy/util.py"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"a906224b902108d77a504b52f08c81bd1081fe9b2930cc650ccae501552e2c2e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spacy/util.py"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bc5f807dcaf6e89d2dbe11f2765d795fdb038f9b2087b2cc57c66801d163f7"}},{"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":"spacy/cli/info.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"51344b183d03761155e5265ab4e003a0aeab873d22daf9ada158d2258c9a5cf2"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 0/1 of this repository\u0027s type-checking configuration(s) turn on strict null checking (\u0060\u0022strict\u0022: true\u0060, or \u0060\u0022strictNullChecks\u0022: true\u0060). A configuration that states neither is counted as OFF, because off is tsc\u0027s own default; a solution-style one whose \u0060\u0022files\u0022\u0060 is empty and whose \u0060\u0022references\u0022\u0060 point at other projects is in neither number, because it checks no source itself. Where it is off, \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060: passing a value that is null compiles silently and throws on the first property access."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.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-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"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.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":"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-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":14,"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."]}]}