{"$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":"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":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"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":"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":"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"NERLoader._load (cyclomatic 50): NERLoader._load has cyclomatic complexity 50 (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":"davarocr/davar_ner/datasets/loaders/ner_loader.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f7a8276fe9bba9c835f55c8e81303c65af4c267c8050abe8689a1a19d0d2d0"}},{"ruleId":"D1","level":"warning","message":{"text":"generate_html.area_to_html (cyclomatic 40): generate_html.area_to_html has cyclomatic complexity 40 (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":"davarocr/davar_table/core/post_processing/generate_html.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8d67e89f5ebc25520c6ba13cb6a3b01be757497dc6ac555061788261abd620"}},{"ruleId":"D1","level":"warning","message":{"text":"DavarRCGDataset._filter_file_to_list (cyclomatic 34): DavarRCGDataset._filter_file_to_list has cyclomatic complexity 34 (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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"052df4ff1c5e266e9c5d16e35a31a17eaf11bb1eb761b0c0e2261bad7a83cbc5"}},{"ruleId":"D1","level":"warning","message":{"text":"davar_loading_json.rcg_json_dataload (cyclomatic 34): davar_loading_json.rcg_json_dataload has cyclomatic complexity 34 (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":"davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf3d3c03a61a9eb03f53f6b513e75c6f0d9fdd862e4b5b26201bb3ca7fb6f30"}},{"ruleId":"D1","level":"warning","message":{"text":"hmean.evaluate_method (cyclomatic 30): hmean.evaluate_method has cyclomatic complexity 30 (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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20d929add71cc8bdf021c0cd6738e3cf7c8c2b7f73a4bc0640113c02099e6f7"}},{"ruleId":"D1","level":"warning","message":{"text":"davar_loading_lmdb.rcg_lmdb_dataload (cyclomatic 28): davar_loading_lmdb.rcg_lmdb_dataload 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":"davarocr/davar_rcg/datasets/pipelines/davar_loading_lmdb.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba76d2b34d30db229643c95c99c357c6be805ee2679d162c2926ebf6f8bc35b"}},{"ruleId":"D1","level":"warning","message":{"text":"DavarRCGDataset.evaluate (cyclomatic 27): DavarRCGDataset.evaluate has cyclomatic complexity 27 (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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba5ab593b1578e98a473851842ad334b728d4cd3574f6404f4e874328ba6f06"}},{"ruleId":"D1","level":"warning","message":{"text":"TableRcgDataset.evaluate (cyclomatic 26): TableRcgDataset.evaluate has cyclomatic complexity 26 (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":"davarocr/davar_table/datasets/table_rcg_dataset.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b97e23c74c02aa068de6c9f90c80a9b0726b86eae15c10f030fec5b45474228"}},{"ruleId":"D1","level":"warning","message":{"text":"DavarLoadAnnotations._load_labels (cyclomatic 25): DavarLoadAnnotations._load_labels has cyclomatic complexity 25 (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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d704d1f60909fad98861b49c3a1c0ab035c2ae8874e9b2a00ad07ee29035ae"}},{"ruleId":"D1","level":"warning","message":{"text":"DavarLoadAnnotations._load_multi_labels (cyclomatic 25): DavarLoadAnnotations._load_multi_labels has cyclomatic complexity 25 (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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fd640ef21f424f2e7c264b159bfecddb2907a25f3f9f058c8ce4f4670ef24b"}},{"ruleId":"D1","level":"warning","message":{"text":"MMLALoadAnnotations._load_labels (cyclomatic 25): MMLALoadAnnotations._load_labels has cyclomatic complexity 25 (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":"davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc85b289ddce43ce2b11185f94b02e723ca17bbea59a07fc4c724874615207d8"}},{"ruleId":"D1","level":"warning","message":{"text":"bbox_process.recon_noncell (cyclomatic 25): bbox_process.recon_noncell has cyclomatic complexity 25 (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":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"08921166f9e4069de0f744872d4742761b9fe94c4b8cfbf410e8a9a96fe60a0d"}},{"ruleId":"D1","level":"warning","message":{"text":"CTCLabelConverter.ctc_beam_search_decoder (cyclomatic 22): CTCLabelConverter.ctc_beam_search_decoder 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":"davarocr/davar_rcg/core/converters/ctc_converter.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e5a45d7d11f2d35f26d918aab6199103025f202cc609be6689e76f52e03466"}},{"ruleId":"D1","level":"warning","message":{"text":"train.train_model (cyclomatic 21): train.train_model has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/apis/train.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"562fe46d27ad8c831db9642545f556a837b28fc3f26176f51c131008b72a30bb"}},{"ruleId":"D1","level":"warning","message":{"text":"DocBankDataset.pre_prepare (cyclomatic 21): DocBankDataset.pre_prepare 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":"davarocr/davar_layout/datasets/docbank_dataset.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1841f25ed72209d41b98051f886d6927aa985a50e4cdaabb79c6a9c8229df5"}},{"ruleId":"D1","level":"warning","message":{"text":"builder.parameter_align (cyclomatic 20): builder.parameter_align has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/builder.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f2de8d194f4ac33e96d22c3b29102cf28a01222000388be5e0cfc8ec7a9678"}},{"ruleId":"D1","level":"warning","message":{"text":"RandomRotate._rotate_img (cyclomatic 20): RandomRotate._rotate_img 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":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"532a75bf715d5a56b2de928b4de050afb7e4ea4834f31858b8758b79d7ce3a3c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChargridDataGeneration.__call__ (cyclomatic 20): ChargridDataGeneration.__call__ 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":"davarocr/davar_ie/datasets/pipelines/chargrid_data.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e3c0aaa144c86f4c12bdd7321014117ee7b46d7bea88c435dd984f2b9abe43"}},{"ruleId":"D1","level":"warning","message":{"text":"TransformersConverter._labels_convert (cyclomatic 20): TransformersConverter._labels_convert 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":"davarocr/davar_ner/core/converters/transformers_converter.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8e4a8ffbeac66455a76ce4b9d51bc0095ec01fda57d75404c2e74b318d67ff"}},{"ruleId":"D1","level":"warning","message":{"text":"DavarRandomCrop.__call__ (cyclomatic 19): DavarRandomCrop.__call__ 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":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b489bc9dc11930b432e2ed5a512b6c6917319f19218dc961dbb77b08e4a607ab"}},{"ruleId":"D1","level":"warning","message":{"text":"ConvFCBBoxHeadWGCN.forward (cyclomatic 17): ConvFCBBoxHeadWGCN.forward 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":"davarocr/davar_layout/models/heads/convfc_bbox_head_w_gcn.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6036acdd460058bb3e8704bfe83a5006a18ee5b4b8aac9950e34af9f4724ded2"}},{"ruleId":"D1","level":"warning","message":{"text":"SpotResolutionDistillation.generate_lr_pair (cyclomatic 16): SpotResolutionDistillation.generate_lr_pair 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":"davarocr/davar_distill/models/distillation/spot_res_distill.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcf567273cecde54a68e3309b8957c93d57631cf2612c342067e9eb1b7101c1"}},{"ruleId":"D1","level":"warning","message":{"text":"PublaynetDataset.evaluate (cyclomatic 16): PublaynetDataset.evaluate 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":"davarocr/davar_layout/datasets/publaynet_dataset.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17ecc86f4e22a975eece21172b55c1ff1a2ad5286e64b0c5b19e70066f27703"}},{"ruleId":"D1","level":"warning","message":{"text":"TransformersConverter._labels_convert_ori (cyclomatic 16): TransformersConverter._labels_convert_ori 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":"davarocr/davar_ner/core/converters/transformers_converter.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b76f0d82e5d13e3d157a6de8db1b7bf93c9c770d88f0cbc200e5eb54d322706"}},{"ruleId":"D2","level":"warning","message":{"text":"NERLoader._load (cognitive 212): NERLoader._load has cognitive complexity 212 (threshold 15). Drivers by points: if/else 38 (150 pts), loops 13 (58 pts), boolean chains 4 (nesting depth added 157). 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":"davarocr/davar_ner/datasets/loaders/ner_loader.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fac61857452b4dcb3431c6e4216774af35c2f8ad37a0b6f6992560c80b05a0"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarRCGDataset._filter_file_to_list (cognitive 114): DavarRCGDataset._filter_file_to_list has cognitive complexity 114 (threshold 15). Drivers by points: if/else 25 (94 pts), loops 4 (12 pts), error handling 1 (4 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 82). 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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"60190743696caba2aee6538f79645b6dd8743a3d45b40c1953dc5a21fc266225"}},{"ruleId":"D2","level":"warning","message":{"text":"generate_html.area_to_html (cognitive 84): generate_html.area_to_html has cognitive complexity 84 (threshold 15). Drivers by points: if/else 13 (44 pts), loops 6 (19 pts), ternaries 4 (16 pts), boolean chains 5 (nesting depth added 56). 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":"davarocr/davar_table/core/post_processing/generate_html.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0b2d044108172ffb6f384286b9117efd86b54406aa9434bbedf62137b099cc"}},{"ruleId":"D2","level":"warning","message":{"text":"TableRcgDataset.evaluate (cognitive 75): TableRcgDataset.evaluate has cognitive complexity 75 (threshold 15). Drivers by points: if/else 20 (57 pts), loops 5 (14 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 48). 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":"davarocr/davar_table/datasets/table_rcg_dataset.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd0e625718ca89e0fbeabd61d1faed0de340aabf88a21c91adbd159b3087555"}},{"ruleId":"D2","level":"warning","message":{"text":"hmean.evaluate_method (cognitive 73): hmean.evaluate_method has cognitive complexity 73 (threshold 15). Drivers by points: if/else 9 (31 pts), loops 10 (27 pts), ternaries 8 (13 pts), boolean chains 2 (nesting depth added 44). 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde30b85a1b72cadf96921b7b09a1877f332dc0be25641b41453cebe75331908"}},{"ruleId":"D2","level":"warning","message":{"text":"DocBankDataset.pre_prepare (cognitive 66): DocBankDataset.pre_prepare has cognitive complexity 66 (threshold 15). Drivers by points: if/else 16 (39 pts), loops 6 (25 pts), boolean chains 2 (nesting depth added 42). 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":"davarocr/davar_layout/datasets/docbank_dataset.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"771bb02942aa7e4e4e0ff3e50089ee52cae1ede4c26c6368759a199fd6c818de"}},{"ruleId":"D2","level":"warning","message":{"text":"TransformersConverter._labels_convert (cognitive 66): TransformersConverter._labels_convert has cognitive complexity 66 (threshold 15). Drivers by points: if/else 15 (42 pts), loops 7 (23 pts), boolean chains 1 (nesting depth added 43). 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":"davarocr/davar_ner/core/converters/transformers_converter.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f602a98bc723ec8b5c0d848a11a48c50810ce5497c1e4a6e38937f387940d8"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarLoadAnnotations._load_multi_labels (cognitive 63): DavarLoadAnnotations._load_multi_labels has cognitive complexity 63 (threshold 15). Drivers by points: if/else 19 (53 pts), loops 5 (7 pts), boolean chains 2, ternaries 1 (nesting depth added 36). 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29682cb36388c62f2ffe589c2a6edbd117c948dff386627a837d707aa115d44"}},{"ruleId":"D2","level":"warning","message":{"text":"MMLALoadAnnotations._load_labels (cognitive 56): MMLALoadAnnotations._load_labels has cognitive complexity 56 (threshold 15). Drivers by points: if/else 23 (45 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 24). 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":"davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d233020df1f116b50a3e713dcbc537390c96597ed0421b031fda85eb12b00281"}},{"ruleId":"D2","level":"warning","message":{"text":"davar_loading_json.rcg_json_dataload (cognitive 53): davar_loading_json.rcg_json_dataload has cognitive complexity 53 (threshold 15). Drivers by points: if/else 28 (44 pts), boolean chains 5, loops 1 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa6c3ac53488865d80d86b60880f6b6e0b6ad8596b29a7627e59f26a0de2693"}},{"ruleId":"D2","level":"warning","message":{"text":"davar_loading_lmdb.rcg_lmdb_dataload (cognitive 53): davar_loading_lmdb.rcg_lmdb_dataload has cognitive complexity 53 (threshold 15). Drivers by points: if/else 26 (47 pts), loops 1 (4 pts), boolean chains 1, error handling 1 (nesting depth added 24). 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":"davarocr/davar_rcg/datasets/pipelines/davar_loading_lmdb.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a62670b3ea4350ff76385a30ddb52763453b05ce198f9c00de88143f981d2c0"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarLoadAnnotations._load_labels (cognitive 51): DavarLoadAnnotations._load_labels has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (39 pts), boolean chains 6, loops 3 (5 pts), ternaries 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3a39b43e63a93c24a27d33b46a634ea603309a8c23e9b7ce3adfb7817dece2"}},{"ruleId":"D2","level":"warning","message":{"text":"CTCLabelConverter.ctc_beam_search_decoder (cognitive 49): CTCLabelConverter.ctc_beam_search_decoder has cognitive complexity 49 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 4 (8 pts), ternaries 3 (6 pts), boolean chains 3 (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":"davarocr/davar_rcg/core/converters/ctc_converter.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf62ef2ae750992e9b769d936626cc510e1e2f1d73978b383db473c1290c6ca"}},{"ruleId":"D2","level":"warning","message":{"text":"PostMango.post_processing (cognitive 49): PostMango.post_processing has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (32 pts), loops 5 (17 pts) (nesting depth added 33). 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":"davarocr/davar_spotting/core/post_processing/post_mango.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2d599da61bacaac1d17e1ad3b2e175fe25753e0264f58c096e34d5be7ec969"}},{"ruleId":"D2","level":"warning","message":{"text":"bbox_process.recon_noncell (cognitive 49): bbox_process.recon_noncell has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (32 pts), loops 5 (13 pts), boolean chains 4 (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":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"897a09ff8e86d6669d7dda4267e8e33a84c5a5923fc0c9d52539cc352a5431c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChargridDataGeneration.__call__ (cognitive 46): ChargridDataGeneration.__call__ has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 3 (7 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 24). 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":"davarocr/davar_ie/datasets/pipelines/chargrid_data.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bf6b942694e018a37d28f4a0fa234c3ce554a767e57203b7457581804b0f16"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarRCGDataset.evaluate (cognitive 46): DavarRCGDataset.evaluate has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 5 (8 pts), boolean chains 3, ternaries 1 (nesting depth added 20). 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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ba272d2303b61732a0a9612a778f3fbc59f7a3ce4c75164ffb2e2227a07334"}},{"ruleId":"D2","level":"warning","message":{"text":"SpotResolutionDistillation.generate_lr_pair (cognitive 44): SpotResolutionDistillation.generate_lr_pair has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 7 (13 pts) (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":"davarocr/davar_distill/models/distillation/spot_res_distill.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c7949029806aaeae1c442e1e6562756c07ff33f11212c9b18a1b620fc9308b"}},{"ruleId":"D2","level":"warning","message":{"text":"RandomRotate._rotate_img (cognitive 43): RandomRotate._rotate_img has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 10 (21 pts), boolean chains 1 (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":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fe16b8578d12c785119b228a3c3929697d4a8ce9830f1f4f25e2b7c3c54945"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarRCGDataset.lmdb_file_load (cognitive 42): DavarRCGDataset.lmdb_file_load has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (32 pts), loops 2 (6 pts), ternaries 1 (4 pts) (nesting depth added 28). 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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f310b718051c5a3f45b27774f54562b23ad0478959badfa4776ce38e7831757"}},{"ruleId":"D2","level":"warning","message":{"text":"post_lgpma.ocr_result_matching (cognitive 40): post_lgpma.ocr_result_matching has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 4 (11 pts), boolean chains 1 (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":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb453fdc46467e077f32782f577c6123db225b9805d6c30e5eb103431e06930"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarRandomCrop.__call__ (cognitive 39): DavarRandomCrop.__call__ has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 7 (10 pts), ternaries 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c951f4739ce98b0c918d32221fb332226ab1381e2515d9f2fd33a0050f2fef6"}},{"ruleId":"D2","level":"warning","message":{"text":"davar_sampler.batch_sampler (cognitive 39): davar_sampler.batch_sampler has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (31 pts), loops 2 (7 pts), boolean chains 1 (nesting depth added 21). 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":"davarocr/davar_common/datasets/sampler/davar_sampler.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"432af8e17f59973d5bab6140718b3f1aece9a46d1c2f9fd16065a4e3b7892a11"}},{"ruleId":"D2","level":"warning","message":{"text":"CascadeRoIHeadWGCN.simple_test (cognitive 32): CascadeRoIHeadWGCN.simple_test has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 4 (8 pts), ternaries 1 (3 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":"davarocr/davar_layout/models/heads/cascade_roi_head_w_gcn.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3eb766c07456d306038ba1ea44991e020cc53ea590bace8ab60810d985f8a85"}},{"ruleId":"D2","level":"warning","message":{"text":"CascadeRoIHeadWGCN.forward_train (cognitive 31): CascadeRoIHeadWGCN.forward_train has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (10 pts), ternaries 2 (8 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":"davarocr/davar_layout/models/heads/cascade_roi_head_w_gcn.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d17b35aa46e1cef57dda6041603d2ea159c471ddc2afec5bbe92c817ce95bc"}},{"ruleId":"D2","level":"warning","message":{"text":"TransformersConverter._labels_convert_ori (cognitive 31): TransformersConverter._labels_convert_ori has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 15). 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":"davarocr/davar_ner/core/converters/transformers_converter.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a7b7d175aff3d8ae279a37760b4ce1c790675d4286c3fb9ae62e76f8f9c6c5"}},{"ruleId":"D2","level":"warning","message":{"text":"beam_search.beam_decode (cognitive 30): beam_search.beam_decode has cognitive complexity 30 (threshold 15). Drivers by points: loops 7 (16 pts), if/else 5 (13 pts), boolean chains 1 (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_distill/core/beam_search.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5aafa416fafd46013b8c5342b29a48fc003719baddc24ca01527f01867923c6"}},{"ruleId":"D2","level":"warning","message":{"text":"PostLGPMA.post_processing (cognitive 30): PostLGPMA.post_processing has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 5 (11 pts) (nesting depth added 15). 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":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"093ace44a374917a895c8019a2887ff6749253cb255dd06302bad97a47801017"}},{"ruleId":"D2","level":"warning","message":{"text":"CTUNet.forward_train (cognitive 30): CTUNet.forward_train has cognitive complexity 30 (threshold 15). Drivers by points: loops 6 (18 pts), if/else 8 (12 pts) (nesting depth added 16). 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":"davarocr/davar_table/models/understanding_detectors/ctunet.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cabd3ec338599bc83541374be9c767b137eaf58ad200204d6462ac6dd10f82"}},{"ruleId":"D2","level":"warning","message":{"text":"filter.filter_operate (cognitive 30): filter.filter_operate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 15). 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":"davarocr/davar_videotext/tools/filter.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"931ab3b8a3f9752273b0f37d615ec738e1f6c169531d797b3a53808f06986132"}},{"ruleId":"D2","level":"warning","message":{"text":"PublaynetDataset.evaluate (cognitive 29): PublaynetDataset.evaluate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 5 (9 pts), ternaries 1 (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":"davarocr/davar_layout/datasets/publaynet_dataset.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a896acff004523a544b3c2731f1ef612408c4bdc0a7d317356a60c3a48041c"}},{"ruleId":"D2","level":"warning","message":{"text":"builder.multi_frame_collate (cognitive 28): builder.multi_frame_collate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 4 (10 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/builder.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"14501e12e4355eb22181c3a040d1c39664860bb9fd7d8664116806bb8e11a7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"MetricSampler.generate_apn (cognitive 28): MetricSampler.generate_apn has cognitive complexity 28 (threshold 15). Drivers by points: loops 5 (18 pts), if/else 3 (10 pts) (nesting depth added 20). 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":"davarocr/davar_videotext/datasets/samplers/metric_sampler.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"08844ca2ff8eae4cc0e56d3805e2c2f45d10d82198e9064720c6e5001b71cbdb"}},{"ruleId":"D2","level":"warning","message":{"text":"DocBankDataset.evaluate (cognitive 27): DocBankDataset.evaluate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 6 (11 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":"davarocr/davar_layout/datasets/docbank_dataset.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f461a8384bf0400a6d9831fcdce8cc32e886fcaf1c4bfe2aa15f13c405876dde"}},{"ruleId":"D2","level":"warning","message":{"text":"train.train_model (cognitive 26): train.train_model has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 pts), ternaries 2 (3 pts), loops 1 (2 pts), 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":"davarocr/davar_common/apis/train.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e25ecfd125b460c5c86d77de5d30944936a0b6a24aa947cf38e0624cc5367a"}},{"ruleId":"D2","level":"warning","message":{"text":"builder.parameter_align (cognitive 26): builder.parameter_align has cognitive complexity 26 (threshold 15). Drivers by points: loops 7 (16 pts), if/else 6 (7 pts), boolean chains 3 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/builder.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12d4e38025d130c0f7a39a92395fbe1d02595ae61b3b9190e121baa324076a3"}},{"ruleId":"D2","level":"warning","message":{"text":"PostEAST.post_processing (cognitive 26): PostEAST.post_processing has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (7 pts), boolean chains 1 (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":"davarocr/davar_det/core/post_processing/post_east.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef4d5d8688b238e7ccdfc5f35b37761e918041462aafbf1d592ba1e029f61d6"}},{"ruleId":"D2","level":"warning","message":{"text":"AttnLabelConverter.__init__ (cognitive 25): AttnLabelConverter.__init__ has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (11 pts), boolean chains 1 (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":"davarocr/davar_rcg/core/converters/att_converter.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9b9c7061eaeac5af64031c141c85ee2bf38a731ff40fec9cbf30226684ebb1"}},{"ruleId":"D2","level":"warning","message":{"text":"BertLabelConverter.__init__ (cognitive 25): BertLabelConverter.__init__ has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (11 pts), boolean chains 1 (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":"davarocr/davar_rcg/core/converters/bert_converter.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"350d14f56b25ca79bbce517736b74b0e6525ab969135dc004882a85c344e118d"}},{"ruleId":"D2","level":"warning","message":{"text":"CTCLabelConverter.__init__ (cognitive 25): CTCLabelConverter.__init__ has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (11 pts), boolean chains 1 (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":"davarocr/davar_rcg/core/converters/ctc_converter.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7b52f9eaba82f307b6cef512545552aa9b749a3f23852866926d62c30856aa"}},{"ruleId":"D2","level":"warning","message":{"text":"CTCLabelConverter.decode (cognitive 25): CTCLabelConverter.decode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (8 pts), boolean chains 4 (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":"davarocr/davar_rcg/core/converters/ctc_converter.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99bd7f5810bd49e2245c6027cd1fa38673b38f59d2fc692ff92449aa26fe96d"}},{"ruleId":"D2","level":"warning","message":{"text":"TextualEmbedding.forward (cognitive 24): TextualEmbedding.forward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (24 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":"davarocr/davar_ie/models/embedding/text_embedding.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbd11c5e69f767b42eefad671a33e83d5991efa63d1885411c220ae46bb1561"}},{"ruleId":"D2","level":"warning","message":{"text":"ConvFCBBoxHeadWGCN.forward (cognitive 24): ConvFCBBoxHeadWGCN.forward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 6 (8 pts), ternaries 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":"davarocr/davar_layout/models/heads/convfc_bbox_head_w_gcn.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32bc9cf338713102ccbb95b5d61347e5ee601e7dbfe91da15f422c5d252295b"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSpotDataset.evaluate (cognitive 24): TextSpotDataset.evaluate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 4 (7 pts), boolean chains 1, 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":"davarocr/davar_spotting/datasets/text_spot_dataset.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec012a6551ed04d42dc2d5abd37238973484c02ec15a785bf884c3cf1c2c4ed"}},{"ruleId":"D2","level":"warning","message":{"text":"LGPMARoIHead.simple_test_mask (cognitive 24): LGPMARoIHead.simple_test_mask has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (5 pts), ternaries 1 (3 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":"davarocr/davar_table/models/roi_heads/lgpma_roi_head.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e5b5894d8f7166d9a8ddb1adb9f00f246914180a0a98b9bf4c6de016cac3eb"}},{"ruleId":"D2","level":"warning","message":{"text":"CTUNetDataset.evaluate (cognitive 23): CTUNetDataset.evaluate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 1 (2 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":"davarocr/davar_table/datasets/ctunet_dataset.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a0e3707bbed9d4bc2fff385cc58fa15daf360a8f5a492151177b4edd2a42f"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarLoadAnnotations.__init__ (cognitive 22): DavarLoadAnnotations.__init__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (21 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf669b4901f1ebcb5f84f85567b1d1457a618163bb1f8d929cfbb3251c996ca7"}},{"ruleId":"D2","level":"warning","message":{"text":"EASTDataGeneration._parse_east_data_cpp (cognitive 22): EASTDataGeneration._parse_east_data_cpp has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 3 (4 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":"davarocr/davar_det/datasets/pipelines/east_data.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7c0d02720d06086c01eeb5cd614e19af9aea70238f963c578b9da770824d2b"}},{"ruleId":"D2","level":"warning","message":{"text":"RFLLabelConverter.__init__ (cognitive 21): RFLLabelConverter.__init__ has cognitive complexity 21 (threshold 15). Drivers by points: loops 3 (11 pts), if/else 6 (9 pts), boolean chains 1 (nesting depth added 11). 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":"davarocr/davar_rcg/core/converters/rfl_converter.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b143acbfce8057911ed26f13b1ece422fcb5d2451ee3dd5dc5b2bcb31772b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"bbox_process.bbox2adj (cognitive 21): bbox_process.bbox2adj has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 3 (5 pts), boolean chains 2 (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":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd52c5c1660a7199c423b21b6e7aab6ec1534955600bd89dcc78c906b6f2f2ec"}},{"ruleId":"D2","level":"warning","message":{"text":"builder.davar_build_dataloader (cognitive 20): builder.davar_build_dataloader has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/builder.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0498ca02a301ba3588e90248c1fdfe09cc214ab4cde225788fa433352a3ae906"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarCustomDataset.__init__ (cognitive 20): DavarCustomDataset.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3 (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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf5fdb4c526d7c30d7576aa2bff72295fae3939d6614127c418b49ea94a5832"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarCustomDataset.evaluate (cognitive 20): DavarCustomDataset.evaluate has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 5 (6 pts), boolean chains 1, ternaries 1 (nesting depth added 8). 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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac2071555fc5147592b1018eb0f1cf1aa2a254de41f0872ab370213b91922b6"}},{"ruleId":"D2","level":"warning","message":{"text":"TextDetDataset.evaluate (cognitive 20): TextDetDataset.evaluate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (6 pts), loops 2 (3 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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c0214320197d2542ca504089898c860d3aeee67eeab280bca0ab28bcd09460"}},{"ruleId":"D2","level":"warning","message":{"text":"loading_utils.wordmap_loader (cognitive 20): loading_utils.wordmap_loader has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (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":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a02e4e935b74253383c101c5f91f2d63ccee8f13f84202aa31a757172ab405"}},{"ruleId":"D2","level":"warning","message":{"text":"RFLRecognizor.simple_test (cognitive 20): RFLRecognizor.simple_test has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (20 pts) (nesting depth added 3). 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":"davarocr/davar_rcg/models/recognizors/rf_learning.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f552ff1aac235a14ce61bdc041835494b66a959a2772f9099096e412416e2c6"}},{"ruleId":"D2","level":"warning","message":{"text":"post_lgpma.softmasks_refine_bboxes (cognitive 20): post_lgpma.softmasks_refine_bboxes has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 1 (3 pts), loops 2 (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":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f30008c6cbcd03a288d9206fd55ca9618ae6955cc96034ff93335a33b8eb2f"}},{"ruleId":"D2","level":"warning","message":{"text":"YORORCGDataset._file_to_list (cognitive 20): YORORCGDataset._file_to_list has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2 (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":"davarocr/davar_videotext/datasets/yoro_rcg_dataset.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1a902483d695b7dc0676d20d3a916a746f58cc180a73b72b103dffa3cea4c3"}},{"ruleId":"D2","level":"warning","message":{"text":"filter.load_data (cognitive 20): filter.load_data has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (6 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":"davarocr/davar_videotext/tools/filter.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37985ac55f7d3e12df629e8c2bf363f3a3027fc1aa05991bb255525de4fc57b"}},{"ruleId":"D2","level":"warning","message":{"text":"DistBatchBalancedSampler.__init__ (cognitive 19): DistBatchBalancedSampler.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/sampler/davar_sampler.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f03e8f9b5fa3e4fb12948acd3046e3623b438b580aa3ee0c1793734ba1d1878"}},{"ruleId":"D2","level":"warning","message":{"text":"SpotResolutionDistillation.forward_train (cognitive 19): SpotResolutionDistillation.forward_train has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (14 pts), if/else 4 (5 pts) (nesting depth added 9). 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":"davarocr/davar_distill/models/distillation/spot_res_distill.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"62177a7a7363465fbb2ac47fe68a85294770c7756a06bbef0eab0285392c8300"}},{"ruleId":"D2","level":"warning","message":{"text":"TRIE.simple_test (cognitive 19): TRIE.simple_test has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (16 pts), loops 1 (2 pts), boolean chains 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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4129d7b6ab4535e2ed673b45aea23ee55220c671a648be8e2ef2b78844154354"}},{"ruleId":"D2","level":"warning","message":{"text":"davar_rcg_dataset.loose_tight_to_list (cognitive 19): davar_rcg_dataset.loose_tight_to_list has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 2 (6 pts), loops 2 (3 pts), error handling 1 (2 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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57475a8da94811c46abe8c50a8f031c844d2a2a7696ccf19bc8babbc222b4f3"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarLoadAnnotations._load_poly_bboxes (cognitive 18): DavarLoadAnnotations._load_poly_bboxes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (3 pts), 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da2260da944ba6c0f52718722b2197be519ec66a2a72b983dec1e6ece19d7ec"}},{"ruleId":"D2","level":"warning","message":{"text":"DavarLoadAnnotations._load_polymasks (cognitive 18): DavarLoadAnnotations._load_polymasks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (3 pts), 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"711861201e5f923eb30c16e8cf9370a0bf057116cab873e2299781e621ef98ba"}},{"ruleId":"D2","level":"warning","message":{"text":"DistillFormatBundle.__call__ (cognitive 18): DistillFormatBundle.__call__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 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":"davarocr/davar_distill/dataset/pipelines/distill_formating.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d19517ee1cf9c3e23b1c7a3296479c1eae60837fb4133e62cc0297cc938d9f5"}},{"ruleId":"D2","level":"warning","message":{"text":"TransformersConverter.convert_text2id (cognitive 18): TransformersConverter.convert_text2id has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 7 (8 pts), 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":"davarocr/davar_ner/core/converters/transformers_converter.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e304a6416bd2c1def850699be67d80a5808c44474fe7105b3843a31d3452c81"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchBalancedSampler.__init__ (cognitive 17): BatchBalancedSampler.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/sampler/davar_sampler.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1769462ebf2075440377f1daa746dfc504293883f3accd13d31a62ece5bebbac"}},{"ruleId":"D2","level":"warning","message":{"text":"CharPadTokenize.__call__ (cognitive 17): CharPadTokenize.__call__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), ternaries 1 (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":"davarocr/davar_ie/datasets/pipelines/tokenizer.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebf3c0ac8d414e781acef09b6bf2511c2ab437caa897ade939039b66f4a5431"}},{"ruleId":"D2","level":"warning","message":{"text":"TRIE.forward_train (cognitive 17): TRIE.forward_train has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), loops 2 (3 pts), boolean chains 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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff949cb559beffccb952445b815ccb1f3d1eead04bf533ec37cf38a0464e330"}},{"ruleId":"D2","level":"warning","message":{"text":"PublaynetDataset._segm2json (cognitive 17): PublaynetDataset._segm2json has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 3 (8 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_layout/datasets/publaynet_dataset.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f1adb6f1b31f8fe2a8457ab2cb8d64442ddfcd1fa9291afaf2cfebfa838dd6"}},{"ruleId":"D2","level":"warning","message":{"text":"GCNHead.forward (cognitive 17): GCNHead.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 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":"davarocr/davar_layout/models/heads/gcn_head.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de47a71aa66b7e8032ef617cfa44b7477db75c4eeeb1a7d1c01e9041cbe3496"}},{"ruleId":"D2","level":"warning","message":{"text":"VSR.__init__ (cognitive 17): VSR.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 3). 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":"davarocr/davar_layout/models/vsr/vsr.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0222ef7341e5234756ec75a81a925e40d8b5cbefa7c240f1a2c03af14404c01"}},{"ruleId":"D2","level":"warning","message":{"text":"VSR.forward_train (cognitive 17): VSR.forward_train has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (17 pts) (nesting depth added 3). 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":"davarocr/davar_layout/models/vsr/vsr.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e858018874b21a35832464cfe49c4e64ab2a1fa3374fffcbfb757256f0f8c53"}},{"ruleId":"D2","level":"warning","message":{"text":"VSR.simple_test (cognitive 17): VSR.simple_test has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (17 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":"davarocr/davar_layout/models/vsr/vsr.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1ca563730ace5c10757e9af3db6aefe92808ae754a6b3f03d6726d658376b0"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseNER.aug_test (cognitive 17): BaseNER.aug_test has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (8 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":"davarocr/davar_ner/models/ner_models/base_ner.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"266551bc4ae65c8a3f024eb7395216fcea799cf2769f0a8f12308bd6183b250a"}},{"ruleId":"D2","level":"warning","message":{"text":"TPSRoIExtractor.get_fiducial_points (cognitive 17): TPSRoIExtractor.get_fiducial_points has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 3 (8 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/roi_extractors/tps_roi_extractor.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"668fbfc4c361f635c9c60023ed0bf781656907ffac97a2d738207b93627ca248"}},{"ruleId":"D2","level":"warning","message":{"text":"builder._concat_dataset (cognitive 16): builder._concat_dataset has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 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":"davarocr/davar_common/datasets/builder.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a6d190a3c7ae981aef5e714d51fcc8dcdc3c43b9ae473ad53172355a1ccd2e"}},{"ruleId":"D2","level":"warning","message":{"text":"KDTwoStageEndToEnd.forward_train (cognitive 16): KDTwoStageEndToEnd.forward_train has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"385935aa30e97594a37296a745db14ab57532f120812ea4070cd77f3347def7d"}},{"ruleId":"D2","level":"warning","message":{"text":"MaskRoIExtractor.forward (cognitive 16): MaskRoIExtractor.forward has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (3 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":"davarocr/davar_spotting/models/roi_extractors/mask_roi_extractor.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfee3e25f0381ff96206d1c46e4cf64c2b1ed2debfc02d6444a6fe085f12b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsistCollect.__call__ (cognitive 16): ConsistCollect.__call__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (7 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":"davarocr/davar_videotext/datasets/pipelines/formating.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee124e7554bd14a1a4dc8378524c32f3abcec67436a04eeacd8cd21e3de886e3"}},{"ruleId":"D2","level":"warning","message":{"text":"davar_checkpoint.save_best_checkpoint (cognitive 16): davar_checkpoint.save_best_checkpoint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1 (nesting depth added 8). 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":"davarocr/mmcv/runner/hooks/davar_checkpoint.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"982ca2a2b6b712872f0b150e39d15d56a3532b2c6e8284433e47dd833930a320"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): davarocr/davar_det/core/evaluation/hmean.py:16-349 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:16-359 | demo/text_detection/evaluation/script.py:87-507 | demo/text_spotting/evaluation/script.py:83-510 \u2014 These 4 members are variants of one another: a block of 21 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"363d667fbb9f3d06c4dca2ed52b85748a5570ca3134aed4ff7c24803f1c8dfd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (44 shared lines): davarocr/davar_rcg/models/transformations/gaspin_transformation.py:40-145 | davarocr/davar_rcg/models/transformations/spin_transformation.py:114-253 \u2014 These two members are variants of one another: 44 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/transformations/gaspin_transformation.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7ee6de1021b32c124858a4fbc8e7e7bc5a491700bdde3a439c5eaf6c945db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (34 shared lines): davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:217-294 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:382-459 \u2014 These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9569839e2607f25f5d7cd7b2fb70d0aedf703c48ff724bfaa10bf756a4f24c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): davarocr/davar_ie/models/connects/multimodal_context_module.py:97-183 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:136-246 \u2014 These two members are variants of one another: 28 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f466bc029aa838d2d1812ae4852dc029af66d26fdac0aff5198e63080cc040e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (26 shared lines): davarocr/davar_rcg/models/sequence_heads/att_head.py:131-187 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:129-221 \u2014 These two members are variants of one another: 26 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/sequence_heads/att_head.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc4fa5730bef06aa0bbfd5522cfe2a5613bc40a76f3a85cdc8963c5e6d8177c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:118-215 | davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:224-291 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"davarocr/davar_order/models/reading_order_detectors/gcn_pn.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8407c2d98b6e24ba1b806c0895e9def23af208d9dbd9fd54e229425e8e5bf9af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): davarocr/davar_common/datasets/pipelines/davar_loading.py:533-626 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:235-327 \u2014 These two members are one piece of code written twice and then edited apart: 62 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adc4133ae5be8a83f8fd1c5281841ff870264fe74591328249d47b8701e79d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): davarocr/davar_rcg/models/backbones/ResNet32.py:144-212 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:189-233 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15c34a975c8d720e9e6b657b57dd7cdbafdd443fad34428d35e8fcc6f22201c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): davarocr/davar_common/datasets/pipelines/davar_formating.py:84-106 | davarocr/davar_table/datasets/pipelines/ctunet_formating.py:31-53 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_formating.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f675fa4bc623685f9352dc6f86ebddc6fe4b26b957d194929c75cdb4ad736d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): davarocr/davar_ie/datasets/wildreceipt_dataset.py:51-78 | davarocr/davar_table/datasets/ctunet_dataset.py:67-93 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/datasets/wildreceipt_dataset.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bd29b23d7b5a24a8a01a7f342fec9b78bb8ecd8f3a39af990e387b359e28ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): davarocr/davar_table/core/bbox/bbox_process.py:16-123 | davarocr/davar_table/core/bbox/bbox_process.py:127-151 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e9e05dce9ee99fa021425cc823067632afd0576ee61384dd1eb76237bdadd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:81-187 | davarocr/davar_ie/models/infor_extrators/trie/trie.py:159-302 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:141-242 | davarocr/davar_layout/models/vsr/vsr.py:240-351 | davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:118-215 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:240-337 | davarocr/davar_table/models/detectors/lgpma.py:88-144 | davarocr/davar_table/models/understanding_detectors/ctunet.py:184-376 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6acc76c90ced5353cf49b2caa395012d1e3c88a929ea10ad3d528f3c0f6f4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): davarocr/davar_det/core/post_processing/post_east.py:32-74 | davarocr/davar_det/core/post_processing/post_tp_det.py:39-89 | davarocr/davar_det/datasets/pipelines/east_data.py:37-86 | davarocr/davar_det/datasets/pipelines/tp_data.py:35-89 | davarocr/davar_spotting/core/post_processing/post_mango.py:39-78 | davarocr/davar_table/datasets/pipelines/gpma_data.py:34-73 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/core/post_processing/post_east.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4d442bf2915e2d3527a3439c66bc1178095da3e9764d088eb7b272232742d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): davarocr/davar_common/datasets/pipelines/davar_loading.py:266-313 | davarocr/davar_common/datasets/pipelines/transforms.py:363-500 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:136-194 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:126-184 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:187-227 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5567e4f1d0ec0152e8a9061606f0743ee451c1642ef20f21f824edf0629043"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): davarocr/davar_rcg/models/backbones/ResNet32.py:38-59 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:114-135 | davarocr/davar_rcg/models/backbones/VGG7.py:77-98 | davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py:39-59 | davarocr/davar_spotting/models/backbone/light_crnn.py:77-84 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"432080f9d1a9ca06df96d8f420b0f4e317179bfa435f147eac97bbd08abfdf6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): davarocr/davar_rcg/core/converters/att_converter.py:30-96 | davarocr/davar_rcg/core/converters/bert_converter.py:27-97 | davarocr/davar_rcg/core/converters/ctc_converter.py:32-96 | davarocr/davar_rcg/core/converters/rfl_converter.py:30-93 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/core/converters/att_converter.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d21ae317d4ae5891d6d9a418a5e757dc1fc1fb302473ca8f41fdc23b1d131d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): davarocr/davar_rcg/models/sequence_heads/ace_head.py:60-77 | davarocr/davar_rcg/models/sequence_heads/att_head.py:76-93 | davarocr/davar_rcg/models/sequence_heads/counting_head.py:64-81 | davarocr/davar_rcg/models/sequence_heads/warpctc_head.py:69-86 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/sequence_heads/ace_head.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d601dbcbef9eca3ad0cdf9f33f0118198d7389feb5ad53b7f7323f29ca9af555"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (88 corresponding lines): davarocr/davar_ie/models/backbones/chargrid_backbone.py:22-118 | davarocr/davar_ie/models/necks/chargrid_neck.py:26-113 \u2014 These two members are one piece of code written twice and then edited apart: 88 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":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a235631ad8e136ace7defaead0073598cba5f221a961f6e0d719af683e757e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (104 corresponding lines): davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:345-450 | davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py:59-162 \u2014 These two members are one piece of code written twice and then edited apart: 104 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":"davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5ac0e7c8eb6c82a05625d1083a58e4e33c46b0c58d0f20f802acadf06789da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): davarocr/davar_common/datasets/sampler/davar_sampler.py:139-213 | davarocr/davar_common/datasets/sampler/davar_sampler.py:252-341 \u2014 These two members are one piece of code written twice and then edited apart: 75 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":"davarocr/davar_common/datasets/sampler/davar_sampler.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb33eca5ae1f5b8ac2903eb99671e33aef48a1b77ea29fd06391337df2bf944"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): davarocr/davar_det/datasets/text_det_dataset.py:58-138 | davarocr/davar_spotting/datasets/text_spot_dataset.py:64-158 \u2014 These two members are one piece of code written twice and then edited apart: 81 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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a662eb41f160450cda1aa614189155696c3b10922d8a57b1094979fb10f327e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): davarocr/davar_common/datasets/pipelines/transforms.py:173-218 | davarocr/davar_common/datasets/pipelines/transforms.py:221-266 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"195a67d3115dae18c8ab79d6ed37a3d7af24f1ff9b177660e09cf69800ae4e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): davarocr/davar_common/datasets/pipelines/davar_loading.py:316-367 | davarocr/davar_common/datasets/pipelines/davar_loading.py:474-530 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"7039159cb8177226e662c543627c734797bb3a7b3dde9ef965ec4fb05d5f5242"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:50-121 | davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:124-202 \u2014 These two members are one piece of code written twice and then edited apart: 72 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":"davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e35d84bbde7f8747e0fcad060a05441913bd4ded3c002b02587aeeecda23f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): davarocr/davar_rcg/models/recognizors/rf_learning.py:176-258 | davarocr/davar_rcg/models/recognizors/rf_learning.py:265-350 \u2014 These two members are one piece of code written twice and then edited apart: 83 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":"davarocr/davar_rcg/models/recognizors/rf_learning.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ede63c19a9e83d55709cf70ed022bd52da4605500d54c2821ad697988d836e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): davarocr/davar_rcg/models/recognizors/general.py:224-284 | davarocr/davar_videotext/models/recognizors/text_recommender.py:148-210 \u2014 These two members are one piece of code written twice and then edited apart: 61 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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e00c7df47393c17aac158d4fcaa1ab661427bcd2470e863ef723200d3a43cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:305-365 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:74-156 \u2014 These two members are one piece of code written twice and then edited apart: 61 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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"6411cb7d7554638074711fb8efc7e16e1e67dcf7b23ddd06b3d632e575e134db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): davarocr/davar_rcg/models/backbones/ResNetRFL.py:138-182 | davarocr/davar_videotext/models/backbones/ResNet32.py:48-94 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/backbones/ResNetRFL.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5932621ae7f2472da1dfa0b01c03ab038667fe4069111c94faf19f07c2e131f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py:116-147 | davarocr/davar_table/models/roi_heads/lgpma_roi_head.py:94-140 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d6c2801f7d7a5a25c91377a8af9866e3dc9920702b1e891af5dbb421de3cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): davarocr/davar_rcg/models/recognizors/general.py:153-217 | davarocr/davar_videotext/models/recognizors/text_recommender.py:85-142 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2e9cc5ea1b031e4c76559013fc12c455cfd59483fba5216a513448b2df0148"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): davarocr/davar_common/datasets/pipelines/davar_loading.py:764-806 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:330-367 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb611c12848272ef92ba1b79e98983ca5f5411464ef6192bbc8e32912baf9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): davarocr/davar_common/core/evaluation/davar_eval_hook.py:154-184 | davarocr/davar_common/core/evaluation/davar_eval_hook.py:187-220 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"davarocr/davar_common/core/evaluation/davar_eval_hook.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d6647b979f8e8f6a7f0f9448fc9dffdeefea4b74bd05fe3fc358fe187b8900"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): davarocr/davar_det/core/post_processing/post_mask_rcnn.py:36-68 | davarocr/davar_spotting/core/post_processing/post_mask_rcnn_spot.py:38-72 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/core/post_processing/post_mask_rcnn.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"472fcb48cc55e54a70f2ea775f80260ea8e0ff8cb2011cdcab67115a7075032c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): davarocr/davar_layout/datasets/mm_layout_dataset.py:138-169 | davarocr/davar_layout/datasets/publaynet_dataset.py:167-203 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_layout/datasets/mm_layout_dataset.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6857bd29b22da8e281caa2c3163b9f9610adb7f31bd9212d4e1a5b47583c33fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): davarocr/davar_spotting/models/seg_heads/grid_category_head.py:40-81 | davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:40-83 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/seg_heads/grid_category_head.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7052acaab0778c674a4cac60c4fdb7343256980b118b06ab3a43b13e06fdf7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): davarocr/davar_common/datasets/pipelines/transforms.py:62-83 | davarocr/davar_common/datasets/pipelines/transforms.py:86-110 \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":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"099999e69a90b212615c7517341b40f4ccdc77108bd25a81594340df903ccfb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): davarocr/davar_rcg/models/recognizors/general.py:56-97 | davarocr/davar_rcg/models/recognizors/rf_learning.py:35-93 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"151127a76d267ee3db1761022d2518af138ed713b0264e6a2bf17178e512d5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:273-297 | davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:227-251 \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":"davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bacf9d41d0f7bdc6a0c4499ccd84ecd0e26b9ffb3bc8ca4f559c4ccaa0fcca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): davarocr/davar_rcg/core/converters/att_converter.py:99-133 | davarocr/davar_rcg/core/converters/bert_converter.py:100-132 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/core/converters/att_converter.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62a03fdf61031b29115c97a9a34944136c3fb6e8c93565d9a34fdf7fac2c514"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): davarocr/davar_distill/models/distillation/base.py:68-94 | davarocr/davar_spotting/models/spotters/base/base.py:46-63 \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":"davarocr/davar_distill/models/distillation/base.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"417d4bb5dacbdaa1acd8711ed769582a5f0679b35c31aa224f9aa16de1418253"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py:172-196 | davarocr/davar_table/models/roi_heads/lgpma_roi_head.py:149-181 \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":"davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafef0007e6709277c90f6cb03409ee2ef55de3c008cf943e96cf113416b07a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): davarocr/davar_table/datasets/pipelines/ctunet_loading.py:109-144 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:269-308 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"davarocr/davar_table/datasets/pipelines/ctunet_loading.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e2141f618015856b65d854ffbf70098d2e36888a92f86dec49cf7eb7a4d1ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): davarocr/mmcv/runner/hooks/davar_checkpoint.py:101-127 | davarocr/mmcv/runner/hooks/davar_checkpoint.py:130-157 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"davarocr/mmcv/runner/hooks/davar_checkpoint.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5facdee790f629f2c080a643657cf3e519f2ed42a999689aec50771597ddaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): davarocr/davar_table/core/post_processing/generate_html.py:162-182 | davarocr/davar_table/utils/format.py:9-41 \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":"davarocr/davar_table/core/post_processing/generate_html.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac915edaece216b77eb242bb14b2206ca16d9ac212c32ed39cabf30953fc09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): davarocr/davar_ie/models/infor_extrators/trie/trie.py:48-93 | davarocr/davar_table/models/understanding_detectors/ctunet.py:46-96 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1aa706cc3d812d328d2601551ed4373f8630c97c395d823617e8f29cd7dfc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): davarocr/davar_rcg/models/sequence_heads/att_head.py:279-306 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:327-363 \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":"davarocr/davar_rcg/models/sequence_heads/att_head.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7428b158d216e756af9d4201a0494b35ef3724242f936f021eed9650066a47ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): davarocr/davar_ie/models/backbones/chargrid_backbone.py:121-137 | davarocr/davar_ie/models/necks/chargrid_neck.py:116-126 \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":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f58be687b50029047c8a6cd12659d91a03c8591040a8d2cd99f5cec77f0b665"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): davarocr/davar_common/datasets/pipelines/transforms.py:503-523 | davarocr/davar_videotext/datasets/pipelines/transforms.py:145-180 \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":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cf895a930ffc1052d632887c549cfb7a5f1268fef2cb92d3281c4cf2364486"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): davarocr/davar_common/core/evaluation/davar_eval_hook.py:95-122 | davarocr/davar_common/core/evaluation/davar_eval_hook.py:125-151 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"davarocr/davar_common/core/evaluation/davar_eval_hook.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa80182550c372acb953828b7e6045d3278f3b66b23778ce73778f41ba84cfa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): davarocr/davar_common/datasets/pipelines/davar_loading.py:736-761 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:403-430 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d57aa507e0b3de9bd41176d6f8c49dc68cec75a4cf60a8b26dc16dbba12a1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): davarocr/davar_layout/datasets/publaynet_dataset.py:226-238 | davarocr/davar_layout/datasets/publaynet_dataset.py:241-255 \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":"davarocr/davar_layout/datasets/publaynet_dataset.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10921aa4a3cc8ccd35779350675c0d5537f148aef3deddd2ea2a0970a5fc1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): davarocr/davar_common/core/evaluation/davar_eval_hook.py:41-74 | davarocr/davar_common/core/evaluation/davar_eval_hook.py:237-272 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/core/evaluation/davar_eval_hook.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea4b793b8eb1d45b239cc1bd2da23cb1ccbeb6ce72e8c3ba1338e7976966869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py:277-308 | davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py:347-382 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1694f2d4e5eb54c876d5c212a9ef52761ab01e9773a584d22a1410faa3456e96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): davarocr/davar_rcg/models/connects/stack_block.py:51-71 | davarocr/davar_rcg/models/connects/stack_block.py:134-157 \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":"davarocr/davar_rcg/models/connects/stack_block.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"059306542aff99572986d353887febaf32538445d8fd0726a551575f4e2061bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:371-385 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:411-424 \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":"davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad868f2e3d9bf99b25faa10190836d4ef9491d14006751dd38c970e1959b77b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): davarocr/davar_rcg/models/sequence_heads/ctc_head.py:114-137 | davarocr/davar_rcg/models/sequence_heads/warpctc_head.py:130-154 \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":"davarocr/davar_rcg/models/sequence_heads/ctc_head.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"40795cce895de2a69098dfa152379bfda02315623a65368e1b48f35392d3c01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): davarocr/davar_common/datasets/davar_custom.py:155-180 | davarocr/davar_layout/datasets/mm_layout_dataset.py:109-135 | davarocr/davar_videotext/datasets/multi_frame_dataset.py:157-183 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fbcdab7822363a994f0760b9a84253aa8b21bf91c5635adf3ba5d6af419d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): davarocr/davar_rcg/models/connects/stack_block.py:29-48 | davarocr/davar_rcg/models/connects/stack_block.py:112-131 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/connects/stack_block.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bc7005b75f493c3a6ef761ae1a506133b12c96842bf5012711f3e6fb128f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py:239-262 | davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py:311-332 | davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py:385-407 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b41dbb5e90306e77ae1f85cf03f76c6b22636b1f9e5837136952209f21f7f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): davarocr/davar_layout/models/heads/cascade_roi_head_w_gcn.py:60-72 | davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py:100-112 \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":"davarocr/davar_layout/models/heads/cascade_roi_head_w_gcn.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db4e42035e7c68e55fbe7a7df76924ff8f385f96bf5c22af673a3c9854b06f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): davarocr/davar_ie/datasets/wildreceipt_dataset.py:31-48 | davarocr/davar_table/datasets/ctunet_dataset.py:35-51 \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":"davarocr/davar_ie/datasets/wildreceipt_dataset.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40bf8d4383afeb189693cd7ea169fde88e3476373201413281bac0ea2ebcdec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): davarocr/davar_spotting/models/roi_extractors/masked_roi_extractor.py:34-50 | davarocr/davar_spotting/models/roi_extractors/tps_roi_extractor.py:33-53 \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":"davarocr/davar_spotting/models/roi_extractors/masked_roi_extractor.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a7711a395a0cd0dc0ad2326061ba2edc7a1d375118bf67cbc4d2d7c6e95b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): davarocr/davar_rcg/models/recognizors/general.py:129-146 | davarocr/davar_rcg/models/recognizors/rf_learning.py:145-169 \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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"147977c2e7bdf3b0f512f5c4bd7796b01dbc676b3bf8fa80e5a51de3b476faa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): davarocr/davar_common/datasets/davar_custom.py:266-281 | davarocr/davar_layout/datasets/mm_layout_dataset.py:172-189 | davarocr/davar_videotext/datasets/multi_frame_dataset.py:252-276 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b34cdc5ecfe17c499d94c7945e89e07864b054793ca0fbd4458e421fb566506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py:62-80 | davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py:112-132 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1afef27f0bde77e279cf8dde9b6e5618d9b889cd43152ea2bdc33f8197109d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): davarocr/davar_table/datasets/pipelines/ctunet_loading.py:34-91 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:66-123 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"davarocr/davar_table/datasets/pipelines/ctunet_loading.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"291dddbc516cc068707e6358dc7c11708ea13b75e352d7702eb8b39a616e2dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): davarocr/davar_common/datasets/pipelines/davar_loading.py:243-263 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:113-133 \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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b8cc83462ec6d653a692b609ebb49c30c8d55eeb81cc3b04440839773aff77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): davarocr/davar_spotting/models/seg_heads/centerline_seg_head.py:202-222 | davarocr/davar_spotting/models/seg_heads/grid_category_head.py:392-412 \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":"davarocr/davar_spotting/models/seg_heads/centerline_seg_head.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f3d8671b5de928c213f7bbed350c8e91d9f169f49eab8d8b7ef48e1958b77f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py:25-36 | davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py:87-102 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5277357521fa75394cb32f70fdeadda6d58d17c97c66a1a17201b5324f3d816b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): davarocr/davar_ie/models/infor_extrators/trie/trie.py:132-146 | davarocr/davar_table/models/understanding_detectors/ctunet.py:152-168 \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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce891616c1f41b77c7149582d90eb0c688438088fc9ad18796ac89fd7dbe7513"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): davarocr/davar_distill/models/connect/resolution_selector.py:95-117 | davarocr/davar_rcg/models/backbones/ResNet32.py:115-137 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:388-403 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_distill/models/connect/resolution_selector.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"28af389e3aa12dba12bf426fc175b963034ebbd1abca3036b6bca763ff0bd235"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): davarocr/davar_layout/models/heads/gcn_head.py:97-111 | davarocr/davar_spotting/models/sequence_heads/multi_recog_seq_head.py:76-92 \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":"davarocr/davar_layout/models/heads/gcn_head.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f972223731988164a319e2fa42fe89f9701287bf065e117e6a2e880b4443ac5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): demo/videotext/evaluation/evaluate_utils.py:14-27 | davarocr/davar_videotext/tools/filter.py:26-38 \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":"demo/videotext/evaluation/evaluate_utils.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"95732862fc947b947443159a3854d9ac22b5a94f24bc84b1faead1fdbe2332f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): davarocr/davar_common/datasets/pipelines/davar_loading.py:865-872 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:503-508 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:311-319 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd0ea591df53d3b3b91049daa5ec94b9d8673d1bd93a4bfeba36e864fa07748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): davarocr/davar_ner/models/decoders/crf_decoder.py:25-34 | davarocr/davar_ner/models/decoders/fc_decoder.py:29-39 \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":"davarocr/davar_ner/models/decoders/crf_decoder.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"319725ef125cda283a3e5b50f72f68bde2fe61cb25e156ca4d6962bceb363652"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): davarocr/davar_rcg/core/converters/att_converter.py:136-153 | davarocr/davar_rcg/core/converters/bert_converter.py:135-152 \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":"davarocr/davar_rcg/core/converters/att_converter.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"01949462b360e4e0aca543e7493fa10b2331e9a0aefd8b81cdf43aee5a1203aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:463-479 | davarocr/davar_spotting/utils/util_poly.py:28-40 \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":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90e3923cdb3146eef711844695d83a1ab622fa4a9531e431befd825b3eef199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): davarocr/davar_ie/models/heads/chargrid_reg.py:19-28 | davarocr/davar_layout/models/heads/convfc_bbox_head_w_gcn.py:126-135 \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":"davarocr/davar_ie/models/heads/chargrid_reg.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab61f3a6e70077eed46d3061460872af0ea2efddb975f62ea70c154f5fef197f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): davarocr/davar_det/models/seg_heads/tp_head.py:133-142 | davarocr/davar_spotting/models/seg_heads/centerline_seg_head.py:98-102 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/models/seg_heads/tp_head.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b008d4ae601c1d0cfbd1f9496525d3e00e816289d7d192fe80c06d83bb1879b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): davarocr/davar_ie/models/embedding/embedding.py:25-34 | davarocr/davar_layout/models/embedding/chargrid_embedding.py:28-39 \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":"davarocr/davar_ie/models/embedding/embedding.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1d1b9dada607fe4ce384b5fde98bbda1226ed69243ca386c612e2e14eaf790"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): davarocr/davar_spotting/models/connect_modules/att_fuse_module.py:59-75 | davarocr/davar_spotting/models/seg_heads/centerline_seg_head.py:126-140 | davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:173-188 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/connect_modules/att_fuse_module.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db8dbc46c4b060ce9ed080fb1ddd345f42522dc9320f9bc7985bd4da0f35090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:264-338 | davarocr/davar_ner/models/decoders/layers/crf.py:260-334 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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. 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aac2477f90a077085272867230a7bacad3c0b4e79f8c1bff8ce1713699f42dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201350 lines \u00D7 2): davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py:30-79 | davarocr/davar_table/models/roi_heads/lgpma_roi_head.py:37-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060StandardRoIHead\u0060 names \u0060mmdet.models.roi_heads\u0060 in one and \u0060mmdet.models.roi_heads.standard_roi_head\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":"davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"91625864daaaea2927744edb96d09d9086599e493f42ac28500d1c743ca1108e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): davarocr/davar_det/core/evaluation/hmean.py:16-93 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:16-93 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_det/core/evaluation/hmean.py:16\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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afb14fbc81ae003ceeb6e400e5c04354704d7e74cbbf588f341448a820da773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:71-115 | davarocr/davar_ner/models/decoders/layers/crf.py:67-111 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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. 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd9dbd0fff27ae06af1050023c75f44d383f3e0a42c7885c7d49447e58d1e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 2): davarocr/davar_ie/models/infor_extrators/trie/trie.py:260-302 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:201-242 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py\u0060 and \u0060davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcab5a5107f3c2435081682daf8f11f650476c4a32bb04f62ea2f87acd60d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:347-426 | davarocr/davar_ner/models/decoders/layers/crf.py:343-422 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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. 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5328ba882a75514f2c538c99f5c9036ac9b8bb078d11e7717a70ccfa2c063271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:216-256 | davarocr/davar_ner/models/decoders/layers/crf.py:212-252 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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. 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1bf0d62861b9fd94d336d2ae2a1f39475e7442065af79d805bb1cc50c01cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201339 lines \u00D7 2): davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py:116-140 | davarocr/davar_table/models/roi_heads/lgpma_roi_head.py:94-132 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py:116\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":"davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54fdbe48f3dfc3ec692c82c6730c55c89fa6083b69033f2e73284cfe81519f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201338 lines \u00D7 3): davarocr/davar_ie/models/infor_extrators/trie/trie.py:159-192 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:141-172 | davarocr/davar_table/models/understanding_detectors/ctunet.py:184-221 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py\u0060 and \u0060davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py:159\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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"590dab38d95b3c74bb0c41174e56002f71d70bbef990d77e9d50da2ea8306d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): davarocr/davar_ie/models/infor_extrators/trie/trie.py:48-84 | davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:46-80 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py\u0060 and \u0060davarocr/davar_order/models/reading_order_detectors/gcn_pn.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a40718d8eb9db5ddc7fc6d68af3c11c95cf11facda5a3eb0b49b2c749a9eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): davarocr/davar_rcg/models/backbones/ResNet32.py:154-188 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:199-233 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/backbones/ResNet32.py\u0060 and \u0060davarocr/davar_rcg/models/backbones/ResNetRFL.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d2d9bc78851ed87f4aec82ee55b1490b9e6333e5da545111056db457067ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 3): davarocr/davar_distill/models/distillation/base.py:115-148 | davarocr/davar_nlp_common/models/models/encoder_decoder.py:98-130 | davarocr/davar_rcg/models/recognizors/base.py:149-182 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_distill/models/distillation/base.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2e23779a0bb543b71f6eafd3a9418716a9debfa7e0dc0a725cafdb22b0bde4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 3): davarocr/davar_rcg/core/converters/att_converter.py:47-78 | davarocr/davar_rcg/core/converters/bert_converter.py:45-76 | davarocr/davar_rcg/core/converters/rfl_converter.py:45-78 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/core/converters/att_converter.py\u0060 and \u0060davarocr/davar_rcg/core/converters/bert_converter.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/core/converters/att_converter.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1cb113766452672bac5e8d507294b4f4885b7fb14db205823b71120622e090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:121-151 | davarocr/davar_ner/models/decoders/layers/crf.py:117-147 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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. 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f8673e34eac27b4a8d1a77086e89c558d5574a1c3f017c913e3e4f32db6afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201330 lines \u00D7 2): davarocr/davar_det/core/evaluation/hmean.py:217-246 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:244-266 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"b783d608de20432bcd93ee07ec62e98186584cb98c5972fc169c8ceccbb57b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:85-113 | davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:167-196 \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 \u0060davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:162\u0060 calls \u0060score_map_sigmoid\u0060, \u0060score_map\u0060 and \u0060davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:82\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":"davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e24fb35eb239c06471e1d9c03a63a9e33a6a7042d7c0cc9cde2e57a65b5d09d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201329 lines \u00D7 5): davarocr/davar_ie/models/infor_extrators/trie/trie.py:181-207 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:161-187 | davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:140-162 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:262-290 | davarocr/davar_table/models/understanding_detectors/ctunet.py:210-236 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py\u0060 and \u0060davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:135\u0060 calls \u0060deepcopy\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:258\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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"449a72a800bf5d458e0096415aba03d98c923522cc2496faeb1d2ba329b416c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): davarocr/davar_common/datasets/sampler/davar_sampler.py:157-184 | davarocr/davar_common/datasets/sampler/davar_sampler.py:281-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":"davarocr/davar_common/datasets/sampler/davar_sampler.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"78664e364997ef778e02fd7003d0e1a6eefe00263a48ce071ff7820deb940160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 3): davarocr/davar_rcg/models/backbones/ResNet32.py:215-241 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:85-111 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:236-263 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/backbones/ResNet32.py\u0060 and \u0060davarocr/davar_rcg/models/backbones/ResNetRFL.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \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":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e938f2f6841e60f3a31f56c1bdc46eea03078f2002f80b904fae637db9d8c414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 3): davarocr/davar_rcg/models/backbones/ResNet32.py:244-269 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:266-291 | davarocr/davar_videotext/models/backbones/ResNet32.py:48-75 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/backbones/ResNet32.py\u0060 and \u0060davarocr/davar_rcg/models/backbones/ResNetRFL.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"94aac64f431e993bf2b91e5e353b51a7716cd47c88af4dee0c1dc3d9d3b31cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/davar_loading.py:764-791 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:330-355 \u2014 before extracting anything, compare \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py\u0060 and \u0060davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd02506a84d373ba6fbd4adc044b6111f83c7a059afaf313af8d77bb59a5c6d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py:347-374 | davarocr/davar_rcg/datasets/pipelines/davar_loading_lmdb.py:255-282 \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":"davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9db3484d748bd32ab0483fe6acba8c41c5ef907e8b83d7a09ad8152f3621cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201328 lines \u00D7 2): davarocr/davar_rcg/models/sequence_heads/att_head.py:279-300 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:327-354 \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":"davarocr/davar_rcg/models/sequence_heads/att_head.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a1fdd2f57e8979043f9634c77f2787dc7585f214226271ddf70b6e0c4bb692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:345-372 | davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py:59-86 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py\u0060 and \u0060davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 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":"davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f063138361f5d7fcd667cfa2416f8c85d6185c0564acc78902caff4defd6bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/davar_loading.py:832-858 | davarocr/davar_table/datasets/pipelines/ctunet_loading.py:109-135 \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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59428698e183d6f3a7880c83f2d5871bdecef02ef6974314fceb1601ac59ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201326 lines \u00D7 5): davarocr/davar_ie/models/infor_extrators/trie/trie.py:363-382 | davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:330-354 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:406-431 | davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py:118-143 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:201-225 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6153cb272c762bf7fd10584ca5c5bc2902a3aace6a0555ac62dd32ec94975e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): davarocr/davar_common/datasets/davar_custom.py:183-207 | davarocr/davar_videotext/datasets/multi_frame_dataset.py:125-150 \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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d732152f341ad7050868fa97d6b8e7e8ee26e9a5ba6352d5d1df8d5a5906003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/davar_loading.py:675-700 | davarocr/davar_common/datasets/pipelines/davar_loading.py:703-728 \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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1478d9e7ce74c9b10af14428719f216ffdd1a5de08e4e66a2959acade8a5613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:185-210 | davarocr/davar_ner/models/decoders/layers/crf.py:181-206 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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. 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3cea0d0d3a28e1ccb6ad5007d938b956111a688610c3c708d714aec83a839b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): davarocr/davar_rcg/models/transformations/gaspin_transformation.py:122-145 | davarocr/davar_rcg/models/transformations/spin_transformation.py:228-253 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/transformations/gaspin_transformation.py\u0060 and \u0060davarocr/davar_rcg/models/transformations/spin_transformation.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/transformations/gaspin_transformation.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8ac8fe5c95a0ccbaa25a7c2b6671adf25805090ce5f85f1ef17e9d36fe6415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): davarocr/davar_det/core/post_processing/post_mask_rcnn.py:36-60 | davarocr/davar_spotting/core/post_processing/post_mask_rcnn_spot.py:38-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_det/core/post_processing/post_mask_rcnn.py:36\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":"davarocr/davar_det/core/post_processing/post_mask_rcnn.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d706bd934b4d3d8b19a706e1596cd3542eda1f4be9e3135da059ef1aabecddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): davarocr/davar_det/models/seg_heads/east_head.py:100-125 | davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:205-230 \u2014 before extracting anything, compare \u0060davarocr/davar_det/models/seg_heads/east_head.py\u0060 and \u0060davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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":"davarocr/davar_det/models/seg_heads/east_head.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d19e3c8a82d4bac9b5b387af3d8e592d73a2a231957a958171cb1a06b0d13b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): davarocr/davar_layout/models/vsr/vsr.py:282-306 | davarocr/davar_layout/models/vsr/vsr.py:393-416 \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":"davarocr/davar_layout/models/vsr/vsr.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fbd2e358ac8d0284072ee707ea500a6a906e1ed9ff54615aa52f5fd0ac7313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:245-269 | davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:201-223 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py\u0060 and \u0060davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:245\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":"davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f41a94d4f5822e91983b860ca5068fa4049f6396e379368da92a8c1c1540e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): davarocr/davar_rcg/models/recognizors/rf_learning.py:191-214 | davarocr/davar_rcg/models/recognizors/rf_learning.py:282-305 \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":"davarocr/davar_rcg/models/recognizors/rf_learning.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b90070d3eb80b491dd51502a29392268995b47517df486bd7f513f1f789b302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201323 lines \u00D7 3): davarocr/davar_det/models/seg_heads/tp_head.py:94-109 | davarocr/davar_spotting/models/seg_heads/centerline_seg_head.py:66-88 | davarocr/davar_table/models/seg_heads/gpma_mask_head.py:67-82 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_det/models/seg_heads/tp_head.py:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/models/seg_heads/tp_head.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3144afac521b3255181fe6d565fa6f59bd02247c1a3f5403c19ffe8162bf1c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): davarocr/davar_common/datasets/davar_custom.py:155-177 | davarocr/davar_videotext/datasets/multi_frame_dataset.py:157-179 \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, \u0060davarocr/davar_videotext/datasets/multi_frame_dataset.py:180\u0060 calls \u0060get\u0060 and \u0060davarocr/davar_common/datasets/davar_custom.py:178\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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d1bcea43057e9c3c94a851bcdece897a370eefedd725f1b3c04173c0d5edf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:164-211 | davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:240-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_order/models/reading_order_detectors/gcn_pn.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddabe974efbb97ba710819eb529fa0e6e3b6c4a32e17f87d047a7d9112f0fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): davarocr/davar_table/core/evaluation/tree_f1_score.py:159-181 | davarocr/davar_table/core/evaluation/tree_f1_score.py:185-207 \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 \u0060davarocr/davar_table/core/evaluation/tree_f1_score.py:159\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":"davarocr/davar_table/core/evaluation/tree_f1_score.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f5b69e856d3dca9c00e85d8ad69dcda929c4963a5b9c569ea6231038c5de5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 5): davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:150-171 | davarocr/davar_ie/models/infor_extrators/trie/trie.py:222-242 | davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:249-270 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:304-325 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:120-141 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:172\u0060 calls \u0060update\u0060 and \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py:244\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":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"091fa5c06c7cc9327935e6c2f612fae4580b5b4d10fe0134e435e8f5de310f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:40-61 | davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:40-61 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py\u0060 and \u0060davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2914b276ff7a6066d2563fc7e60877bec564ebfbe019576f71e5802972973ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): davarocr/davar_table/core/bbox/bbox_process.py:43-64 | davarocr/davar_table/core/bbox/bbox_process.py:83-104 \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":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd8baae515eebab3cf68b658b6d5608aab1a9b84f4d99bce29f81a725fbabc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 6): davarocr/davar_ie/models/infor_extrators/trie/trie.py:183-202 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:163-182 | davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:142-158 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:265-285 | davarocr/davar_table/models/detectors/lgpma.py:115-133 | davarocr/davar_table/models/understanding_detectors/ctunet.py:212-231 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py\u0060 and \u0060davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9214a40684a755080c2e1936acb0c386a3d06ad175f9029e7020bd777153932a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): davarocr/davar_common/datasets/pipelines/davar_loading.py:280-300 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:154-173 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:145-165 \u2014 before extracting anything, compare \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py\u0060 and \u0060davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py:278\u0060 calls \u0060get\u0060 and \u0060davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:152\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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"950c98c6e404a04739700bc63d5cf392b6916e12800d1f82dacd4098cc506f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 2): davarocr/davar_ie/models/infor_extrators/trie/trie.py:209-229 | davarocr/davar_ie/models/infor_extrators/trie/trie.py:353-369 \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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03fc7632700d6ca820f9e1973762b51653ac3097062162f7103afbdd2dc5059"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): davarocr/davar_table/core/post_processing/post_lgpma.py:160-180 | davarocr/davar_table/core/post_processing/post_lgpma.py:184-204 \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":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f961eb69e05092e84a6589b7663ac2883aaab31ef66bf17c5ee3b373f0f43e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): davarocr/davar_det/core/evaluation/hmean.py:278-296 | demo/text_detection/evaluation/script.py:366-385 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060demo/text_detection/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8078b04af4fe473dfaf7bc4eefeb73aed8c9d0148dabd5754269e300ca1dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): davarocr/davar_det/datasets/text_det_dataset.py:91-110 | davarocr/davar_spotting/datasets/text_spot_dataset.py:112-130 \u2014 before extracting anything, compare \u0060davarocr/davar_det/datasets/text_det_dataset.py\u0060 and \u0060davarocr/davar_spotting/datasets/text_spot_dataset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb12962afb2cdcb46023d68ed68cde289c45910646131e4d8d606ed5c7882845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:156-177 | davarocr/davar_ner/models/decoders/layers/crf.py:152-173 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a5b6cb516511e444f85f47e2b0e38a6f5e4781f8e139bbd10c1dd90b37588e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:292-310 | davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py:106-125 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py\u0060 and \u0060davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 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":"davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3686beb70fd33c02744cd9a77300d5c720fb57c3c14d473c8c52e8fa70529e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 4): davarocr/davar_rcg/models/backbones/ResNet32.py:38-56 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:114-132 | davarocr/davar_rcg/models/backbones/VGG7.py:77-95 | davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py:39-56 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/backbones/ResNet32.py\u0060 and \u0060davarocr/davar_rcg/models/backbones/ResNetRFL.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6fe9092b27acab85094feaa3b5ab4bf4d20c1ed8ecc271c76147c57dd79242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/transforms.py:173-191 | davarocr/davar_common/datasets/pipelines/transforms.py:221-238 \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":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f1af6057ca91f78d778b94024eb4d92b6b92e29329fe5a0890efedf8cd86d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/transforms.py:503-521 | davarocr/davar_videotext/datasets/pipelines/transforms.py:145-163 \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":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc54c4ca0226337b30db29e4e63d8c0870ba6ff214f8b490de119c4eec84a84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): davarocr/davar_det/core/evaluation/hmean.py:140-158 | demo/text_detection/evaluation/script.py:178-196 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060demo/text_detection/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a1cf8967c9329b9740f43baabc413351276e1a06053c368d894f9f4b22be2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): davarocr/davar_det/core/post_processing/post_east.py:138-155 | davarocr/davar_det/core/post_processing/post_east.py:159-177 \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":"davarocr/davar_det/core/post_processing/post_east.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaf37ae1548ca743e0a0e415c8a26cf3e2e03a41037b2041c1fe07a8cdb476c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): davarocr/davar_ie/datasets/wildreceipt_dataset.py:51-71 | davarocr/davar_table/datasets/ctunet_dataset.py:67-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/datasets/wildreceipt_dataset.py:51\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":"davarocr/davar_ie/datasets/wildreceipt_dataset.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b865e824f109881a7d088519eb6e80f460e742ed3b1763b9dde12c1125bbe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201319 lines \u00D7 2): davarocr/davar_rcg/datasets/davar_rcg_dataset.py:143-156 | davarocr/davar_rcg/datasets/davar_rcg_dataset.py:170-188 \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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"31102a35db5b13e0f77e5e8525c43452f9683adcce9078e370ba44ca3c6ec9ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): davarocr/davar_rcg/models/recognizors/general.py:245-263 | davarocr/davar_videotext/models/recognizors/text_recommender.py:169-184 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_videotext/models/recognizors/text_recommender.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4aeab38078f232cac5647bb25effd9121859e4412b44fda2856634dc57d5659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): davarocr/davar_table/models/roi_heads/mask_heads/lpma_mask_head.py:206-224 | davarocr/davar_table/models/roi_heads/mask_heads/lpma_mask_head.py:228-246 \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":"davarocr/davar_table/models/roi_heads/mask_heads/lpma_mask_head.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"98af5ca83f83e08a5aeb51ff3128d7b1f2f9d586bd2bcd6a50cceffbf0b4961a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): davarocr/davar_rcg/models/sequence_heads/ace_head.py:60-77 | davarocr/davar_rcg/models/sequence_heads/att_head.py:76-93 | davarocr/davar_rcg/models/sequence_heads/counting_head.py:64-81 | davarocr/davar_rcg/models/sequence_heads/warpctc_head.py:69-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/sequence_heads/ace_head.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6811eaa168c70aee327894201afe2c77f2463aea865b1c38e209954223106d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201318 lines \u00D7 4): davarocr/davar_rcg/models/transformations/gaspin_transformation.py:78-88 | davarocr/davar_rcg/models/transformations/gaspin_transformation.py:94-102 | davarocr/davar_rcg/models/transformations/spin_transformation.py:157-174 | davarocr/davar_rcg/models/transformations/spin_transformation.py:200-215 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/transformations/gaspin_transformation.py\u0060 and \u0060davarocr/davar_rcg/models/transformations/spin_transformation.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_rcg/models/transformations/gaspin_transformation.py:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_rcg/models/transformations/gaspin_transformation.py:102\u0060 calls \u0060Conv2d\u0060 and \u0060davarocr/davar_rcg/models/transformations/gaspin_transformation.py:88\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":"davarocr/davar_rcg/models/transformations/gaspin_transformation.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b405abc65dcf3b9ec469b011a16f8fdea0390e63311bee86ef08e98618fee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): davarocr/davar_det/core/evaluation/hmean.py:183-200 | demo/text_detection/evaluation/script.py:219-236 | demo/text_spotting/evaluation/script.py:167-184 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060demo/text_detection/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"96429b95a2bdb3c6c6f6c29ad8e71d4d5190f9aa5965f691a9ebba56869f7d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/davar_formating.py:84-101 | davarocr/davar_table/datasets/pipelines/ctunet_formating.py:31-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_common/datasets/pipelines/davar_formating.py:84\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":"davarocr/davar_common/datasets/pipelines/davar_formating.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2b9308df1767390423ec1057c79c3d93bc8ef0c5c6084b4b7ee218c1ceec40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): davarocr/davar_distill/models/distillation/base.py:77-94 | davarocr/davar_spotting/models/spotters/base/base.py:46-63 \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":"davarocr/davar_distill/models/distillation/base.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a2341bba5f919d7eca52bbe8547bba8a032b29fb4e8847516a0fa1a90cbdba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:77-94 | davarocr/davar_table/models/understanding_detectors/ctunet.py:69-86 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py\u0060 and \u0060davarocr/davar_table/models/understanding_detectors/ctunet.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:77\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":"davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bec8170526348e9c0c35209532d2d9ca7e6b8cf8c8e48a87e451773a426bfe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 5): davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:241-255 | davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:322-336 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:397-413 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:112-126 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:193-207 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:231\u0060 calls \u0060get_target\u0060, \u0060loss\u0060, \u0060update\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:318\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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"186097dca6789cc152ec64b38500416fa7f5d2f9650852969f7aabbdb5ef7990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): davarocr/davar_rcg/core/converters/ace_converter.py:50-66 | davarocr/davar_rcg/core/converters/att_converter.py:79-94 | davarocr/davar_rcg/core/converters/bert_converter.py:77-93 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/core/converters/att_converter.py\u0060 and \u0060davarocr/davar_rcg/core/converters/bert_converter.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/core/converters/ace_converter.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bed4173fbbe0e7e50b711be30a28f518b95309c87cf7754ec95a6b80f97afa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): davarocr/davar_rcg/models/recognizors/general.py:187-203 | davarocr/davar_rcg/models/recognizors/general.py:256-270 | davarocr/davar_rcg/models/recognizors/rf_learning.py:311-325 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_rcg/models/recognizors/general.py:187\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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"761fdc9168960d0459152a08477db8a3457313d25f7d9083045bb12f0f14cf34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): davarocr/davar_rcg/models/connects/stack_block.py:51-67 | davarocr/davar_rcg/models/connects/stack_block.py:134-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_rcg/models/connects/stack_block.py:152\u0060 calls \u0060constant_\u0060 and \u0060davarocr/davar_rcg/models/connects/stack_block.py:68\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":"davarocr/davar_rcg/models/connects/stack_block.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09f842529656f48ef53e1e36c09feb32b7bf59374f2eea94a6f07e6ef22ea53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): davarocr/davar_rcg/models/transformations/gaspin_transformation.py:148-163 | davarocr/davar_rcg/models/transformations/spin_transformation.py:256-272 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/transformations/gaspin_transformation.py\u0060 and \u0060davarocr/davar_rcg/models/transformations/spin_transformation.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/transformations/gaspin_transformation.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e9ea60117c148aef44246a1fe1ecee52d31bdebea5b608034b2171e606c809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 7): davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:113-127 | davarocr/davar_ie/models/infor_extrators/trie/trie.py:184-199 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:164-179 | davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:143-155 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:266-281 | davarocr/davar_table/models/detectors/lgpma.py:116-130 | davarocr/davar_table/models/understanding_detectors/ctunet.py:213-228 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 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 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4218af7e5c771f88e6bcd5d22b4dc237574d02dd9e4f5eedcbe7707e6a42ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): davarocr/davar_common/core/evaluation/davar_eval_hook.py:283-298 | davarocr/davar_common/core/evaluation/davar_eval_hook.py:331-346 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/core/evaluation/davar_eval_hook.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"166310431ba4297f1d44c80f559ec484a3e7774c08ac222e755fc6be3f766d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): davarocr/davar_det/models/detectors/seg_based_det.py:56-69 | davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:154-169 \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":"davarocr/davar_det/models/detectors/seg_based_det.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc7ba18dbac8ad72b3f40965578208d614ddedd54425d4864141ce99fe4ec03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201333 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:110-142 | davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:92-121 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py\u0060 and \u0060davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87062a76f0110889bf64b86162d69f533c9a522f0c5a25484dfcfc23cfed228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/davar_loading.py:747-761 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:416-430 \u2014 before extracting anything, compare \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py\u0060 and \u0060davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 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. 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d810211cd71ac633553db11388e0c77f010b1da88fe8b3882c356751d96d6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 8): davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:145-157 | davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:244-256 | davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:325-337 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:299-311 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:401-414 | davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py:113-126 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:115-127 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:196-208 \u2014 there are 8 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:142\u0060 calls \u0060update\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:296\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":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c5bcd28414e99b5469ba3ba15d48084d25cc77510b8cafc8c024522d5813c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201327 lines \u00D7 4): davarocr/davar_common/datasets/pipelines/davar_loading.py:563-589 | davarocr/davar_common/datasets/pipelines/davar_loading.py:598-616 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:260-286 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:295-313 \u2014 before extracting anything, compare \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py\u0060 and \u0060davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"65279144cb04af948d81f5d63fff49c0cb1c4b715d02af5ac6ecfe521d9ca316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): davarocr/davar_layout/datasets/docbank_dataset.py:149-162 | davarocr/davar_layout/datasets/mm_layout_dataset.py:156-167 | davarocr/davar_layout/datasets/publaynet_dataset.py:186-198 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_layout/datasets/docbank_dataset.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"16634efbea246327b244420a7127ed4eaff3301dbc8b6d1438ae4e7093dcbe68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): davarocr/davar_layout/models/vsr/vsr.py:181-194 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:181-195 | davarocr/davar_spotting/models/spotters/mango.py:146-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_layout/models/vsr/vsr.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a11f64993da2263d6a011072c72b42e154698a76ec3188d3eb919caa37f588d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): davarocr/davar_rcg/models/backbones/ResNet32.py:271-283 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:167-180 | davarocr/davar_videotext/models/backbones/ResNet32.py:79-92 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/backbones/ResNet32.py\u0060 and \u0060davarocr/davar_rcg/models/backbones/ResNetRFL.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"a961c50020c9bd7ac863bdec4e09dbae2d16a47e08ed2909ff3a0e5268fc675b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 6): davarocr/davar_det/core/post_processing/post_east.py:54-56 | davarocr/davar_det/core/post_processing/post_tp_det.py:39-54 | davarocr/davar_det/datasets/pipelines/east_data.py:48-51 | davarocr/davar_det/datasets/pipelines/tp_data.py:46-48 | davarocr/davar_spotting/core/post_processing/post_mango.py:39-52 | davarocr/davar_table/datasets/pipelines/gpma_data.py:43-46 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_det/core/post_processing/post_tp_det.py:54\u0060 calls \u0060realpath\u0060 and \u0060davarocr/davar_det/core/post_processing/post_east.py:56\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/core/post_processing/post_east.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b065d4758405035ef45f5efe8818fe706bda3b60fd808ea310dd57a8674e2277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): davarocr/davar_layout/models/embedding/bertgrid_embedding.py:63-79 | davarocr/davar_layout/models/embedding/chargrid_embedding.py:57-70 \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":"davarocr/davar_layout/models/embedding/bertgrid_embedding.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a879bd612a244e37c2b04ab372948511052946f2541d4a6a3b1858c8493f15a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): davarocr/davar_rcg/models/recognizors/general.py:168-181 | davarocr/davar_rcg/models/recognizors/general.py:239-252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a719217374f8f2032aff5c6f14d02867bbf4ccafc5adea826431bce579ee9850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): davarocr/davar_rcg/models/recognizors/general.py:174-187 | davarocr/davar_videotext/models/recognizors/text_recommender.py:110-119 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_videotext/models/recognizors/text_recommender.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"537da809492a3eb52fa0385b91febb637c4cbb6d16b84bdc430908742e7754b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): davarocr/davar_rcg/models/sequence_heads/att_head.py:164-175 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:189-202 \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":"davarocr/davar_rcg/models/sequence_heads/att_head.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af5a10dd1fe03816226f8382d699b638671a4537faec913b7add28ddf0c2097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): davarocr/davar_videotext/models/recognizors/text_recommender.py:101-114 | davarocr/davar_videotext/models/recognizors/text_recommender.py:161-173 \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":"davarocr/davar_videotext/models/recognizors/text_recommender.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d09b4e94b9c50265c326a626083f5e002a9df82e575b4cbcc5a1024a6376f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): davarocr/davar_rcg/models/recognizors/general.py:186-198 | davarocr/davar_rcg/models/recognizors/general.py:255-266 | davarocr/davar_rcg/models/recognizors/rf_learning.py:219-231 | davarocr/davar_rcg/models/recognizors/rf_learning.py:310-322 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py:232\u0060 calls \u0060get_target\u0060 and \u0060davarocr/davar_rcg/models/recognizors/general.py:202\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"5954ab0927aae8ce39ccc0890a381c9368800ab33b2e0f137db173afcead55f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): davarocr/davar_table/core/post_processing/generate_html.py:46-58 | davarocr/davar_table/core/post_processing/generate_html.py:71-83 | davarocr/davar_table/core/post_processing/generate_html.py:96-108 | davarocr/davar_table/core/post_processing/generate_html.py:127-139 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_table/core/post_processing/generate_html.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"830d355ed0537cb06dcaf2594f74219ed2c158e05df7b9d51e7d91ab8d777b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): davarocr/davar_ie/models/connects/multimodal_context_module.py:51-63 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:63-75 | davarocr/davar_layout/models/heads/gcn_head.py:66-78 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py\u0060 and \u0060davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060BertConfig\u0060 names \u0060.util\u0060 in one and \u0060davarocr.davar_ie.models\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:60\u0060 calls \u0060get\u0060 and \u0060davarocr/davar_layout/models/heads/gcn_head.py:65\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce405f2cd794992565d4774ef9f8ce64251a27da3fddaaf9d47c410c5c07b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): davarocr/davar_ie/models/connects/multimodal_context_module.py:151-161 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:197-207 | davarocr/davar_layout/models/heads/gcn_head.py:202-214 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py\u0060 and \u0060davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py:151\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":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e387c03bbc217be57acff5f1858ec10fb3f8fa7653ffa7cd6891aae5283542ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py:296-308 | davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py:365-377 | davarocr/davar_rcg/datasets/pipelines/davar_loading_lmdb.py:273-285 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4fe1cfb5135592f95bfa79df57d9e205ba7b48fe9f2cd17209f01ef8c12c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): davarocr/davar_rcg/models/recognizors/general.py:183-195 | davarocr/davar_rcg/models/recognizors/rf_learning.py:216-228 | davarocr/davar_videotext/models/recognizors/text_recommender.py:116-126 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py:232\u0060 calls \u0060get_target\u0060 and \u0060davarocr/davar_rcg/models/recognizors/general.py:202\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b5f70d5510e87e18a613b3c824135513203df69b59a977eb8ca13f787af772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): davarocr/davar_det/core/evaluation/hmean.py:301-313 | demo/text_spotting/evaluation/script.py:435-447 \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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d52ced48ed49974de30b7d23e7452d6b40f2b480b32f8479ce8fb06a5076cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): davarocr/davar_det/datasets/text_det_dataset.py:116-127 | davarocr/davar_table/datasets/table_rcg_dataset.py:175-187 \u2014 before extracting anything, compare \u0060davarocr/davar_det/datasets/text_det_dataset.py\u0060 and \u0060davarocr/davar_table/datasets/table_rcg_dataset.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0609a8d6a89e3f2e82a2a29ab588dea0a1cbd9755ba9038e1abdca34c00fb9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): davarocr/davar_layout/models/vsr/vsr.py:108-118 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:67-79 \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 before the matched lines, \u0060davarocr/davar_layout/models/vsr/vsr.py:104\u0060 calls \u0060build_roi_extractor\u0060, \u0060build_head\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:65\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":"davarocr/davar_layout/models/vsr/vsr.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"df026bea39955b657f64b831eaca8fc9df8da22a0ba9e25055b36d99ac41d277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): davarocr/davar_table/models/understanding_detectors/ctunet.py:285-297 | davarocr/davar_table/models/understanding_detectors/ctunet.py:338-350 \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":"davarocr/davar_table/models/understanding_detectors/ctunet.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2091e001f2bcc3b8fd33a3cb5490d254cb3029cb244de47d376371885ba1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): davarocr/davar_table/models/understanding_detectors/ctunet.py:309-321 | davarocr/davar_table/models/understanding_detectors/ctunet.py:358-370 \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":"davarocr/davar_table/models/understanding_detectors/ctunet.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c0d57119d38511dea307e43d378010e3c081deb172ee4271684bc36f5d418e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:371-383 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:411-423 \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":"davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a43e0e61d7f774fb1a3476b5a145d05c76242222223a866a31692eb78b892f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): davarocr/davar_common/datasets/pipelines/davar_loading.py:295-306 | davarocr/davar_common/datasets/pipelines/transforms.py:453-463 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:169-179 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:160-171 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:210-220 \u2014 before extracting anything, compare \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py\u0060 and \u0060davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d19a598225fb0426aff094ab1ad958e4f6984375774ffa196f521fc312be6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): davarocr/davar_rcg/core/converters/att_converter.py:44-54 | davarocr/davar_rcg/core/converters/bert_converter.py:42-53 | davarocr/davar_rcg/core/converters/ctc_converter.py:45-56 | davarocr/davar_rcg/core/converters/rfl_converter.py:42-53 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/core/converters/att_converter.py\u0060 and \u0060davarocr/davar_rcg/core/converters/bert_converter.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/core/converters/att_converter.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c462bccd4bb1cfbca2ff2213364c86e079114986b266bff0a983970af165d40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): davarocr/davar_rcg/core/converters/ace_converter.py:57-68 | davarocr/davar_rcg/core/converters/att_converter.py:85-96 | davarocr/davar_rcg/core/converters/rfl_converter.py:82-93 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/core/converters/att_converter.py\u0060 and \u0060davarocr/davar_rcg/core/converters/rfl_converter.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/core/converters/ace_converter.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"16843a4932cc81fb1064395e757171f9e343bcab7999f81089f4a12ba312aca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 3): davarocr/davar_ie/models/backbones/chargrid_backbone.py:72-75 | davarocr/davar_ie/models/backbones/chargrid_backbone.py:79-90 | davarocr/davar_ie/models/backbones/chargrid_backbone.py:96-107 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/backbones/chargrid_backbone.py:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea40fb475c1dc5700116d1e0685c62b8b1ebf73f33bc047e176357f0e49691d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): davarocr/davar_ie/models/connects/multimodal_context_module.py:133-144 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:179-190 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py\u0060 and \u0060davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f70c71f6135d60995dcadac66933fc9a56cd32d37a454acca59db016bcb693e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): davarocr/davar_ner/datasets/loaders/ner_loader.py:154-176 | davarocr/davar_ner/datasets/loaders/ner_loader.py:198-219 \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":"davarocr/davar_ner/datasets/loaders/ner_loader.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7997ef0381f06533ba4ad8dfbd6a9cb763aa348aff3fee05e3f98543c62545cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): davarocr/davar_rcg/models/connects/stack_block.py:37-48 | davarocr/davar_rcg/models/connects/stack_block.py:121-131 \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":"davarocr/davar_rcg/models/connects/stack_block.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb53593938dd362d2a433aea215cdca2f4aa741710f4b9f25dc3bb96c0763b1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): davarocr/davar_videotext/models/recognizors/text_recommender.py:118-129 | davarocr/davar_videotext/models/recognizors/text_recommender.py:176-187 \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":"davarocr/davar_videotext/models/recognizors/text_recommender.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fb155ef06fc95e0035fc1ae134c35d1151fb2b1a7a8c1ad4be828dff348511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): davarocr/davar_det/datasets/text_det_dataset.py:120-129 | davarocr/davar_spotting/datasets/text_spot_dataset.py:135-144 | davarocr/davar_table/datasets/table_rcg_dataset.py:179-189 \u2014 before extracting anything, compare \u0060davarocr/davar_det/datasets/text_det_dataset.py\u0060 and \u0060davarocr/davar_spotting/datasets/text_spot_dataset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d5f05906dfa91c4abed6089d64416958a6ef6f4467629fb886fc76de19c505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): davarocr/davar_common/core/evaluation/davar_eval_hook.py:112-122 | davarocr/davar_common/core/evaluation/davar_eval_hook.py:353-363 \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":"davarocr/davar_common/core/evaluation/davar_eval_hook.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0ce4081ef501948d98acf7b84c4a137fcfb92bdf4f886d1853e85bd6017548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): davarocr/davar_rcg/core/converters/bert_converter.py:87-97 | davarocr/davar_rcg/core/converters/ctc_converter.py:86-96 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_rcg/core/converters/bert_converter.py:87\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":"davarocr/davar_rcg/core/converters/bert_converter.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3224257bdffe1571fd32742dd83aac7b2ed1e1441f8c57e80bdee99f3aa14021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): davarocr/davar_rcg/datasets/davar_rcg_dataset.py:223-232 | davarocr/davar_videotext/datasets/yoro_rcg_dataset.py:135-145 \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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"feddc94e61548877983e1e1a31a94e88372b82a13da6144d053f7200f09d07f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u201311 lines \u00D7 3): davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:106-116 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:149-162 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:167-167 \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":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"597afc2f81ec1a195edf83a420c920be8e5baee17485835219420cf8d6614b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): davarocr/davar_spotting/models/roi_extractors/tps_roi_extractor.py:145-156 | davarocr/davar_spotting/models/seg_heads/grid_category_head.py:312-323 \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":"davarocr/davar_spotting/models/roi_extractors/tps_roi_extractor.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a3c8c66503ff5accafd48c36939a3df6f3743937d7d7d61bcd12b0e00c9679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:70-80 | davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:69-79 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py\u0060 and \u0060davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:68\u0060 calls \u0060ModuleList\u0060 and \u0060davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:67\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d6c26e91ffb725dabb4949f32e300f90bc3fa6328aad30ce2a192360f33274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:112-124 | davarocr/davar_ie/models/infor_extrators/trie/trie.py:183-195 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:163-175 | davarocr/davar_layout/models/vsr/vsr.py:330-342 | davarocr/davar_order/models/reading_order_detectors/gcn_pn.py:142-151 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:265-277 | davarocr/davar_table/models/detectors/lgpma.py:115-127 | davarocr/davar_table/models/understanding_detectors/ctunet.py:212-224 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"8434582924be48e75b903ab63a0dd56412e7cc3c3177b9a88397793cdc158e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 8): davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:156-165 | davarocr/davar_ie/models/infor_extrators/trie/trie.py:228-236 | davarocr/davar_rcg/models/recognizors/general.py:180-189 | davarocr/davar_rcg/models/recognizors/rf_learning.py:213-222 | davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:255-264 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:310-319 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:126-135 | davarocr/davar_videotext/models/recognizors/text_recommender.py:113-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_rcg/models/recognizors/general.py:174\u0060 calls \u0060backbone\u0060, \u0060neck\u0060 and \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py:211\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":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0892332d4545aaa80efb2e73f3bf1c79376c6e264d306aa47905c2d4e9a4708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 8): davarocr/davar_distill/models/spotters/kd_two_stage_ete.py:210-218 | davarocr/davar_ie/models/infor_extrators/trie/trie.py:368-374 | davarocr/davar_rcg/models/recognizors/general.py:251-257 | davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:336-345 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:413-422 | davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py:125-134 | davarocr/davar_spotting/models/spotters/text_perceptron_spot.py:207-216 | davarocr/davar_videotext/models/recognizors/text_recommender.py:172-178 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd835002b68893cb534a9126398c600c465fc63e746198765d50ad35c5363d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): davarocr/davar_common/datasets/pipelines/davar_loading.py:582-591 | davarocr/davar_common/datasets/pipelines/davar_loading.py:609-618 | davarocr/davar_common/datasets/pipelines/davar_loading.py:688-697 | davarocr/davar_common/datasets/pipelines/davar_loading.py:716-725 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:279-288 | davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py:306-315 \u2014 before extracting anything, compare \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py\u0060 and \u0060davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 113 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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc303ca5923527e3f56002d5ebeddf9d94dc479830e1fd20f17a0e445ce10ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): davarocr/davar_ie/models/infor_extrators/trie/trie.py:284-293 | davarocr/davar_ie/models/infor_extrators/trie/trie.py:411-419 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:224-233 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:306-314 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py\u0060 and \u0060davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ef81c93d61a897740e4190b83d6138d366acbac431b59f18231ae482500d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): davarocr/davar_rcg/models/recognizors/general.py:184-195 | davarocr/davar_rcg/models/recognizors/rf_learning.py:217-228 | davarocr/davar_rcg/models/recognizors/rf_learning.py:308-319 | davarocr/davar_videotext/models/recognizors/text_recommender.py:117-126 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py:232\u0060 calls \u0060get_target\u0060 and \u0060davarocr/davar_rcg/models/recognizors/general.py:202\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7a221ccf301f930d331e47a7413b7e0dc6d53fb3ba19dd9e84ff3a1f8049ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): davarocr/davar_common/datasets/pipelines/davar_loading.py:851-860 | davarocr/davar_table/datasets/pipelines/ctunet_loading.py:128-137 | davarocr/davar_table/datasets/pipelines/davar_loading_table.py:297-306 \u2014 before extracting anything, compare \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py\u0060 and \u0060davarocr/davar_table/datasets/pipelines/davar_loading_table.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_table/datasets/pipelines/davar_loading_table.py:295\u0060 calls \u0060_load_enlarge_bboxes\u0060 and \u0060davarocr/davar_common/datasets/pipelines/davar_loading.py:850\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"b809e7163101758d1bead8741b58b79d2c2eba38b981849a88f2cc425d4c7921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): davarocr/davar_det/models/seg_heads/east_head.py:87-96 | davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:108-117 | davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:191-200 \u2014 before extracting anything, compare \u0060davarocr/davar_det/models/seg_heads/east_head.py\u0060 and \u0060davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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":"davarocr/davar_det/models/seg_heads/east_head.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe2c5bad25102f0d207d38e838aa566eda17d7bdc7c18583bf0b2cb8551c72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): davarocr/davar_ie/models/infor_extrators/trie/trie.py:328-337 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:363-373 | davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py:77-87 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab0bd2e2ecef1b753d412f666ee1b17cabf490e25d99db6647af021240ed63e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:44-53 | davarocr/davar_ner/models/decoders/layers/crf.py:40-49 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f35a6f70b24115a0be926ab3b73a05508bad3a6752386353094fc93b1fb1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): davarocr/davar_layout/datasets/publaynet_dataset.py:245-254 | davarocr/davar_layout/datasets/publaynet_dataset.py:264-273 \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":"davarocr/davar_layout/datasets/publaynet_dataset.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f3381bb731f2bc465867b575e00a42e83110f122af4b3092910900c9083180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): davarocr/davar_rcg/models/recognizors/general.py:87-96 | davarocr/davar_rcg/models/recognizors/rf_learning.py:82-91 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ea8a3fbd2f88a4c48a5fac0bb63dd157195e6e65dbc1ef61f8906e8c7213ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): davarocr/davar_rcg/models/recognizors/general.py:186-195 | davarocr/davar_rcg/models/recognizors/general.py:255-263 | davarocr/davar_rcg/models/recognizors/rf_learning.py:219-228 | davarocr/davar_rcg/models/recognizors/rf_learning.py:310-319 | davarocr/davar_videotext/models/recognizors/text_recommender.py:118-126 | davarocr/davar_videotext/models/recognizors/text_recommender.py:176-184 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py:232\u0060 calls \u0060get_target\u0060 and \u0060davarocr/davar_rcg/models/recognizors/general.py:202\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0df276771edebea0423dbeaff324d66b7d2801521228b6949d3ff352be8a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): davarocr/davar_det/core/evaluation/hmean.py:51-63 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:51-63 | demo/text_spotting/evaluation/script.py:115-123 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f027dc2e877451ea95743d46bdd6672838a596ad3a7af1a26acc97d59a0df9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): davarocr/davar_rcg/models/recognizors/general.py:89-97 | davarocr/davar_rcg/models/recognizors/rf_learning.py:84-92 | davarocr/davar_videotext/models/recognizors/text_recommender.py:71-79 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/recognizors/general.py\u0060 and \u0060davarocr/davar_rcg/models/recognizors/rf_learning.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5809e2adc153361ab83f3cfd513fa6e638632835fe3da9aaacf92cef5e222b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/davar_loading.py:333-350 | davarocr/davar_common/datasets/pipelines/davar_loading.py:492-509 \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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"2185fa053bc46c607abfcb9cbac5879713913490168231edcd41af7c5eb22830"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): davarocr/davar_det/core/evaluation/hmean.py:266-274 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:299-306 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 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. 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, \u0060davarocr/davar_det/core/evaluation/hmean.py:276\u0060 calls \u0060empty\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py:308\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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdeffc1300bd92917bcdadca19918c06447a500e8c5d7bbe0f514073a2551eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): davarocr/davar_rcg/models/sequence_heads/att_head.py:147-155 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:164-172 \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, \u0060davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:174\u0060 calls \u0060FloatTensor\u0060 and \u0060davarocr/davar_rcg/models/sequence_heads/att_head.py:156\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/sequence_heads/att_head.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab63e7e9df0a7156e30a3daa4b9137312666ce0d03cc7a4bd7d368d7a7d8931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/grid_category_head.py:213-221 | davarocr/davar_spotting/utils/util_poly.py:87-95 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/grid_category_head.py\u0060 and \u0060davarocr/davar_spotting/utils/util_poly.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 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. 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":"davarocr/davar_spotting/models/seg_heads/grid_category_head.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a09b83241e10739f89f8c83cdb7bdcf3ed5b904ea35620c359166b9f9ac3b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): davarocr/davar_table/datasets/ctunet_dataset.py:199-207 | davarocr/davar_table/datasets/ctunet_dataset.py:218-226 \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":"davarocr/davar_table/datasets/ctunet_dataset.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4715e370d059ccb89df4622ebfc4471cec7e56c7b0c7304a82612c253caea33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): davarocr/davar_det/core/evaluation/hmean.py:256-264 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:288-297 | demo/text_detection/evaluation/script.py:341-348 | demo/text_spotting/evaluation/script.py:381-389 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ebf5daf18e70f2cd62173665d1391c6aabeee032aa2c1aaccf6e031d66c5c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): davarocr/davar_det/core/evaluation/hmean.py:287-294 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:314-321 | demo/text_detection/evaluation/script.py:376-383 | demo/text_spotting/evaluation/script.py:409-416 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba907c0fd58a87289f26dd416690f44018a4cf0943ba89631dfe85dcc93cae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): davarocr/davar_common/datasets/pipelines/davar_formating.py:94-101 | davarocr/davar_distill/dataset/pipelines/distill_formating.py:44-51 | davarocr/davar_table/datasets/pipelines/ctunet_formating.py:41-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_common/datasets/pipelines/davar_formating.py:94\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":"davarocr/davar_common/datasets/pipelines/davar_formating.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d3c1c155a11d501cbf71a1f7d0a46a5149954dc3bd6647f5274a88588dd28f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): davarocr/davar_det/datasets/text_det_dataset.py:83-90 | davarocr/davar_spotting/datasets/text_spot_dataset.py:93-100 | davarocr/davar_table/datasets/table_rcg_dataset.py:114-121 \u2014 before extracting anything, compare \u0060davarocr/davar_det/datasets/text_det_dataset.py\u0060 and \u0060davarocr/davar_spotting/datasets/text_spot_dataset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5f624f431c0597fe3d1098ff663a6d9b8d242d7e5631177f0fc392ead32e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): davarocr/davar_ie/models/backbones/chargrid_backbone.py:63-70 | davarocr/davar_ie/models/backbones/chargrid_backbone.py:80-87 | davarocr/davar_ie/models/backbones/chargrid_backbone.py:97-104 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/backbones/chargrid_backbone.py:63\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":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"085f09099b5f60c8e02e1cffd8b2a906386d159f4aa2f58db3ea5598dc64bf18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): davarocr/davar_ner/datasets/loaders/ner_loader.py:131-139 | davarocr/davar_ner/datasets/loaders/ner_loader.py:167-174 | davarocr/davar_ner/datasets/loaders/ner_loader.py:210-217 \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":"davarocr/davar_ner/datasets/loaders/ner_loader.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ecc69eebec839ac12c796fffedc60d2f8b4c186c287c2c48f99a6916ce8355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): davarocr/davar_videotext/tools/filter.py:141-147 | demo/videotext/evaluation/evaluate_utils.py:236-242 | demo/videotext/evaluation/evaluate_utils.py:474-481 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_videotext/tools/filter.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc9aec2aa045eb647f99b875668f5cea1709a6ac5995c960c592e7fa68faba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): davarocr/davar_det/core/evaluation/hmean.py:323-330 | demo/text_spotting/evaluation/script.py:485-492 \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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa17601b088f1498a551c5ba80282bc48302bb6fd7d43b36bfa4117c5e9c202f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:213-220 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:223-230 \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":"davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d9e2ca9a83eb928e2f5359e16201d8fbea4091000efbd10505cad6d81c6f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): davarocr/davar_rcg/datasets/davar_rcg_dataset.py:329-336 | davarocr/davar_rcg/datasets/davar_rcg_dataset.py:390-395 \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 \u0060davarocr/davar_rcg/datasets/davar_rcg_dataset.py:329\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba0886a35db2ec4d8b6342f46d9c51e6b7d20bdd49cd9e18d2995e1f6214197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py:221-228 | davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:180-187 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py\u0060 and \u0060davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dec24eec83f56a31f8128ee55373fed1d9fa007e1bb27c4c197e30e619ce98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): davarocr/davar_table/core/post_processing/generate_html.py:88-95 | davarocr/davar_table/core/post_processing/generate_html.py:113-120 \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":"davarocr/davar_table/core/post_processing/generate_html.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a002e8307f2cee11cad630b32577bbba5286fbd758631837be835da3d757a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): davarocr/davar_table/core/post_processing/generate_html.py:175-182 | davarocr/davar_table/utils/format.py:15-20 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_table/core/post_processing/generate_html.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"16da1f54065ecdbef2691d046e5add9cf7f4b300f69d6097b2631b8bfc69f42e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): davarocr/davar_rcg/models/backbones/ResNet32.py:51-57 | davarocr/davar_rcg/models/backbones/ResNetRFL.py:127-133 | davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py:51-57 | davarocr/davar_spotting/models/backbone/light_crnn.py:78-84 \u2014 before extracting anything, compare \u0060davarocr/davar_rcg/models/backbones/ResNet32.py\u0060 and \u0060davarocr/davar_rcg/models/backbones/ResNetRFL.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 131 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_rcg/models/backbones/ResNet32.py:59\u0060 calls \u0060TypeError\u0060 and \u0060davarocr/davar_spotting/models/backbone/light_crnn.py:86\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8a64c2e589eb0276aabbb5cafe97c38741754a22f69879f2ecb00d65d57a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): davarocr/davar_ie/models/backbones/chargrid_backbone.py:78-84 | davarocr/davar_ie/models/backbones/chargrid_backbone.py:95-101 | davarocr/davar_ie/models/backbones/chargrid_backbone.py:112-118 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/backbones/chargrid_backbone.py:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1b5bceb906d29dd03b52ab69f57d186fa077cf65fdb09c47e63b6457b637a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): davarocr/davar_ie/datasets/wildreceipt_dataset.py:107-112 | davarocr/davar_table/datasets/ctunet_dataset.py:172-178 \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":"davarocr/davar_ie/datasets/wildreceipt_dataset.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4941d5a633ce894f5c7dd78042f59d30d913d5927b09fd5c14e6188407a98c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 3): davarocr/davar_ie/models/connects/multimodal_context_module.py:225-229 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:317-324 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:336-343 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py\u0060 and \u0060davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py:225\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab9c97386c2e33be4fc439963e0eadfbbdad6dfa37b1e290c85c3ee2d17dcf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): davarocr/davar_ie/models/embedding/text_embedding.py:144-150 | davarocr/davar_ie/models/embedding/text_embedding.py:154-160 \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 \u0060davarocr/davar_ie/models/embedding/text_embedding.py:144\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":"davarocr/davar_ie/models/embedding/text_embedding.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8f691648de6df2757cffb727ff9a9dd64060ae99de619d67fc413ca3be23e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): davarocr/davar_ner/models/ner_models/base_ner.py:29-35 | davarocr/davar_ner/models/ner_models/base_ner.py:58-64 \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":"davarocr/davar_ner/models/ner_models/base_ner.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10a1a073494dff49c83ac0bf07285085b635db4912837de0198182344174931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): davarocr/davar_layout/datasets/publaynet_dataset.py:230-235 | davarocr/davar_layout/datasets/publaynet_dataset.py:247-252 | davarocr/davar_layout/datasets/publaynet_dataset.py:266-271 \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":"davarocr/davar_layout/datasets/publaynet_dataset.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b471347cbdb0d0696c8e4b25e5260d8a35bf5ed6a3d56087c1ba32baeaa57a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): davarocr/davar_common/datasets/sampler/davar_sampler.py:189-194 | davarocr/davar_common/datasets/sampler/davar_sampler.py:313-320 \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 \u0060davarocr/davar_common/datasets/sampler/davar_sampler.py:313\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":"davarocr/davar_common/datasets/sampler/davar_sampler.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"26894b80318bd92a862c6f2def08cddc1f74d3a252a0016e2afc686efbc6e278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): davarocr/davar_det/core/evaluation/hmean.py:272-277 | demo/text_detection/evaluation/script.py:358-363 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060demo/text_detection/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d0eea27041d47882e6b8130f1abfa15df574336cc367b106dc3dd3187f4e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): davarocr/davar_ie/models/connects/multimodal_context_module.py:165-170 | davarocr/davar_ie/models/infor_extrators/chargrid/chargrid_net_ie.py:61-66 \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":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c29e78949e85ff63e44b4bc2fb30bfb1e80e8c2be66469fcbcbb38bed5dcf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): davarocr/davar_ie/models/embedding/text_embedding.py:154-159 | davarocr/davar_ie/models/embedding/text_embedding.py:164-169 \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 \u0060davarocr/davar_ie/models/embedding/text_embedding.py:154\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":"davarocr/davar_ie/models/embedding/text_embedding.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3c582eba5b6781079a0bc406b279e4cc72ee2f1bf867e15b2593d135b4403f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): davarocr/davar_table/core/bbox/bbox_process.py:68-80 | davarocr/davar_table/core/bbox/bbox_process.py:108-120 \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":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59aa9f33f4f37124c10988b0587a48486be235008bff0cea9c6286e10cf24df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): davarocr/davar_ie/models/backbones/chargrid_backbone.py:38-42 | davarocr/davar_ie/models/necks/chargrid_neck.py:84-88 | davarocr/davar_ie/models/necks/chargrid_neck.py:92-96 | davarocr/davar_ie/models/necks/chargrid_neck.py:100-104 | davarocr/davar_ie/models/necks/chargrid_neck.py:108-112 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04ea43ce5772756e19ac5201211e937fead060810c570e84a8aa6def6e3982d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): davarocr/davar_det/core/evaluation/hmean.py:270-274 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:302-306 | demo/text_detection/evaluation/script.py:356-360 | demo/text_spotting/evaluation/script.py:397-401 \u2014 before extracting anything, compare \u0060davarocr/davar_det/core/evaluation/hmean.py\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_det/core/evaluation/hmean.py:276\u0060 calls \u0060empty\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py:308\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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae0e37252beac163de6b3d63594efb5102ed19014ddb9e69d9cf44b22311977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): davarocr/davar_ie/models/backbones/chargrid_backbone.py:55-58 | davarocr/davar_ie/models/backbones/chargrid_backbone.py:61-66 | davarocr/davar_ie/models/necks/chargrid_neck.py:52-56 | davarocr/davar_ie/models/necks/chargrid_neck.py:65-69 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/backbones/chargrid_backbone.py:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_ie/models/backbones/chargrid_backbone.py:60\u0060 calls \u0060ReLU\u0060, \u0060Conv2d\u0060 and \u0060davarocr/davar_ie/models/backbones/chargrid_backbone.py:55\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":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aab9a140cccfa76b3f3ecfd18929a654f6578185fcf7b48906ba782d168318f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): davarocr/davar_ie/models/infor_extrators/trie/trie.py:270-274 | davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py:211-215 | davarocr/davar_table/models/understanding_detectors/ctunet.py:264-268 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/infor_extrators/trie/trie.py\u0060 and \u0060davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 175 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f548ee76052ae10bcdd7cec1ecfb06df4973cf0269b8dd11cf750f22a0a56984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): davarocr/davar_ie/models/necks/chargrid_neck.py:27-31 | davarocr/davar_ie/models/necks/chargrid_neck.py:33-37 | davarocr/davar_ie/models/necks/chargrid_neck.py:39-43 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/necks/chargrid_neck.py:27\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":"davarocr/davar_ie/models/necks/chargrid_neck.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6d0550e2abe7b59e1da48d69d287eabe1704fdca8d17e5e085b6d390cf2b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_det/models/neck/east_merge.py:62-66 | davarocr/davar_ie/models/backbones/chargrid_backbone.py:128-132 \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":"davarocr/davar_det/models/neck/east_merge.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9d7e185c28f81a855fec3b6657e02aa377b46628b17858b4f4b639cc8fa872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): davarocr/davar_ie/models/backbones/chargrid_backbone.py:130-135 | davarocr/davar_ie/models/necks/chargrid_neck.py:121-126 \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":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3219660da5de6c3406e43787e66719a3e837ff73d209cf0dbbfaeba974082c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_ie/models/connects/multimodal_context_module.py:175-179 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:221-225 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py\u0060 and \u0060davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py:175\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":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f61bfde4fc303b2e502bccc97cdc740da52b7b130982b4a72e9a53e6c9559a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:190-197 | davarocr/davar_layout/models/heads/gcn_head.py:195-202 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:190\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":"davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"4943cd7b528be699065312a7889442964dd37437235fc398dd78da0563890a1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): davarocr/davar_ie/models/connects/multimodal_context_module.py:222-225 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:313-317 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:332-336 | davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py:347-349 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/connects/multimodal_context_module.py\u0060 and \u0060davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad95c8100a94e746c76c5e22e0b696142e282294254e8d51c789f7cab2864d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:120-126 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:191-197 \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":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5240dbaf2e6db170177dbd18daad614d24916e221b95990a37683056d948b9d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_rcg/models/sequence_heads/att_head.py:178-182 | davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py:208-214 \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":"davarocr/davar_rcg/models/sequence_heads/att_head.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9dcd8522a0e26e68c34c5c2c0327f335d294d3d79ceba1879e2dd74d415fca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/grid_category_head.py:224-229 | davarocr/davar_spotting/utils/util_poly.py:98-103 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/grid_category_head.py\u0060 and \u0060davarocr/davar_spotting/utils/util_poly.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 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":"davarocr/davar_spotting/models/seg_heads/grid_category_head.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"027d358e129271d603482f12a18d7c7087ca92d76295eb4275e5c743a94193d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_table/core/bbox/bbox_process.py:236-240 | davarocr/davar_table/core/bbox/bbox_process.py:243-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c400beeb678dc3ad5764c6fa18ca6089c80532684079dad0308fe9938642fa01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): davarocr/davar_common/datasets/pipelines/transforms.py:38-59 | davarocr/davar_videotext/datasets/pipelines/transforms.py:37-58 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e222f834105fc643a473a8b188e76689ccb9ad5233ec3c249e670cddd4dfcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): davarocr/davar_common/models/heads/cls_head.py:25-37 | davarocr/davar_ie/models/heads/ner_head.py:26-38 \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":"davarocr/davar_common/models/heads/cls_head.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e84b036bd28fbb7299ddc651ecbd1594c9baff8f076e976ba2f916b51dfe39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 13): davarocr/davar_common/models/heads/cls_head.py:40-52 | davarocr/davar_ie/models/connects/multimodal_context_module.py:77-89 | davarocr/davar_ie/models/connects/multimodal_feature_merge.py:85-97 | davarocr/davar_ie/models/embedding/embedding.py:37-49 | davarocr/davar_ie/models/embedding/node_embedding.py:60-72 | davarocr/davar_ie/models/embedding/position_embedding.py:52-64 | davarocr/davar_ie/models/embedding/sentence_embedding.py:51-63 | davarocr/davar_ie/models/heads/ner_head.py:41-53 | davarocr/davar_layout/models/embedding/bertgrid_embedding.py:45-57 | davarocr/davar_layout/models/embedding/chargrid_embedding.py:42-54 | davarocr/davar_layout/models/embedding/sentencegrid_embedding.py:49-61 | davarocr/davar_layout/models/heads/gcn_head.py:114-126 | davarocr/davar_table/models/cls_heads/table_cls_head.py:59-71 \u2014 before extracting anything, compare \u0060davarocr/davar_common/models/heads/cls_head.py\u0060 and \u0060davarocr/davar_table/models/cls_heads/table_cls_head.py\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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. 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, \u0060davarocr/davar_ie/models/connects/multimodal_feature_merge.py:82\u0060 calls \u0060AdaptiveAvgPool2d\u0060 and \u0060davarocr/davar_ie/models/embedding/node_embedding.py:57\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/models/heads/cls_head.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c614565e338389ba26f7baf7fc7d6129bab7449cc41defe9ec1070d081665e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): davarocr/davar_common/models/heads/cls_head.py:72-85 | davarocr/davar_table/models/cls_heads/table_cls_head.py:93-106 \u2014 before extracting anything, compare \u0060davarocr/davar_common/models/heads/cls_head.py\u0060 and \u0060davarocr/davar_table/models/cls_heads/table_cls_head.py\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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. 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":"davarocr/davar_common/models/heads/cls_head.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ab7fe3497321aff7321642dd13a0782f914a8f9116154fbb05554d9acaf58c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): davarocr/davar_det/datasets/text_det_dataset.py:32-51 | davarocr/davar_spotting/datasets/text_spot_dataset.py:33-57 \u2014 before extracting anything, compare \u0060davarocr/davar_det/datasets/text_det_dataset.py\u0060 and \u0060davarocr/davar_spotting/datasets/text_spot_dataset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0d1e93d0dd8912695d9054aac3931cc6b3196217120adaae6553ad9d3f2963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): davarocr/davar_det/models/detectors/east.py:30-40 | davarocr/davar_det/models/detectors/text_perceptron_det.py:30-41 | davarocr/davar_layout/models/connects/mm_layout_feature_merge.py:27-44 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/models/detectors/east.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"753857be944e4efcad3b1aca8b869e355e6072895438706da3fed4d475da38ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): davarocr/davar_det/models/seg_heads/east_head.py:130-152 | davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py:256-278 \u2014 before extracting anything, compare \u0060davarocr/davar_det/models/seg_heads/east_head.py\u0060 and \u0060davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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. 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":"davarocr/davar_det/models/seg_heads/east_head.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d4b77e093eed4e3557e5b259cb84551153330f5854ce9fe28abd4ad13f260a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): davarocr/davar_distill/models/distillation/base.py:151-183 | davarocr/davar_distill/models/distillation/base.py:186-208 | davarocr/davar_nlp_common/models/models/encoder_decoder.py:133-165 | davarocr/davar_nlp_common/models/models/encoder_decoder.py:168-180 | davarocr/davar_rcg/models/recognizors/base.py:185-217 | davarocr/davar_rcg/models/recognizors/base.py:220-242 \u2014 there are 6 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. 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":"davarocr/davar_distill/models/distillation/base.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96c79713447eb0b17a7c132d2e4f90a434f04687f7a8e4b2202d996fc13fab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): davarocr/davar_ie/models/losses/crf.py:56-62 | davarocr/davar_ner/models/decoders/layers/crf.py:52-58 \u2014 before extracting anything, compare \u0060davarocr/davar_ie/models/losses/crf.py\u0060 and \u0060davarocr/davar_ner/models/decoders/layers/crf.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 337 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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed797d9e7a50e5bbaa60f7e0c25f699135abb215fe2c73074e849b169a90831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): davarocr/davar_rcg/models/losses/ctc_loss.py:53-71 | davarocr/davar_rcg/models/losses/warpctc_loss.py:45-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/losses/ctc_loss.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9d9617837e612e332c472bc131c1abdc3a71a0ad2d3e8e75b4c0abe3f251c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): davarocr/davar_rcg/models/sequence_heads/ace_head.py:130-143 | davarocr/davar_rcg/models/sequence_heads/att_head.py:222-236 \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":"davarocr/davar_rcg/models/sequence_heads/ace_head.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f645cdd799bac56c46d757995f51292248a51d0b742bf2e715058fbefc491cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/grid_category_head.py:108-123 | davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py:138-152 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/seg_heads/grid_category_head.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbb09014f5908fe8790b507995080f496ea3e61cf00581d43abec52388daca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): davarocr/davar_videotext/datasets/pipelines/formating.py:80-100 | davarocr/davar_videotext/datasets/pipelines/loading.py:22-42 | davarocr/davar_videotext/datasets/pipelines/loading.py:51-72 | davarocr/davar_videotext/datasets/pipelines/transforms.py:192-211 | davarocr/davar_videotext/datasets/pipelines/transforms.py:233-250 | davarocr/davar_videotext/datasets/pipelines/transforms.py:263-283 | davarocr/davar_videotext/datasets/pipelines/transforms.py:296-315 \u2014 there are 7 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. 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":"davarocr/davar_videotext/datasets/pipelines/formating.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b0c9d7ac910ee4a025175b226cb5532480d6b609632154847abec0ff0dbaa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_det/models/losses/east_iou_loss.py:79-83 | davarocr/davar_det/models/losses/east_iou_loss.py:88-92 \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":"davarocr/davar_det/models/losses/east_iou_loss.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a5556029128cd4ca3825df9eced91504c00ee47231bee3eb0163141692abc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_rcg/core/converters/ctc_converter.py:154-158 | davarocr/davar_rcg/core/converters/ctc_converter.py:172-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060davarocr/davar_rcg/core/converters/ctc_converter.py:159\u0060 calls \u0060join\u0060 and \u0060davarocr/davar_rcg/core/converters/ctc_converter.py:177\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":"davarocr/davar_rcg/core/converters/ctc_converter.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22d6e917e52b1858fb5e3284f2395c72ede51d4983d486247dc2df6fe5148c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:250-260 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:278-288 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:413-423 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:443-453 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2205f92078193b2d5820bdcba49b8764038f670fd348d49f1581935a12c92d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:262-268 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:425-431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2740bd6632a1422b308bc3ea54edc784c20e2b7d8cb883876246e733e7307d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:290-294 | davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py:455-459 \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":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6281dd215347f1a67038e1819fd67ddc02cfeb575f92f691ab942d7c6f357d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/grid_category_head.py:230-240 | davarocr/davar_spotting/utils/util_poly.py:106-116 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/grid_category_head.py\u0060 and \u0060davarocr/davar_spotting/utils/util_poly.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 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. 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":"davarocr/davar_spotting/models/seg_heads/grid_category_head.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27601cff1870a9744687ec211e8b328f011f3055ef14527d643554d467cd952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): davarocr/davar_spotting/models/seg_heads/grid_category_head.py:266-272 | davarocr/davar_spotting/utils/util_poly.py:145-151 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/seg_heads/grid_category_head.py\u0060 and \u0060davarocr/davar_spotting/utils/util_poly.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 33 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. 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":"davarocr/davar_spotting/models/seg_heads/grid_category_head.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"9355eeb4ba2cb199c8d079671a091ab45ffa053be96c9e80af69c7e96b1b5139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_table/core/bbox/bbox_process.py:35-39 | davarocr/davar_table/core/bbox/bbox_process.py:141-145 \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":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"425371a10a8d5cb754f4476aee173a36909ab976d0593097b23e6c28ddd80623"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): davarocr/davar_table/models/understanding_detectors/ctunet.py:302-306 | davarocr/davar_table/models/understanding_detectors/ctunet.py:447-451 \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":"davarocr/davar_table/models/understanding_detectors/ctunet.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76dfd1946b2824efe75c4a0e01c12db1db2edc2d081e7bf9c65c290d6dcdded"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:210-285 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:240-337 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"db75de7734d340c8b7f2a86efafb4f4812e9b3e1bfb5f70f3a7dffb20bbbb4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): demo/text_spotting/mango/tools/show_masks.py:34-49 | demo/text_spotting/mango/tools/show_masks.py:78-96 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:34-49 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:78-96 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:34-49 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:78-96 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_spotting/mango/tools/show_masks.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2982b9e872c8deaeb7fd3974d3c470280dbd20893bea04f842821297b410fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): demo/text_detection/evaluation/rrc_evaluation_funcs.py:19-42 | demo/text_detection/evaluation/rrc_evaluation_funcs.py:46-73 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:18-41 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:45-72 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc17d321f75c8667c8efa2cd82b09d3756d125e980de4540c393cdebf1e16f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): demo/text_detection/evaluation/rrc_evaluation_funcs.py:252-308 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:348-404 \u2014 These two members are one piece of code written twice and then edited apart: 57 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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97002e9926d30c286916a9e77788248b0f2ea9130bacdaf61815c13dd8185c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:38-97 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:43-115 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"948a13b1a2616d94f61a43567adb90229e2092f23babbee32986e82a8e195761"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): demo/text_spotting/mango/tools/show_masks.py:70-75 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:70-75 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:70-75 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_spotting/mango/tools/show_masks.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e69c78d817abe99d687985ab061cac7c242e3490a9efca3839151392d9d241"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): demo/text_detection/evaluation/script.py:65-83 | demo/text_spotting/evaluation/script.py:62-79 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_detection/evaluation/script.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c103bbe7eea02a05846b83a25aed82b70bde3e7028dcd01de6418519d6a980f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): demo/videotext/evaluation/evaluate_utils.py:210-248 | demo/videotext/evaluation/evaluate_utils.py:335-371 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"demo/videotext/evaluation/evaluate_utils.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddffa3fa891fccb32389cfb8d21490dc7463d5704c09ff661fd2083e2513f5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): demo/text_detection/evaluation/rrc_evaluation_funcs.py:190-221 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:285-316 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"89646270b9464e6f7c2e7706df3a4e3e17a637d6f1eeb4a47114016b60eeb55e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): demo/text_detection/evaluation/rrc_evaluation_funcs.py:184-187 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:265-268 \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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4907e1e1a5145a8355fc775a0896f4fe0afaafbe5dd17e38d3ccdaad2f149cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70\u201377 lines \u00D7 2): davarocr/davar_spotting/core/evaluation/e2e_hmean.py:126-202 | demo/text_spotting/evaluation/script.py:189-258 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py:126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"267b1171a4696304edc66250fa2fc94bdab9de84a3ce4a353065341f284ac6a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): demo/text_detection/evaluation/rrc_evaluation_funcs.py:272-308 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:368-404 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/rrc_evaluation_funcs.py\u0060 and \u0060demo/text_spotting/evaluation/rrc_evaluation_funcs.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060demo/text_detection/evaluation/rrc_evaluation_funcs.py:272\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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae09d9c2aa8ebcde70a7ce4eada12715c5311661ce7625e732d74cc9b6bcb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:63-97 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:81-115 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ebe21f0058aa485739698896ecc4f655d0f52ab5c2f7aeaefc1a3f022a25bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 2): davarocr/davar_spotting/core/evaluation/e2e_hmean.py:204-234 | demo/text_spotting/evaluation/script.py:260-285 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py:204\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":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfad33d0d7d42fc769414e2f7607de4f2c11a68ab399899351a81295e4ee7fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): davarocr/davar_spotting/core/evaluation/e2e_hmean.py:304-333 | demo/text_spotting/evaluation/script.py:399-428 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 245 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060demo/text_spotting/evaluation/script.py:394\u0060 calls \u0060str\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py:300\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":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4c0065b6239acf5a5eaa9224f4d1933fd3c85bc6bb1a2651d7c184d8458696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): demo/text_detection/evaluation/rrc_evaluation_funcs.py:224-249 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:319-344 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/rrc_evaluation_funcs.py\u0060 and \u0060demo/text_spotting/evaluation/rrc_evaluation_funcs.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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. 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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"5035754a15c40e7e1c3d211a8ce7522f6e3c2c31ca3ced80ff887cc0a6c9fad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): demo/videotext/evaluation/evaluate_mot.py:193-217 | demo/videotext/evaluation/evaluate_mot.py:236-256 \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":"demo/videotext/evaluation/evaluate_mot.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff45c098530761dc056c32a7c70eca463925e5aa526aa7656cd6c28ee548311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): tools/test.py:198-222 | tools/train.py:204-228 \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":"tools/test.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7dedd2fc932ebfb3bdd78ff9ef59b4aa3869f5988f63065ea2f4c3b44d0db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): demo/text_detection/evaluation/script.py:267-290 | demo/text_spotting/evaluation/script.py:312-330 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/script.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 173 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":"demo/text_detection/evaluation/script.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4d3d579ffa36fb207b76be48795b1eebbedb03c0bfee1cff4942a8c042b6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 4): demo/text_detection/evaluation/rrc_evaluation_funcs.py:19-39 | demo/text_detection/evaluation/rrc_evaluation_funcs.py:46-67 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:18-38 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:45-66 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/rrc_evaluation_funcs.py\u0060 and \u0060demo/text_spotting/evaluation/rrc_evaluation_funcs.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"86057ca2eb6c8acb9a5ba846091ef2d4c05a22cf0fc36073d3b2139f7ccc4a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201321 lines \u00D7 4): davarocr/davar_spotting/core/evaluation/e2e_hmean.py:159-179 | davarocr/davar_spotting/core/evaluation/e2e_hmean.py:212-232 | demo/text_spotting/evaluation/script.py:222-236 | demo/text_spotting/evaluation/script.py:268-283 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 245 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":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d93eb95bb6d23014c5a32d0cbaa73fc7118ec500f8e37d4ea3425b1a144209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): demo/videotext/evaluation/evaluate_ata.py:109-126 | demo/videotext/evaluation/evaluate_mot.py:146-163 \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":"demo/videotext/evaluation/evaluate_ata.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7625a3bd25754322c42bd98d775bdaff02a49bcd73b2d52afeaeeceb1f9a0ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:171-187 | davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:197-213 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py:167\u0060 calls \u0060init_weights\u0060 and \u0060davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py:194\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dff2d9eac6a759c750799e7324b03a4f5dca06e1ede98a0d143d6f11aed8afe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): demo/text_detection/evaluation/rrc_evaluation_funcs.py:252-268 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:348-364 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/rrc_evaluation_funcs.py\u0060 and \u0060demo/text_spotting/evaluation/rrc_evaluation_funcs.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbb4388f370df975fa8ed4119f8458fddc21997df529340937e98093c56c78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): demo/text_detection/evaluation/script.py:65-81 | demo/text_spotting/evaluation/script.py:62-76 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/script.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 173 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":"demo/text_detection/evaluation/script.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"491f2c23bd640c7bcfd078dc4379d3d83e160ef4cafec36a2fc01788b01e06d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): demo/text_detection/evaluation/script.py:344-360 | demo/text_spotting/evaluation/script.py:385-401 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/script.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 173 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. 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":"demo/text_detection/evaluation/script.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5402de3e4ca759152e44892fe07391dc25543f0066799ece2888ad2f7d7556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): davarocr/davar_spotting/core/evaluation/e2e_hmean.py:264-278 | demo/text_spotting/evaluation/script.py:348-362 \u2014 before extracting anything, compare \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 245 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":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"afdeb4cda3fad65fb4ca98e9734e9dce949201d9e78399fe97914902c28c75f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): davarocr/davar_spotting/core/evaluation/e2e_hmean.py:288-300 | demo/text_detection/evaluation/script.py:341-351 | demo/text_spotting/evaluation/script.py:381-392 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060demo/text_detection/evaluation/script.py:353\u0060 calls \u0060str\u0060 and \u0060davarocr/davar_spotting/core/evaluation/e2e_hmean.py:302\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcce28d083577535f609ff9db6e47f1065aa6c53712e33a20ed7e3c23a5d7e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 3): davarocr/davar_spotting/core/evaluation/e2e_hmean.py:343-351 | demo/text_detection/evaluation/script.py:476-489 | demo/text_spotting/evaluation/script.py:489-497 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"81011bc75527ae8b0b947e2142cf4b91257f93f41cbc56b0589d5e405e49b458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): demo/text_spotting/mango/tools/show_masks.py:78-90 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:78-90 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:78-90 \u2014 before extracting anything, compare \u0060demo/text_spotting/mango/tools/show_masks.py\u0060 and \u0060demo/text_spotting/mask_rcnn_spot/tools/show_masks.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"demo/text_spotting/mango/tools/show_masks.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e10cee4e9a65c4d169a603c0c08999d3d2878346540967897673372c3ac42a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): demo/text_detection/evaluation/script.py:304-314 | demo/text_spotting/evaluation/script.py:340-350 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/script.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 173 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":"demo/text_detection/evaluation/script.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf83f34f60317d4c3c83979098fc434fa1ea5b5b8999f6033965019fa37605f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): demo/text_detection/evaluation/rrc_evaluation_funcs.py:312-326 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:408-422 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/rrc_evaluation_funcs.py\u0060 and \u0060demo/text_spotting/evaluation/rrc_evaluation_funcs.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"241a57be4c405ca4eb3138db2dcfa5a092294e773933b08bfee374847fc9d0e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): demo/text_detection/evaluation/script.py:314-323 | demo/text_spotting/evaluation/script.py:360-368 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/script.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 173 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":"demo/text_detection/evaluation/script.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3b4762a77adc96bff1c543ee4f5b8e3d9e59fe0401c5a333dc45f1e1abafa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): demo/text_spotting/mango/tools/show_masks.py:34-43 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:34-43 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:34-43 \u2014 before extracting anything, compare \u0060demo/text_spotting/mango/tools/show_masks.py\u0060 and \u0060demo/text_spotting/mask_rcnn_spot/tools/show_masks.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"demo/text_spotting/mango/tools/show_masks.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7325029df1acb2eb9e35e219ba59284ddf05a3e51a5e9645f83161bb6bcc167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): demo/text_detection/evaluation/rrc_evaluation_funcs.py:213-221 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:308-316 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/rrc_evaluation_funcs.py\u0060 and \u0060demo/text_spotting/evaluation/rrc_evaluation_funcs.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"045d89e2a721c4039bb50e10a58d3a1844020a20102d569080c16da88f036614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): demo/text_detection/evaluation/script.py:110-127 | demo/text_spotting/evaluation/script.py:127-144 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/script.py\u0060 and \u0060demo/text_spotting/evaluation/script.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 173 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":"demo/text_detection/evaluation/script.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b52c7d0453f48ef3f04fb9ddbe94a7dfc7f1afe7b2509beadfa742bdc68b23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): davarocr/davar_spotting/core/evaluation/e2e_hmean.py:305-312 | demo/text_detection/evaluation/script.py:363-370 | demo/text_spotting/evaluation/script.py:400-407 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a98ed127ecdd778953b0a267719aab0129786a7bf5f27ff3773776ef4e8639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): demo/text_spotting/mango/tools/show_masks.py:53-66 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:53-66 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:53-66 \u2014 before extracting anything, compare \u0060demo/text_spotting/mango/tools/show_masks.py\u0060 and \u0060demo/text_spotting/mask_rcnn_spot/tools/show_masks.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"demo/text_spotting/mango/tools/show_masks.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f87421c876930cd064a7b9f8364178df2ea895309471017a11d41edc3b9865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): demo/text_spotting/mango/tools/show_masks.py:38-43 | demo/text_spotting/mango/tools/show_masks.py:85-90 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:38-43 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:85-90 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:38-43 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:85-90 \u2014 before extracting anything, compare \u0060demo/text_spotting/mango/tools/show_masks.py\u0060 and \u0060demo/text_spotting/mask_rcnn_spot/tools/show_masks.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"demo/text_spotting/mango/tools/show_masks.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"149b5d28e900036a7ebf940ef5d564406f1eaa9e8eea63b54623bc23e528ca51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): demo/text_detection/evaluation/rrc_evaluation_funcs.py:76-85 | demo/text_spotting/evaluation/rrc_evaluation_funcs.py:76-85 \u2014 before extracting anything, compare \u0060demo/text_detection/evaluation/rrc_evaluation_funcs.py\u0060 and \u0060demo/text_spotting/evaluation/rrc_evaluation_funcs.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 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. 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":"demo/text_detection/evaluation/rrc_evaluation_funcs.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cf5818ddbfdfe56e3d1ffc81a46ab4ee7cfdb83dbf587e2cc8d3598d7a79e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): demo/text_spotting/evaluation/script.py:109-113 | demo/videotext/evaluation/evaluate_utils.py:45-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_spotting/evaluation/script.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbd2252ac5fa3451d4772b46a088a2504a8d8e7c949910dd277fdee699372ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): demo/text_spotting/mango/tools/show_masks.py:25-30 | demo/text_spotting/mask_rcnn_spot/tools/show_masks.py:25-30 | demo/text_spotting/text_perceptron_spot/tools/show_masks.py:25-30 \u2014 before extracting anything, compare \u0060demo/text_spotting/mango/tools/show_masks.py\u0060 and \u0060demo/text_spotting/mask_rcnn_spot/tools/show_masks.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. 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":"demo/text_spotting/mango/tools/show_masks.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c20b109814eba146049a061d62be2e3648272dfee47b19e8f9fff55f3b12d4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GCNHead (LCOM4 4): GCNHead\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_layout/models/heads/gcn_head.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5b95be5c633a9562e1cb5c6ce7b133d6ed3c29fc6d4bbd42df241e37283159"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ACEHead (LCOM4 4): ACEHead\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/sequence_heads/ace_head.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b181a513ff7dafe47efbe33bceab54e147b92dc91e8b8df20e70583ae375c79f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AttentionHead (LCOM4 4): AttentionHead\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/sequence_heads/att_head.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"564cce821ee513d58246c17dd56731334d54e65f9ed64f40ce1077ba4196f376"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CNTHead (LCOM4 4): CNTHead\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/models/sequence_heads/counting_head.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe8e096e01e4edd09e060e0f62aabbc65507d971cf94148c433713e288aa8ba"}},{"ruleId":"D16","level":"warning","message":{"text":"bus factor 1 \u2014 one contributor carries this repository: 5 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history \u2014 80% of the 132 commit(s) sampled \u2014 so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately \u2014 have a second contributor review or pair on them \u2014 and write down the parts only one person can currently change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a99f114ab4dfee37ae0bf0665b44c7468d85b809d361949e2b6258101fa1e5a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This memory limit may be too much or too little. It would be better to \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":"davarocr/davar_table/models/roi_heads/mask_heads/lpma_mask_head.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"336f06243056cd088b1a6feb7c24178e27bb2e0cb4abaef5c3468ae386f673e3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Remove after F.grid_sample is supported. \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":"davarocr/davar_table/models/roi_heads/mask_heads/lpma_mask_head.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fa03df02a758d17fb62cc1377eb59a710efa14d18665ec04a1c84a021573e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove the restriction of imgs_per_gpu == 1 when prepared \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":"davarocr/davar_spotting/models/spotters/base/base.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c634b4b1352c1f67fb8eabd870b38c89dabfb1cd00a1bbcd50452f1bd606fb69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove the restriction of imgs_per_gpu == 1 when prepared \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":"davarocr/davar_rcg/models/recognizors/base.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dc814b6d09e77a23549da1f9c7a52ab3c7ab23863fe16a24748019a9605487"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove the restriction of imgs_per_gpu == 1 when prepared \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":"davarocr/davar_distill/models/distillation/base.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"231e644d7bcb2537b584678bf7bcbb2f27dd793828c971a9f1687a725635f0e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: refactor assigner \u0026 sampler \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":"davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf1bc1ac8e883cec9cfddb1b052d09163f7357a6f9bc975101e0f5cf8cc0e70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove this when parrots supports \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":"davarocr/davar_spotting/models/roi_extractors/mask_roi_extractor.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"af03ffb2a1e70092550b4aa0f42e3d6df6b19c084c2c88040fad414b50b6574e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: All of the Augmentation operations will be in the coming DavarOCR version \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":"davarocr/davar_rcg/datasets/pipelines/rcg_extra_aug.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7286b520b8cfb602aaf0c3f992b6bb06715e2e6fba1c5c4a64d7b5da52eec158"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Support empty tensor input. #2280"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_layout/models/heads/cascade_roi_head_w_gcn.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"16db66fb455bd8e6bbdab2196ff08a479f9dcb23a86d8e7bbb47257e7724eea4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: a more flexible way to decide which feature maps to use \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":"davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8dc640450ca54b3adddac45d1e21b599aa6de28c86bc3b141e5d64bda5d753"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (48798 LoC, 286 module-visible types across 123 directories) overshoots its size bounds. 1 of 2 build unit(s) (Python) overshoot their size bounds, lowering Project Cohesion to 0.0/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":"setup.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe47371f9c2f5de74296306cc08014294bcb5a4d980daf68004ee575618d83e"}},{"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":"D30","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":"72813972eca0aea8a77021d63f397d7c2ee20944973f05c7ae76054910d26bf1"},"properties":{"dependency":{"package":"imgaug","version":"0.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-356"],"severity":"critical","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"ecc350b44efa357d0d0cdfac806cd5f12922bff9a41f68014ee8294140efd910"},"properties":{"dependency":{"package":"onnx","version":"1.7.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2023-38","PYSEC-2024-222","PYSEC-2024-223","PYSEC-2025-10","PYSEC-2025-148","PYSEC-2026-103","PYSEC-2026-104","PYSEC-2026-2239","PYSEC-2026-2240","PYSEC-2026-2241","PYSEC-2026-3587","PYSEC-2026-3876"],"severity":"high","fixedVersion":"1.21.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 172 of 172 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 172 separate risks. Counted over 172 of the 352 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1728a112a176ea73e141265c194c641ff11eb2a7a4a9a65340e77574f954c57a"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_common/datasets/pipelines/transforms.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7c338a35f3b5a22580e33f862fb2061a5618a86ef26d28494108701b45286a"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_rcg/datasets/pipelines/utils/loading_utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4176a8d6727609b07f311133bbadb17889c63eb78555c59b2a472658ade2840"}},{"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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe21eaa775e9c495e677cd4ce7fb2b1caaa8193f05a23e89a62dc6d090d6916"}},{"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":"davarocr/davar_table/models/understanding_detectors/ctunet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc67aad8767232f89bc8209dfd9a0bc0ad9398833c6a47af0a11813e2abc9dcf"}},{"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":"davarocr/davar_layout/datasets/pipelines/mm_layout_loading.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8760d11654d195ebb7e614408e255d15055038a4eac5291ef9dc4ca08900c22a"}},{"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":"davarocr/davar_layout/models/vsr/vsr.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2feaba6ab278fb6417f9107b43fca588e48a4284a51b9815813f5fa0cf940c4"}},{"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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9d16df3612ed8382c56b92a1b69805a5689eb5c869fd9bdeee204a5ca7ecc4"}},{"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":"davarocr/davar_ner/models/decoders/layers/crf.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b1921449db188799e48c5e4aeb7bc78cd123e74ba256c06e8ed9857ebd725b"}},{"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":"davarocr/davar_ner/core/converters/transformers_converter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e196ea71deeb943487f75509949991ed90b5de9fb8362e847bddb651f46bf0d4"}},{"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":"davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ba7a6321d8734c701a609821bd2bdde231bed25b8048c4c96d5979dfaa8d06"}},{"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":"davarocr/davar_spotting/models/seg_heads/grid_category_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"265b5152e91f22a1a48a26cebf0c87e1370df7bc5257e6624f5c7f6b89ca4f22"}},{"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":"davarocr/davar_videotext/tools/merge_seq.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40c8cf86cd18594e9d0cea8f222e44b6656d2adbc30d049bba6131ade0efc45"}},{"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":"davarocr/davar_layout/datasets/publaynet_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"610a76c3426077f1806fd51b2a9c4f658d681fcf8347eb0d1bf76bd87faf75f0"}},{"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":"davarocr/davar_common/datasets/sampler/davar_sampler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"832f493263d96a17354916118fdd5ec8e0c6fb8c93a0363fde72068eab44b40d"}},{"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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"108b035a55a25bccb78f588b76f28ed299439d8eedf757b24e41c17f06089b46"}},{"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":"davarocr/davar_distill/models/distillation/spot_res_distill.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1efa0cfb092348ee1ff0449a8da81aaa0452b730aa2ade20affa9512c3ba12f"}},{"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":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee6c5c005b8fc3f863c112c3897dd37e7785fbc8ff7b37a961c428bdc1587bf"}},{"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":"davarocr/davar_spotting/models/spotters/base/two_stage_e2e.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b25e5c3014e2c2e060129bd0a8bcf0762cf860e7ce171795313c6adecd57665"}},{"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":"davarocr/davar_rcg/datasets/pipelines/davar_loading_json.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4c503fde4104498c9d88e000fa5ad1776f1578cfada295b5f222985f580d23"}},{"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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdf73ba87fe5c29ad79bc2e42658f2dbb393adf4677c90c543d6d25e56d4900"}},{"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":"davarocr/davar_videotext/models/seg_heads/yoro_recommender_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"555ee0c64da2e88b0b438b345955a8916a4243d94db2150a2f3194e9dca25d9d"}},{"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":"davarocr/davar_spotting/core/evaluation/e2e_hmean.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ebecff79e52b9648173f1ffc5ff58e85537f1cbb97c1cd653375fadc592d0d"}},{"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":"davarocr/davar_table/datasets/pipelines/davar_loading_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94cda344051388dc6ca3137fdac9d936d43b254bdd3ede1373ff5a2ba4d57ff"}},{"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":"davarocr/davar_rcg/models/transformations/spin_transformation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14f052fc250f1e3da5ecc39076eb8fc0294f41d524f349cf0d317bf5f8ece25"}},{"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":"davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64353ba3249873c2af243be48889d341c338332f3ce6399f184404d0c364014c"}},{"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":"davarocr/davar_spotting/models/spotters/mango.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58cf630c20a0d2362b0e5c5102b9df1c186019b2a4b7a4d1a1da57df9ceafdf"}},{"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":"davarocr/davar_common/core/evaluation/davar_eval_hook.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdce77293417f2fbb70b7ede67aaa3a3692235b4537927ead4e05edbc21f026"}},{"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":"davarocr/davar_layout/models/heads/gcn_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f018b6767457d64826b26c2575aff01d2caa4abaa5909c597efb8168e29c96"}},{"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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1724d10d28b93362c5d84e3d8f103a3b2b5fd035a6475cdf9438116eff5e6457"}},{"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":"davarocr/davar_rcg/core/converters/ctc_converter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfd94c00859187e9615f4883679e86a71e4f4a9d468a0dc644dfcb4e7ab1c75"}},{"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":"davarocr/davar_det/models/seg_heads/tp_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4356b54f5b2392826950854da4d88896bc8639a75851cc78b1f274bad07ade7a"}},{"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":"davarocr/davar_videotext/datasets/multi_frame_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbab8856e9b0904e0dd69e5a6e3e0b3e6e40b618827c5372fff44911564f6d43"}},{"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":"davarocr/davar_spotting/models/seg_heads/character_mask_att_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8832b013dfeed8a4c6038ab994d8c5719c28ec60c1c54f9318b424e3202a7639"}},{"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":"davarocr/davar_videotext/models/seg_heads/spatial_tempo_east_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c416e422c1ccc89a4de8e343c65d5faead9d4db78b2bb8ca69889ea1b63d4d9"}},{"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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12277a056ea85458b90409fa47c5bfedde10e6e6125610f91eb6d87d0ef58d37"}},{"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":"davarocr/davar_layout/models/heads/cascade_roi_head_w_gcn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8a079463e328e27186969998068fabb2e2eec4970494e49e69a274a84a7cfe"}},{"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":"davarocr/davar_ie/models/connects/relation_module/bert_encoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84da2557dae3e1a53c3474cb74c379404553ead568c854d6ae4336743f247df2"}},{"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":"davarocr/davar_table/models/roi_heads/lgpma_roi_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13892b03bf5ed1064959318fbade4bb9b9740f6db12d0f0adbcc1b78a804625"}},{"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":"davarocr/davar_det/datasets/pipelines/tp_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1359e35350b2725c1e54c0a082a59bab98b61cbf80041e09d23d8242755abd9"}},{"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":"davarocr/davar_order/models/reading_order_detectors/gcn_pn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf739be19d27ec2da136dfa6b65d06a5d634929ba564bc63a7f53f441e7bce12"}},{"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":"davarocr/davar_rcg/models/recognizors/rf_learning.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef4e92ff40e57fee594189c4df91b6fd516785e2023d277474e297a72aae96c"}},{"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":"davarocr/davar_rcg/datasets/pipelines/davar_loading_lmdb.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"235b34a48b5bad98d7397d2f635b8d643615dce928d0b4e393b18f66b90e63b1"}},{"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":"davarocr/davar_rcg/models/transformations/tps_transformation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6288762255d5b4dbce3e7889f3b9eb719d4394bd166e944d780d4bb8a2ff67"}},{"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":"davarocr/mmcv/runner/hooks/davar_checkpoint.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"065ffb31a08f92cc3039fe76d527ea19c33c617e495403d50c9a17d73985d21b"}},{"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":"davarocr/davar_rcg/models/transformations/gaspin_transformation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"510a2929dc2e58dbd1f1bf04dd919d0bba1510d1dd0065810da1de7edf0cf414"}},{"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":"davarocr/davar_common/datasets/builder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebb3baeda1b58c05f2b832835a42938aeb5460079b5762ec3ed39bc7beeb1d7"}},{"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":"davarocr/davar_videotext/datasets/pipelines/transforms.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"302ebc87165e46c89376e8e5da1735e651a248847240499f8ec26eee9c95c8a0"}},{"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":"davarocr/davar_rcg/models/backbones/ResNetRFL.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64d30dd58ded7d4d3b7da2f0a644789057136ca37a8c07e6c4af73131bd175c"}},{"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":"davarocr/davar_rcg/models/sequence_heads/att_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c94ad6dcc54bb753af519794ac54cf087e3aebf11de3d24b80e869169ddf25f"}},{"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":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee26c54d9ce2a2aec860ed37f580a4c6cea4ba9484e4e8b4d8d6facf3ce1758"}},{"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":"davarocr/davar_spotting/core/post_processing/post_mango.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0239f9f8b2719b4d2469dd6b0961c073e8b51f21262666cdcca18078413d1c37"}},{"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":"davarocr/davar_spotting/models/seg_heads/instance_mask_att_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"992d9f40dc13c18e41d4dd499a4d1b84a98d5df5e90b5edde1475669a234b71d"}},{"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":"davarocr/davar_ner/datasets/loaders/ner_loader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4794637a2500792c6d257856b36e3b43f7145890530e9ea2fc047de06f93b7e4"}},{"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":"davarocr/davar_table/datasets/ctunet_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df2bd30a972116a233acb983d903b57d388fce4ab6af97a7b76c0de1aeae375"}},{"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":"davarocr/davar_ie/datasets/pipelines/chargrid_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05836b9587dad76b24c5bac47ccadf08768381dc47de57ea0295b7e61e6324ec"}},{"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":"tools/test.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7287b1e94515530554aad87bc3078e124b4a33d44e1796e2d36547601238069f"}},{"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":"davarocr/davar_det/datasets/pipelines/east_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3baa987a1cc58e1937d1867f3c8656ca127ac01697d66ce612e58a22c7644c"}},{"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":"davarocr/davar_table/core/bbox/bbox_process.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf859df775b08c174263f68421fd75ddaf427f38f21d2dc1c196c79fa6b0ca5"}},{"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":"davarocr/davar_table/models/seg_heads/gpma_mask_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3ba8bb2801eb37c830eb43eeaaa65a78d87ff7316c5a24bd69666b96011533"}},{"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":"davarocr/davar_table/models/roi_heads/mask_heads/lpma_mask_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f276876256f5c8477906be87548db072e846c33347d2c985cd78a495c27f10"}},{"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":"davarocr/davar_layout/datasets/docbank_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"743cd566f62fc5b067b7796f0fe1f80f8cef4ac2cabdb12a24450c2eb3c58900"}},{"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":"davarocr/davar_spotting/models/sequence_heads/multi_recog_seq_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b148de83d8758d5174992f8371e82315f8585b7eb29343736d2f58c98fd16d"}},{"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":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"916a0e841c69c2764d88f3eff990439e4dcb57a34c8af45a35fb3aeb940e241c"}},{"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":"davarocr/davar_spotting/models/seg_heads/centerline_seg_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ab8ac1300c674b154c45931dc162c8b6f3a814b46b16223d1c27fae83cec21"}},{"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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d93253500e0d1322729d8cfff72a06c5058b90b4b01b7ba2746dda8f797d3a"}},{"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":"davarocr/davar_spotting/models/spotters/text_perceptron_spot.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a796b35dd17d2313abd5bdd979e31ccd2aa63af4ea2fcfd0e66fab98b84fca3b"}},{"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":"davarocr/davar_layout/datasets/mm_layout_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c2b8c38f1585cc00bcb99042e8caf8185f20fb9020ebb0b943a04724c737f2"}},{"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":"davarocr/davar_ie/models/embedding/text_embedding.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b02fa358f8154e8e18d34175018f8d42492548567e8d6940ee2cdc8fdf0b097"}},{"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":"tools/train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfc5beb7a233a0d99c9386835172bc189e135e4a9a68d25565c9e05f4190f18"}},{"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":"davarocr/davar_layout/models/heads/standard_roi_head_w_gcn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cf7a469269249e02582fd0f62bb41bfa62598b8d3287f9092288b1ca0c1aab"}},{"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":"davarocr/davar_table/datasets/table_rcg_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0daffa2290bcf033529fff1c8b076eba047d9e0c497998c98173f717a41c1a"}},{"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":"davarocr/davar_distill/models/spotters/kd_two_stage_ete.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b3245c4547ed6d68b1d6213565403b1db04e53c86e72cff82c25bd89939acf"}},{"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":"davarocr/davar_table/datasets/pipelines/gpma_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7c17ddb6f683e364275e209bd469e6bd32e2d175c5dcbfe4d87de6aa2b796b"}},{"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":"davarocr/davar_table/core/evaluation/tree_f1_score.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb508044d5e93a54e8a7a15eaaae8436ae5407515422d01d94a6fbf41b182907"}},{"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":"davarocr/davar_table/core/post_processing/generate_html.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23e2a7156044f47c0e57a2f0e3e8a57b32cfaabadf22eb84970b3bbb8e1935f"}},{"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":"davarocr/davar_common/apis/test.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de742c40f7fba5eb5b52aeea90a4a1e206ff2e725933dab1b5b971433b538f66"}},{"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":"davarocr/davar_spotting/models/roi_extractors/tps_roi_extractor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8061118015174a7958e153cae07f6e6468795f92c519cc92a57498ab7c7dfdc7"}},{"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":"davarocr/davar_det/core/post_processing/post_tp_det.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff800f03a5d77628c1d4344ab6a76b06454d6c1889d99fc4733d30014eea54fc"}},{"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":"davarocr/davar_rcg/models/recognizors/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d082b0933858f5e3ded2a3262c7907fc4bb171e8743f3a23a8305e089e423cf"}},{"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":"davarocr/davar_det/core/post_processing/post_east.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca49d579891799cd6c0f017dd17670e3d8827a2941dabc3b12c353a93e18edf2"}},{"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":"davarocr/davar_spotting/datasets/text_spot_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be58a5db2cccf9f8ebb75a8458a0502ed1524315fa1a84057ccd3476e1cdf6aa"}},{"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":"davarocr/davar_videotext/datasets/samplers/metric_sampler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6810270cb00b445585e8db7f07604e77665ac6ed562fffd186569943f304a497"}},{"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":"davarocr/davar_nlp_common/models/models/encoder_decoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cb88871fc8035f65cc502e7ee4a7cd46b93d68b8fc66d20ea310537eeb23d5"}},{"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":"davarocr/davar_videotext/models/recognizors/text_recommender.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30352e53a305dcdec020cee194fc34332e6422e40458017ed55e2fe37dfaa45"}},{"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":"davarocr/davar_table/datasets/pipelines/ctunet_loading.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8676ed94556f47b028d6e6d8e9ea254ccf7f3494cff10afb85863e52c50a84"}},{"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":"davarocr/davar_distill/models/distillation/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd72b3856a3ead7d5429e551931435d9dee696fe32f88d5b58e922ab0fa6b73"}},{"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":"davarocr/davar_common/apis/train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b46ba002c87e70e792b41bfd3b776e6a66aadb187d148f86834fea79e50a8d5"}},{"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":"davarocr/davar_order/models/heads/pointer_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a75f9341d971f7b56ff334666f6eb0b77789b0e4ab65cd1ef98e7b4642d8ca2"}},{"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":"davarocr/davar_videotext/datasets/yoro_rcg_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35e3c6b38bce047a368c8baba96c9fa0db580a0cb23bde843cd6152a21fde48"}},{"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":"davarocr/davar_table/models/detectors/lgpma.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb86a3d4991a59f53382be4e0be08468aae32d353984262f33fbfc95e30b3f2"}},{"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":"davarocr/davar_ie/models/embedding/sentence_embedding.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a618e059c8748171122c405b38b162699e61cbf6c3e7c97bf688469a8af818cb"}},{"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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b3a0a2fcc00a5a1a1f2a4f07154c084c507ec529628f0e63e5d23475140098"}},{"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":"davarocr/davar_rcg/models/sequence_heads/warpctc_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4337e5608ab94fe90b612c66cf1d9542134a3191e5b5c818bd62fc72782a0a62"}},{"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":"davarocr/davar_rcg/core/converters/att_converter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb614a0a08849c3081b084525e9e8c49ff0e1b66eab9f6c16c4d1a67f0b9b66"}},{"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":"davarocr/davar_rcg/models/connects/stack_block.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceac98f2fba2a9519de12d6aa820640abba5cc6e6bd342bb93eb7c1d5aaa43e"}},{"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":"davarocr/davar_spotting/models/spotters/mask_rcnn_spot.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce697b9999fa4d5876fab97390a54f58b5f70be6931f6c122a6f84bf673dbc24"}},{"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":"davarocr/davar_rcg/models/transformations/affine_transformation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a08ea940c79a9396fe6acf4e0b4e4081e3c07411d0033076491faf36319a04b"}},{"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":"davarocr/davar_videotext/tools/filter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6193460c6bbb965aa44f46628025f2fa2c14a677c0b5019b6c48dfbf9f1349d8"}},{"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":"davarocr/davar_table/utils/metric.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b286a6fcd29eead0f69c5578d911f970e6c77705c651786c59e7e5dce58e8e5a"}},{"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":"davarocr/davar_rcg/core/converters/bert_converter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2707baa368a6f96da905cc95ef633e6463087c8afd4c5fe36e89fe38b2fea0c"}},{"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":"davarocr/davar_det/models/seg_heads/east_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"def810f32db87bd19cb7ab99bb0f4117dbe1bfb1b19bca3b03b51faea8b49227"}},{"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":"davarocr/davar_ie/models/necks/chargrid_neck.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03c31d1d2126b7846c07aa943a243018619b1cf676cc84271a8c1a05eb2ef44"}},{"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":"davarocr/davar_ie/models/infor_extrators/chargrid/chargrid_net_ie.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc2222839ec19db73d8c46a285d77dca1c8ed34432531593a7e30aec343e900"}},{"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":"davarocr/davar_ie/models/backbones/chargrid_backbone.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"761e07e43728ba3213f7b6bb8c2bc212ead9d99a4f3c625fad2ef99940afcf46"}},{"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":"davarocr/davar_spotting/utils/util_poly.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61f44d872d960f5949d25e65df21e9a6bda9302ec4fa24150fe8605a8f64599"}},{"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":"davarocr/davar_ner/models/decoders/span_decoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddbaa2397f050a1819f0b1eea636607493679e1132117263f06fb39228b6df7"}},{"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":"davarocr/davar_order/models/connects/graph_conv_encoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae171aaeccc17ac34dbe799334eafacfd543bc0c45a90923de9b8e71852bd8d"}},{"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":"davarocr/davar_common/datasets/davar_multi_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c757d8ae5f632a510f09e0afcfca2ae37afc2510cf2087a82ad1121cf431201"}},{"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":"davarocr/davar_rcg/core/converters/rfl_converter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d2309e568aa88fd75cd02222851899203b2d98c5ada0ef1e1fbf58094f3c99"}},{"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":"davarocr/davar_spotting/models/roi_extractors/mask_roi_extractor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"604b393ecb7e8fbead449fa5f06dc6a7c9b9d8dc1333dd4400b558572f295a2d"}},{"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":"davarocr/davar_rcg/core/converters/ace_converter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96698d02720cd73ba0c74947272d9684dbcc0b9904fa1f19a1c84d51b513dd65"}},{"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":"davarocr/davar_common/apis/inference.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb17ac56c4f9152814ec6f951515903e496b99db59c1958d445ebb4963a7b095"}},{"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":"davarocr/davar_ie/models/connects/multimodal_feature_merge.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc0c44f12e68ef2a572e7dbb228dc3b681bcc4bfb088f2827365dfc99984b9a"}},{"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":"davarocr/davar_det/models/detectors/seg_based_det.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a042a6eb5c231779f36cbe0164fec77f0eced76d74a8c71c9f7d37d4d7d4268"}},{"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":"davarocr/davar_rcg/models/sequence_heads/counting_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c5589df9e20b7d5ff7972f847dbe7b5c4ba73887bc12cebee8761c858d9914"}},{"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":"davarocr/davar_rcg/models/sequence_heads/ace_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac9716c26e1cb4ec0522c5b71e8dcf9b31871c17ef42682aa1eae15dd0dfcaa"}},{"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":"davarocr/davar_layout/models/heads/convfc_bbox_head_w_gcn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14edf9b8ed32cbe5a09eec4b35e66dd887402b3662c0bcc0d66b6f56503f8d5"}},{"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":"davarocr/davar_spotting/core/post_processing/post_mask_rcnn_spot.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c961dac81e19c1f700f2018e965540e120722c73908f5a1af0986c24e05d0ee"}},{"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":"davarocr/davar_rcg/models/sequence_heads/ctc_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdec2b90b860225f1f532dea28f80d15cec35b3999d9f1d231095d47907cdf8a"}},{"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":"davarocr/davar_table/models/cls_heads/table_cls_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a322c752a3cc147474635e7ef90567237508660e5ea5e62ee9fc2c2153bc6c58"}},{"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":"davarocr/davar_rcg/models/connects/single_block/RFAdaptor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2562c95bc7f9a2d1adab3af89bdd015f74d41a48405e0b6d04aec28b4a3e5b53"}},{"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":"davarocr/davar_det/models/losses/dice_loss.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d633963c64369d06c9bc60d5adf1ee17822d000513a17b12148dbecb0babd27e"}},{"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":"davarocr/davar_ie/datasets/wildreceipt_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0df33bbf4b60e43abdbcd4d48eb2bc043133ad6152730dc3e9f97369b8ac55"}},{"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":"davarocr/davar_videotext/models/detectors/spatial_temporal_east_det.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2f1556f03a941f1c5985c049870442b17e504bec7bd3c7cf81ac37382efacf"}},{"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":"davarocr/davar_distill/core/beam_search.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb0d08fd792db36c512e4c7d8ec6eaa943890cd3c1f23c137bb0428b4dddbf1"}},{"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":"davarocr/davar_ie/models/embedding/position_embedding.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4373a160ae1256b79ba6c051baef4adbaf3e28c17db10e485bf2a1cbb8ac4466"}},{"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":"davarocr/davar_det/models/losses/east_iou_loss.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d123937e9379957796c377c35b957b4ce2a30d75b9f6c6b919754d7d88d95781"}},{"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":"davarocr/davar_spotting/models/roi_extractors/masked_roi_extractor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1540a05a8d6370b0e653ffd91876bd2fc40a30f00e74a0cce865f98e5c840a3f"}},{"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":"davarocr/davar_layout/models/embedding/sentencegrid_embedding.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31439f134f5f384fcd85e88389b4e32553b8bd9a855857d55d0bb46ebd6c9530"}},{"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":"davarocr/davar_det/core/post_processing/post_mask_rcnn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7b9b257802b77d673f2e271781b937e0d1361005a4ced4b39b0d44397f95b5"}},{"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":"davarocr/davar_ner/core/evaluation/ner_metric.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf8c271e9d0bfd4a1af1e4ead8b1b4ffcb383a68798f2e4491f772b1cde0d69"}},{"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":"davarocr/davar_common/datasets/pipelines/davar_formating.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c9ea17d18d83427b4133db83f54bdd7280764765dcba7d482f1c84784b5a46"}},{"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":"davarocr/davar_nlp_common/datasets/base_nlp_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"291a5cce6d10e1a120efdc07cade39ea19024e21fdadd8773e7a4a04534c380c"}},{"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":"setup.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7350905534832be734b65ede2f1f6e4eed767a85bcf7759ec3c0518b0ce72a"}},{"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":"davarocr/davar_ner/core/converters/span_converter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"371d88461feb1818ce45760a99abcbc5b680fb1c1fe320cf8051347a54928604"}},{"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":"davarocr/davar_det/models/neck/east_merge.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d3d3cb8d417c9d55aab748268f4e87a78a4ea904c0c3c2aa76a4e1d5129fd1"}},{"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":"davarocr/davar_rcg/models/backbones/VGG7.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a118bb7c40c9c31e1dde942797362c4305fac126e53f645f9e2924373a882f27"}},{"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":"davarocr/davar_spotting/models/connect_modules/att_fuse_module.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"703e963f9e93c8194c01c4c4049a404f505f6c3f903e00db1a99fcf8c4fdd7e9"}},{"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":"davarocr/davar_distill/models/connect/resolution_selector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da296d64bc6c940ce3a385bb91f7f4eb83fa9c3422a7d3acff71e5a162e999a4"}},{"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":"davarocr/davar_layout/models/embedding/bertgrid_embedding.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e76d0c91ee3c96883595343cac22d37eeb763cb4b026c29d6452908c9022dd"}},{"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":"davarocr/davar_ner/models/ner_models/base_ner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5bfceea5792e10307d35f1d83e3b4d79ed97c6f81999e5181252d557c5f9f3"}},{"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":"davarocr/davar_videotext/datasets/pipelines/formating.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba5643957f18733b2b9f748111a9930361a46d91199c9876944cdf6c585e9c6"}},{"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":"davarocr/davar_ie/models/embedding/node_embedding.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fffe44249c075808d55303be278da8f2f828240713af2fdd1a2e35ca919da5"}},{"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":"davarocr/mmcv/utils/davar_progressbar.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3062b1673a0fc611ad13c1c1459b53834a0287113a8fa8101edcca3df76eeb"}},{"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":"davarocr/davar_layout/models/connects/mm_layout_feature_merge.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5e8e941b3f5b9e3aba3a2bc754cf2e458bb46a0e10ff946795e89a2e18e719"}},{"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":"davarocr/davar_rcg/core/converters/utils/beams.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca1c9681a23a545e1fbff0a4c04fceebb38227711b48ed0e329464edeeeaea2"}},{"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":"davarocr/davar_ie/models/infor_extrators/chargrid/chargrid_layout.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae2e54e7dc1e81efe6d8c494e9a34d74befeef85e0808ecbe19f72a5dcedb58"}},{"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":"davarocr/davar_ie/datasets/pipelines/tokenizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a15e5ea65309913c0381a407540b3c6a8213419dfe967c97786bbc97e1021e"}},{"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":"davarocr/davar_rcg/models/connects/single_block/LSTM.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d35ab89854126e06d3b8cc5c6216f55b16f487085374088887286794e6e068"}},{"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":"davarocr/davar_layout/models/embedding/chargrid_embedding.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ed41a3bc590b0391c2bb89e6c2b11c7887fbb81350f9efb4702ad3b8c41f6c"}},{"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":"davarocr/davar_ie/models/heads/ner_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfbf63fceccb8c30c85da017b068912d42c48622b8925398c2ae8c29467cc53"}},{"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":"davarocr/davar_spotting/models/backbone/light_crnn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd04420360b3c758c8441f16f2a390ba38f01b88993a8695a90a7fd0b5740b9"}},{"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":"davarocr/davar_table/core/mask/lp_mask_target.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"212c60683a0b435d32982a64ebaf59748f65de8cf88bbfad66cfd4200caf1367"}},{"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":"davarocr/mmcv/runner/hooks/lr_updater.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc9d9240ce3effa2a51bcb73ed0eacc21417b46f15bec7e3f06b85c28be577c"}},{"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":"davarocr/davar_ner/models/decoders/fc_decoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b4ea40551f7d8822d5dcb675f3c1a5be9c24ceb56c38ab9442f62006af9fec"}},{"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":"davarocr/davar_table/core/mask/structures.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f87e2f99349b80f693773666afe7a655ec1723c688a975752b6019c14127fa2"}},{"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":"davarocr/davar_nlp_common/models/encoders/transformers_encoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"170e4a6f21ff78e6ef4dd5873e8abd28ee841bec5aff67768fe8eb8158a0b0b7"}},{"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":"davarocr/davar_videotext/models/backbones/ResNet32.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27b9a8fa2215e3e49ed9b984847aac5cccb5a816c1bf9b41f88079fd0c6483c"}},{"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":"davarocr/davar_distill/dataset/pipelines/distill_formating.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b45a9d2a1290a6d40160b317f8875eabbd564c1b49ae3aba014b03d1573742c"}},{"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":"davarocr/davar_nlp_common/core/transformer_optimizer_constructor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a641f0d5422a88a584cd0f75b1ec67bea7d6f08d8b5e5c019b72f046ebe44a"}},{"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":"davarocr/davar_ie/models/embedding/relative_pos_embedding.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0088119dd3326ef5221ff1bf591cbd672c742c3a78ae3086cd03bd7a6bba06"}},{"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":"davarocr/davar_common/models/heads/cls_head.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5007e9695bd5e1fba6c450b4cfc8194f0e48abb4428925284257e5ca22af7681"}},{"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":"davarocr/davar_rcg/models/losses/ctc_loss.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7802730b625894c3239178961e7da9e611143dafc1476de72e550aa76ffa1c5"}},{"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":"davarocr/davar_order/datasets/di_order_dataset.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c271ad8000b0af373e6e36c2165fa011c6fddc73e080d53a4ad68bba6f5e1f5f"}},{"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":"davarocr/davar_det/models/detectors/mask_rcnn_det.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a219adb84e0e9260c57a0902ec81325be6a4bdd396c99628bea81af6732252fc"}},{"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":"davarocr/davar_common/datasets/davar_dataset_wrappers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94db616ddb69e869c0661304022637e2ff86f9a7c4f1bce10baebd2fd4183819"}},{"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":"davarocr/davar_ie/models/infor_extrators/chargrid/chargrid_textdet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a05b089cbb32d25fd75c94675d6ab82346dacb32f91c2cbfe2dd8bf401d890"}},{"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":"davarocr/davar_nlp_common/models/encoders/bilstm_encoder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"200d6b1e2aa6bce21d0f127e381209eb3b0fb4e12fe068169ae6cd54a7c95a8c"}},{"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":"davarocr/davar_spotting/models/spotters/base/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"709d8f07cebc8971cee4c7c607a0bf39bb2582921d904daecebc2eab44640700"}},{"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":"davarocr/davar_table/datasets/pipelines/ctunet_formating.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf22c8ffc471428d535fcf82c999c1891cdedd106810d7d7c2a8eb233bb5be3e"}},{"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":"davarocr/davar_common/models/loss/cross_entropy_loss.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3abe19904378149a213facf5746e297a56f9771aa4c3e8ae6da6edd85ffbdd4"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/ner/BERT/readme.md links to \u0060./configs/bert_softmax.py\u0060, but \u0060demo/ner/BERT/configs/bert_softmax.py\u0060 does not exist. 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":"demo/ner/BERT/readme.md"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc90ffe4a83526017116121621fd3f775c0e06e85077a375e8a2dd2a8ecbf25f"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/ner/BERT/readme.md links to \u0060./configs/bert_span.py\u0060, but \u0060demo/ner/BERT/configs/bert_span.py\u0060 does not exist. 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":"demo/ner/BERT/readme.md"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1e3255e96c1bfc36d3afac75b466cc6b492cc0e2b98608de35951cabfeac22"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/ner/BERT/readme.md links to \u0060./configs/bert_crf.py\u0060, but \u0060demo/ner/BERT/configs/bert_crf.py\u0060 does not exist. 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":"demo/ner/BERT/readme.md"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0077b5f13597b8cfb16161f4c82e162f4bf071534503d9aadbd1ee804f602149"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/ner/bilstm_crf/readme.md links to \u0060./configs/bilstm_crf.py\u0060, but \u0060demo/ner/bilstm_crf/configs/bilstm_crf.py\u0060 does not exist. 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":"demo/ner/bilstm_crf/readme.md"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7a9cea3a5db876b35905a48dccf8e7ee9b7622ed60dfb9aa979246f737e919"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/text_detection/east/readme.md links to \u0060../evalution/\u0060, but \u0060demo/text_detection/evalution\u0060 does not exist. 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":"demo/text_detection/east/readme.md"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b7a63052ef9230ade13b3de097d7ceb81454791e36f7d7eef55bcd2bca5a84"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/text_detection/mask_rcnn_det/readme.md links to \u0060../evalution/\u0060, but \u0060demo/text_detection/evalution\u0060 does not exist. 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":"demo/text_detection/mask_rcnn_det/readme.md"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9cf803cc301697f6b35c53ef152d71ed687ea027540bb666fc06853d9cc5a5"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/text_detection/text_perceptron_det/readme.md links to \u0060../evalution/\u0060, but \u0060demo/text_detection/evalution\u0060 does not exist. 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":"demo/text_detection/text_perceptron_det/readme.md"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0ff67edbeaf6196692276328c91f05b520df31becc69d2a4209216950771fd"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/text_spotting/dld/readme.md links to \u0060../evalution/\u0060, but \u0060demo/text_spotting/evalution\u0060 does not exist. 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":"demo/text_spotting/dld/readme.md"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab558569bdc6353684ecfdecb4ef9fbbff14deda0479e989a33f6e53ec52c71"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/text_spotting/mango/readme.md links to \u0060../evalution/\u0060, but \u0060demo/text_spotting/evalution\u0060 does not exist. 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":"demo/text_spotting/mango/readme.md"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6b38e725ee9efb031b7172cdf0fe7026f26209bb8b8b758febf97f31431b0c"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/text_spotting/mask_rcnn_spot/readme.md links to \u0060../evalution/\u0060, but \u0060demo/text_spotting/evalution\u0060 does not exist. 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":"demo/text_spotting/mask_rcnn_spot/readme.md"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66c6479c626a7864885b9d5bdd0005c82de27625d6b04b329f82bd302399594"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/videotext/yoro/readme.md links to \u0060demo/text_detection/evaluation/\u0060, but \u0060demo/videotext/yoro/demo/text_detection/evaluation\u0060 does not exist. 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":"demo/videotext/yoro/readme.md"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a077ee21dbc890a61f6400e1eb7e501e945a6f96446703b4f57556ce2b9f277"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/videotext/yoro/readme.md links to \u0060demo/videotext/evaluation/\u0060, but \u0060demo/videotext/yoro/demo/videotext/evaluation\u0060 does not exist. 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":"demo/videotext/yoro/readme.md"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e979a14e842a9c9e9ddd291c52a993111543f70be903cda2228ff61a9f807c0"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/videotext/yoro/readme.md links to \u0060config/yoro_east.py\u0060, but \u0060demo/videotext/yoro/config/yoro_east.py\u0060 does not exist. 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":"demo/videotext/yoro/readme.md"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e279d66655bf8bef38c1d1618fe2b614af51f03fada1313655dc0b19c0ff49"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: demo/videotext/yoro/readme.md links to \u0060demo/videotext/yoro/rcg/config/ic15_qscore_rgb_res32_bilstm_attn.py\u0060, but \u0060demo/videotext/yoro/demo/videotext/yoro/rcg/config/ic15_qscore_rgb_res32_bilstm_attn.py\u0060 does not exist. 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":"demo/videotext/yoro/readme.md"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0f981deb450dbee515bdc740344c8139c12c4143828f926911bfc7d5fb1aa4"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"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 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060requirements/build.txt\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":"requirements/build.txt"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"948913718c6ea7f2b66450be3a4716d6ce803f061537e9eab58199ad962b218b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022.json\u0022 in character or \u0022.txt\u0022 in character\u0060 appears character-identically in 5 files \u2014 davarocr/davar_rcg/core/converters/ace_converter.py, davarocr/davar_rcg/core/converters/att_converter.py, davarocr/davar_rcg/core/converters/bert_converter.py, davarocr/davar_rcg/core/converters/ctc_converter.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":"davarocr/davar_rcg/core/converters/ace_converter.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd400e5994d14a0adf36f6700d871be20404d69cf380ad36377589849666f8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027bboxes\u0027 in ann and len(ann[\u0027bboxes\u0027]) == 0\u0060 appears character-identically in 2 files \u2014 davarocr/davar_common/datasets/davar_custom.py, davarocr/davar_videotext/datasets/multi_frame_dataset.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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"68025fe0bbafd5621fbf243ae520e303b44c8ba955a022c3fa7679216b4f3378"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027cares\u0027 in ann and 1 not in ann[\u0027cares\u0027]\u0060 appears character-identically in 2 files \u2014 davarocr/davar_common/datasets/davar_custom.py, davarocr/davar_videotext/datasets/multi_frame_dataset.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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"45031cb047ac8b6fae5b6f2a4105407f3c2195e681ac6e90444b39ba55a19abc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027classes\u0027 in results[\u0027classes_config\u0027] or \u0027classes_0\u0027 in results[\u0027classes_config\u0027]\u0060 appears character-identically in 2 files \u2014 davarocr/davar_common/datasets/pipelines/davar_loading.py, davarocr/davar_layout/datasets/pipelines/mm_layout_loading.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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"37351f3327b683d6ad209825e94ec65004656d1ec13640306fcec855f25900e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(\u0027NotLabeled\u0027 in classes_config) or (\u0027NoLabel\u0027 in classes_config)\u0060 appears character-identically in 2 files \u2014 davarocr/davar_common/datasets/pipelines/davar_loading.py, davarocr/davar_layout/datasets/pipelines/mm_layout_loading.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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccde5e760dd7f06c8f9099b06e6e537c68219353c5d955e62549a8278454829f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ann is not None and self.filter_empty_gt\u0060 appears character-identically in 2 files \u2014 davarocr/davar_common/datasets/davar_custom.py, davarocr/davar_videotext/datasets/multi_frame_dataset.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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72c3d4eec2370c69409bdaeea598142e9cfd4afe66f61bd2a79e07457e021ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dist.is_available() and dist.is_initialized()\u0060 appears character-identically in 3 files \u2014 davarocr/davar_distill/models/distillation/base.py, davarocr/davar_nlp_common/models/models/encoder_decoder.py, davarocr/davar_rcg/models/recognizors/base.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":"davarocr/davar_distill/models/distillation/base.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53c5e039c83ed6ac216d8d373035bb448c40ef4540fcf5c811d99aa4d86a758"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060eval_func_params is not None and isinstance(eval_func_params, dict)\u0060 appears character-identically in 3 files \u2014 davarocr/davar_det/datasets/text_det_dataset.py, davarocr/davar_spotting/datasets/text_spot_dataset.py, davarocr/davar_table/datasets/table_rcg_dataset.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":"davarocr/davar_det/datasets/text_det_dataset.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7424cab6d29681a5ebe3662b7aed3d72fa2defc7726ce570590bab4d35ba4c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060gtRectMat[gtNum] == 0 and detRectMat[detNum] == 0 and gtNum not in gtDontCarePolsNum and detNum not in detDontCarePolsNum\u0060 appears character-identically in 2 files \u2014 davarocr/davar_det/core/evaluation/hmean.py, davarocr/davar_spotting/core/evaluation/e2e_hmean.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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d163bf3b5b5ba3a997f4fafb05cceda6cf04482f85f38385f15ed0b730b62d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027infor_context_module\u0027) and self.infor_context_module is not None\u0060 appears character-identically in 3 files \u2014 davarocr/davar_ie/models/infor_extrators/trie/trie.py, davarocr/davar_order/models/reading_order_detectors/gcn_pn.py, davarocr/davar_table/models/understanding_detectors/ctunet.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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d567c1238cde40a1f0fff92b3d9404ae0a9ae8da281a75d75c0f31412b8e845b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027infor_node_cls_head\u0027) and self.infor_node_cls_head is not None\u0060 appears character-identically in 3 files \u2014 davarocr/davar_ie/models/infor_extrators/trie/trie.py, davarocr/davar_order/models/reading_order_detectors/gcn_pn.py, davarocr/davar_table/models/understanding_detectors/ctunet.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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32296f427c594cfbec30cc481c4e4a77030a054f9bc01ce1f4695ff11b5b398"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027infor_roi_extractor\u0027) and self.infor_roi_extractor is not None\u0060 appears character-identically in 3 files \u2014 davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py, davarocr/davar_order/models/reading_order_detectors/gcn_pn.py, davarocr/davar_table/models/understanding_detectors/ctunet.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":"davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94ae6372c07f6d578a11b08cdd1626b321aa67a9cbe98e152efd5042743594f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027neck\u0027) and self.neck is not None\u0060 appears character-identically in 3 files \u2014 davarocr/davar_rcg/models/recognizors/general.py, davarocr/davar_rcg/models/recognizors/rf_learning.py, davarocr/davar_spotting/models/spotters/base/base.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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"196eb2dd5586172f483089a00c36342c07ab7a2159f5a78f02176d104b4c22c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027raw_text_embedding\u0027) and self.raw_text_embedding is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py, davarocr/davar_table/models/understanding_detectors/ctunet.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":"davarocr/davar_ie/models/infor_extrators/trie/trie_gt.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cda39758819213c890d3ab926baa01f9b23cea06ff62525be736c736c39290"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027recog_backbone\u0027) and self.recog_backbone is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py, davarocr/davar_spotting/models/spotters/base/two_stage_e2e.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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"c760177eb4fd1ff04dce9ba251492a1f545ebb95df5f3fb6fa180e45a524d7b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027recog_neck\u0027) and self.recog_neck is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py, davarocr/davar_spotting/models/spotters/base/two_stage_e2e.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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9605ce66b58c3cd57a4481517b675b0eb999fb66934796e88a7093a01019ce7f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027recog_roi_extractor\u0027) and self.recog_roi_extractor is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py, davarocr/davar_spotting/models/spotters/base/two_stage_e2e.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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abcec5cb39e894e0038d9f8334349a4f6fab9c9184b79aeb990cc5abfe9dd27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027recog_sequence_head\u0027) and self.recog_sequence_head is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py, davarocr/davar_spotting/models/spotters/base/two_stage_e2e.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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4774381a868d3f485b23f9a74e855ccbbe142132a1df123f6d1c9b02572eb43f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027recog_sequence_module\u0027) and self.recog_sequence_module is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py, davarocr/davar_spotting/models/spotters/base/two_stage_e2e.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":"davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedca477daac57e665c24449ce4d1684aab59dc17b488b858dda6800e4526a5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027recog_transformation\u0027) and self.recog_transformation is not None\u0060 appears character-identically in 3 files \u2014 davarocr/davar_spotting/models/spotters/base/base.py, davarocr/davar_spotting/models/spotters/base/seg_based_e2e.py, davarocr/davar_spotting/models/spotters/base/two_stage_e2e.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":"davarocr/davar_spotting/models/spotters/base/base.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d729625bb060c55cc19f0fc1b5e7b0c85330577311ceca7741d33a72e90ad248"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027rpn_head\u0027) and self.rpn_head is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_layout/models/vsr/vsr.py, davarocr/davar_spotting/models/spotters/base/two_stage_e2e.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":"davarocr/davar_layout/models/vsr/vsr.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a36f8beb7bb3c36e75d4a0336c8854993a2d5347e926079201f351c519ac14c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027sequence_module\u0027) and self.sequence_module is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_rcg/models/recognizors/general.py, davarocr/davar_rcg/models/recognizors/rf_learning.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":"davarocr/davar_rcg/models/recognizors/general.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f376cfb16ae29951a1ea23ddd8052b7748a17770828baa3feb679d2c9fdfc436"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027textual_relation_module\u0027) and self.textual_relation_module is not None\u0060 appears character-identically in 2 files \u2014 davarocr/davar_ie/models/connects/multimodal_context_module.py, davarocr/davar_ie/models/connects/multimodal_context_module_plusplus.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":"davarocr/davar_ie/models/connects/multimodal_context_module.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8707e1f82afe0c379e2bf51dd8791bdcae53f238c25f18b6031285156a8c95f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0027transformation\u0027) and self.transformation is not None\u0060 appears character-identically in 3 files \u2014 davarocr/davar_rcg/models/recognizors/base.py, davarocr/davar_rcg/models/recognizors/general.py, davarocr/davar_rcg/models/recognizors/rf_learning.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":"davarocr/davar_rcg/models/recognizors/base.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"25021d503daea28c8f2193027896bedb19bd8c5ee86b40ab81885cfe9847de59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(gt_labels) \u003E 0 and isinstance(gt_labels[0], str)\u0060 appears character-identically in 2 files \u2014 davarocr/davar_common/datasets/pipelines/davar_loading.py, davarocr/davar_layout/datasets/pipelines/mm_layout_loading.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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf3307e240cfa78eeb7384d0a32a39a09f1f36210ef9b120236762d2da080a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(gt_labels_ignore) \u003E 0 and isinstance(gt_labels_ignore[0], str)\u0060 appears character-identically in 2 files \u2014 davarocr/davar_common/datasets/pipelines/davar_loading.py, davarocr/davar_layout/datasets/pipelines/mm_layout_loading.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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"6318cbb79b17406e2976c7d4d4b28b380234a7d12f1b6a9ee3ba0837a5850d58"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lib_name is None or not os.path.isfile(os.path.join(lib_dir, lib_name))\u0060 appears character-identically in 6 files \u2014 davarocr/davar_det/core/post_processing/post_east.py, davarocr/davar_det/core/post_processing/post_tp_det.py, davarocr/davar_det/datasets/pipelines/east_data.py, davarocr/davar_det/datasets/pipelines/tp_data.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":"davarocr/davar_det/core/post_processing/post_east.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f7ff5c8c986f9d6d154340cdf60e60c6e8159b5ea2173093891dd3ac14465c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lib_name is not None and lib_dir is not None\u0060 appears character-identically in 3 files \u2014 davarocr/davar_det/datasets/pipelines/east_data.py, davarocr/davar_det/datasets/pipelines/tp_data.py, davarocr/davar_table/datasets/pipelines/gpma_data.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":"davarocr/davar_det/datasets/pipelines/east_data.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d6a00be557828d91eb115157fc8f1229ce20bd3807913131fe49188df2f1e9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not no_empty_seq and not no_empty_seq_bf\u0060 appears character-identically in 2 files \u2014 davarocr/davar_ie/models/losses/crf.py, davarocr/davar_ner/models/decoders/layers/crf.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":"davarocr/davar_ie/models/losses/crf.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace92d8610589e83730324cac0c00ff0080e933c44a75acdf0ba43378a8bae2f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rescale and not isinstance(scale_factors[0], float)\u0060 appears character-identically in 2 files \u2014 davarocr/davar_layout/models/heads/cascade_roi_head_w_gcn.py, davarocr/davar_table/models/roi_heads/lgpma_roi_head.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":"davarocr/davar_layout/models/heads/cascade_roi_head_w_gcn.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fc432b272a170362f1de739214acdc72ac30fc1830bcdce80804719399877e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.bieo_labels is not None and self.with_box_bieo_labels\u0060 appears character-identically in 3 files \u2014 davarocr/davar_common/datasets/pipelines/davar_loading.py, davarocr/davar_table/datasets/pipelines/ctunet_loading.py, davarocr/davar_table/datasets/pipelines/davar_loading_table.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":"davarocr/davar_common/datasets/pipelines/davar_loading.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"3812c80491babc03677a0ff077cf9a00613389a33b5817642e48eecc8c303992"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.img_prefix is None or osp.isabs(self.img_prefix)\u0060 appears character-identically in 2 files \u2014 davarocr/davar_common/datasets/davar_custom.py, davarocr/davar_videotext/datasets/multi_frame_dataset.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":"davarocr/davar_common/datasets/davar_custom.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b334c66c1f4b0ed7503784d36caba0763393ff2c92c79e18ed0568f2bd1633e9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.phase == \u0027Train\u0027 and len(label) \u003E self.batch_max_length\u0060 appears character-identically in 2 files \u2014 davarocr/davar_rcg/datasets/davar_rcg_dataset.py, davarocr/davar_videotext/datasets/yoro_rcg_dataset.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":"davarocr/davar_rcg/datasets/davar_rcg_dataset.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"590b419f8593d56761948169ced70357e93eec4c6e28254ed64fbb74e14c8167"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.with_infor_sequence_module and self.with_infor_ner_head\u0060 appears character-identically in 2 files \u2014 davarocr/davar_ie/models/infor_extrators/trie/trie.py, davarocr/davar_ie/models/infor_extrators/trie/trie_gt.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":"davarocr/davar_ie/models/infor_extrators/trie/trie.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"3576e67d1dc506fa6a5d686246c923d992a2e9e5b2e82f8d2b849d8196bcae53"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stride != 1 or self.inplanes != planes * block.expansion\u0060 appears character-identically in 2 files \u2014 davarocr/davar_rcg/models/backbones/ResNet32.py, davarocr/davar_rcg/models/backbones/ResNetRFL.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":"davarocr/davar_rcg/models/backbones/ResNet32.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b900f4d80ee960434d7034b4d3727113b59b5616907ddeb29bf9c4878921613a"}},{"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":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d432f837c286354cd261462826b6fbf9b3bcf77f7430749ad1517ce0511c2516"}},{"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":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e310e50aa44ec8adf900167ff463888fd7f436575a5dd966ac2a0cc8e51a5a2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"478395b07fb88da36cce2c53b009cc561a729df64ce34eef17eff20861b38272"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"add3a76b92ce686c12be5386a1b1f8ae402ffb0f04f617955cf74356bf2d92ef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aa6c7f3a9079a249a5a681feeb6dc24812b0d4eca9d6dd1ea80b558b7a1bdf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_intersection_over_union\u0060 (in \u0060evaluate_method\u0060) swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28d4ca108d09907d1815a2045e7f5b9fb23bc61f60f46cf714bbb6b97e38953"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_text_intersection_over_union_recall\u0060 (in \u0060evaluate_method\u0060) swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc6f355ee1200bc663796f6f18dbc448a275b69f143f811aad36f8f2a321447"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_text_intersection_over_union_precision\u0060 (in \u0060evaluate_method\u0060) swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_det/core/evaluation/hmean.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf4dfc4f4f7e4dbcb978ccc8b55e53f40fbbd69f72db40b22339dd7a2478f86"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060refine_x\u0060 (in \u0060softmasks_refine_bboxes\u0060) swallows every exception into \u0060return -1\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e42e52016027e22cd7dc56c136325b33bb5cae0cb0dcf9f6374efe84f0561af"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060refine_y\u0060 (in \u0060softmasks_refine_bboxes\u0060) swallows every exception into \u0060return -1\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davarocr/davar_table/core/post_processing/post_lgpma.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"542f3746ba3e52e525d2f9427cadb3a3d6c8c61f9a0d110ba273cecb3526f741"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_intersection_over_union\u0060 (in \u0060evaluate_method\u0060) swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_detection/evaluation/script.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f8b47783652e5dc6a19af0ccf21aae557709ef29abf767c1ce53c17f462c82"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_text_intersection_over_union_recall\u0060 (in \u0060evaluate_method\u0060) swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_detection/evaluation/script.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e40329cd9a950a1703b52bc60df405046e2cb26628c65ae60ba8212476f6648"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_text_intersection_over_union_precision\u0060 (in \u0060evaluate_method\u0060) swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demo/text_detection/evaluation/script.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a07917bf04e084f55670029a2904c444b25e132644a7ae9d780d19eb566e45f"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-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":"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/"}]}],"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":3,"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."]}]}