{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"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":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Interpreter.evaluateBuiltInFunction (cyclomatic 88): Interpreter.evaluateBuiltInFunction has cyclomatic complexity 88 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: simulator/src/main/scala/language/runtime/Interpreter.scala holds 3 of the 27 methods over the threshold \u2014 including the worst \u2014 and 153 of the 402 points over it (38%), 2.9\u00D7 the next-largest file (simulator/src/main/scala/scienceworld/processes/Chemistry.scala at 52). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"7688a95ce7d5db028c542e2acec5b58618cfa2dc63b57129d1befe90d8bbdc05"}},{"ruleId":"D1","level":"warning","message":{"text":"Interpreter.walkOneStep (cyclomatic 80): Interpreter.walkOneStep has cyclomatic complexity 80 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: simulator/src/main/scala/language/runtime/Interpreter.scala holds 3 of the 27 methods over the threshold \u2014 including the worst \u2014 and 153 of the 402 points over it (38%), 2.9\u00D7 the next-largest file (simulator/src/main/scala/scienceworld/processes/Chemistry.scala at 52). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e9f2a75a91e7d28aab8ce90f369b0433366a9000d5d0fa2ae2ba10b0e5611e"}},{"ruleId":"D1","level":"warning","message":{"text":"Chemistry.mixContainer (cyclomatic 67): Chemistry.mixContainer has cyclomatic complexity 67 (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":"simulator/src/main/scala/scienceworld/processes/Chemistry.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"af08da4f77f3edb60c87a99420d4436c37427933bd8eeb7a32bd658bad5984dc"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskMendelianGenetics1.mkGoldActionSequenceMendel (cyclomatic 44): TaskMendelianGenetics1.mkGoldActionSequenceMendel has cyclomatic complexity 44 (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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"96769a0d4aa0b92df8f2fd1ccf2a4eac9a2d0b3a5af27ae2c9e5ddafba43df52"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskMendelianGenetics2.mkGoldActionSequenceMendel (cyclomatic 44): TaskMendelianGenetics2.mkGoldActionSequenceMendel has cyclomatic complexity 44 (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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"999c06806fbba8100a2772107e23176eea2846199e0ea9aeac518646d5c4f93d"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.inheritClassPropertiesHelper (cyclomatic 32): Program.inheritClassPropertiesHelper has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/model/Program.scala"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1824f48392c3ba353be7dbae11a440a74ad38bc104ed0ff0573e2b51733a8252"}},{"ruleId":"D1","level":"warning","message":{"text":"Interpreter.calculateExpression (cyclomatic 30): Interpreter.calculateExpression 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: simulator/src/main/scala/language/runtime/Interpreter.scala holds 3 of the 27 methods over the threshold \u2014 including the worst \u2014 and 153 of the 402 points over it (38%), 2.9\u00D7 the next-largest file (simulator/src/main/scala/scienceworld/processes/Chemistry.scala at 52). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9fa24815f36e468d5fc2d758465739cd780a9304ce8aeee043ec1eae8124e0"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskChangeOfState.mkGoldActionSequenceChangeState (cyclomatic 27): TaskChangeOfState.mkGoldActionSequenceChangeState 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c65b4ce32be592a507f77c7594f8429af6a23a05a5a2a57cf2e9477dbc50d2d"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskElectricalConductivity.mkGoldActionSequenceTestComponent (cyclomatic 27): TaskElectricalConductivity.mkGoldActionSequenceTestComponent 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23eed6c5957221531000faf04deebe9825f8538efefcbc4957a3dda04732087"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskGrowPlant.mkGoldActionSequenceGrowFruits (cyclomatic 27): TaskGrowPlant.mkGoldActionSequenceGrowFruits 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7378bc8c945e905b5bff432d49cbdee32e7a76e382adfaa8ddd36c73bfa300c"}},{"ruleId":"D1","level":"warning","message":{"text":"GoalObjectConnectedToWire.isGoalConditionSatisfied (cyclomatic 26): GoalObjectConnectedToWire.isGoalConditionSatisfied has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"83672a5becfd0411bacb8462293937f015c6a7694db2edaab80a3ea2561bf953"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskObject.runModifier (cyclomatic 23): TaskObject.runModifier has cyclomatic complexity 23 (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":"simulator/src/main/scala/scienceworld/tasks/TaskModifier.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"14003aa49ad359e732779fb3fe15146e3056b29d27df2445f2253d1885d4c397"}},{"ruleId":"D1","level":"warning","message":{"text":"GoalWireConnectsObjectAndAnyPowerSource.isGoalConditionSatisfied (cyclomatic 23): GoalWireConnectsObjectAndAnyPowerSource.isGoalConditionSatisfied has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (GoalWireConnectsObjectAndAnyLightBulb.isGoalConditionSatisfied) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2912f11f04169c659c57daad9173a3b2e42f7147ce0371461d2e4e7954112c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"GoalWireConnectsObjectAndAnyLightBulb.isGoalConditionSatisfied (cyclomatic 23): GoalWireConnectsObjectAndAnyLightBulb.isGoalConditionSatisfied has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (GoalWireConnectsObjectAndAnyPowerSource.isGoalConditionSatisfied) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6765268328e264e6d0e487bb3c1ee67b53d52f9c3ce2cdbca0d56887b6941a"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskChemistryMix.mkGoldActionSequenceChemistryMix (cyclomatic 22): TaskChemistryMix.mkGoldActionSequenceChemistryMix 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a00d25305baef99f688c4981bad491ebb342af7843289258f17678d0df556c"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskChemistryMixPaint.mkGoldActionSequenceMixPaint (cyclomatic 22): TaskChemistryMixPaint.mkGoldActionSequenceMixPaint 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"48444c69e24ee73b87ab994c8fe6e71ef93aaed6359524ee2e89c76ec12d92c9"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleRunner.evaluateRule (cyclomatic 21): RuleRunner.evaluateRule 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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"054203f72b3f99268e05580c04e2578d06452dbdd0daed4c14ecb315f3bfc840"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicValue.booleanOperator (cyclomatic 20): DynamicValue.booleanOperator has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"948cdb10c26877b46a261ed7a40f9bbd7d8a81c531c55acc87a913b129398b45"}},{"ruleId":"D1","level":"warning","message":{"text":"Terminal.connectsToGround (cyclomatic 20): Terminal.connectsToGround 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":"simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricalComponent.scala"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1186e8e890aaf7953af3541c454b48eab80fba333c14a3344dfcbbade670c91"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionPourObject.isValidAction (cyclomatic 19): ActionPourObject.isValidAction 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":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb3a6f8f612d55a87fa4874b187dda74d92f1c4de91a87742022d0ed1811ec5"}},{"ruleId":"D1","level":"warning","message":{"text":"GoalSequence.tickOrderedSubgoals (cyclomatic 19): GoalSequence.tickOrderedSubgoals 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":"simulator/src/main/scala/scienceworld/tasks/goals/Goal.scala"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7e2186d91b50f0ba8d495cc24680fad83c2b596779a60c204dd09b67329573"}},{"ruleId":"D1","level":"warning","message":{"text":"EnvObject.getContainedAccessibleObjects (cyclomatic 18): EnvObject.getContainedAccessibleObjects has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/struct/EnvObject.scala"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"395b39945132dcaff5e24eb01e7b5db3632e35edc832bc1add6d39c1bd774e47"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskChangeOfState.mkActionSequenceHeatToStateOfMatter (cyclomatic 18): TaskChangeOfState.mkActionSequenceHeatToStateOfMatter has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84e38ff2784e6965e9b14e8a8e2ee666c1938698bd791e75a9ee6f04f120b3d"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskFindLivingNonLiving.mkGoldActionSequenceLiving (cyclomatic 18): TaskFindLivingNonLiving.mkGoldActionSequenceLiving has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"335c5cb1b72ddbdae98f67413cebccc573dfcb7c848bebf49906a994a6f973ac"}},{"ruleId":"D1","level":"warning","message":{"text":"GoalWireConnectsPowerSourceAndAnyLightBulb.isGoalConditionSatisfied (cyclomatic 17): GoalWireConnectsPowerSourceAndAnyLightBulb.isGoalConditionSatisfied has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8be600c77feb099e3ccd64c36d535a3e88c14db41d9866a53506750b13a5e6"}},{"ruleId":"D1","level":"warning","message":{"text":"RandomGeneticsPlants.mkGeneticTraitsStr (cyclomatic 16): RandomGeneticsPlants.mkGeneticTraitsStr 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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc40a18122d97d333af310b9391e4c819f19365572a7f12710c195d753a582d8"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskElectricalConductivity2.mkGoldActionSequenceTestComponent (cyclomatic 16): TaskElectricalConductivity2.mkGoldActionSequenceTestComponent has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ab9ec2d6ab9933051bb509041ab7ad30a9feb4a4c3cc45ef096b6e19226472"}},{"ruleId":"D2","level":"warning","message":{"text":"Interpreter.walkOneStep (cognitive 205): Interpreter.walkOneStep has cognitive complexity 205 (threshold 15). Drivers by points: if/else 58 (185 pts), loops 4 (12 pts), match/switch 2 (6 pts), boolean chains 2 (nesting depth added 139). 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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f31b5f794b63f3d69587fd18ecc9a46a4c59c7fe23d81103d6e4c470824608"}},{"ruleId":"D2","level":"warning","message":{"text":"Interpreter.evaluateBuiltInFunction (cognitive 132): Interpreter.evaluateBuiltInFunction has cognitive complexity 132 (threshold 15). Drivers by points: if/else 66 (131 pts), match/switch 1 (nesting depth added 65). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfac518c6d2fdbf6057beabf8555929e3fe909dd9cd64a9d2acccb20e0577e1"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.inheritClassPropertiesHelper (cognitive 125): Program.inheritClassPropertiesHelper has cognitive complexity 125 (threshold 15). Drivers by points: if/else 16 (60 pts), loops 15 (56 pts), match/switch 3 (9 pts) (nesting depth added 91). 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":"simulator/src/main/scala/language/model/Program.scala"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29c73e281dbb165e5aab0918a26b94b47e7364b36e0d2eddac9b032e6865186"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalObjectConnectedToWire.isGoalConditionSatisfied (cognitive 107): GoalObjectConnectedToWire.isGoalConditionSatisfied has cognitive complexity 107 (threshold 15). Drivers by points: match/switch 9 (55 pts), if/else 15 (28 pts), loops 5 (21 pts), boolean chains 3 (nesting depth added 75). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab40b45d5a92eeca94b60adaa3dcbc1f2454328d548408ed70a0b67f905bac3"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskMendelianGenetics1.mkGoldActionSequenceMendel (cognitive 106): TaskMendelianGenetics1.mkGoldActionSequenceMendel has cognitive complexity 106 (threshold 15). Drivers by points: if/else 24 (56 pts), loops 17 (35 pts), match/switch 3 (11 pts), boolean chains 4 (nesting depth added 58). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7b955e3cf89f28c017f4f0f6a81d33a0896fc32636864a856623d05b309bd1"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskMendelianGenetics2.mkGoldActionSequenceMendel (cognitive 106): TaskMendelianGenetics2.mkGoldActionSequenceMendel has cognitive complexity 106 (threshold 15). Drivers by points: if/else 24 (56 pts), loops 17 (35 pts), match/switch 3 (11 pts), boolean chains 4 (nesting depth added 58). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f784c68c80a69b554deaa5b7569f7c3b528a370a6d08c265b9de83e00633e3a4"}},{"ruleId":"D2","level":"warning","message":{"text":"Chemistry.mixContainer (cognitive 98): Chemistry.mixContainer has cognitive complexity 98 (threshold 15). Drivers by points: if/else 37 (69 pts), boolean chains 29 (nesting depth added 32). 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":"simulator/src/main/scala/scienceworld/processes/Chemistry.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8f315ca555e1ea5ca6a5495b2bfe4d6b6f52c22630a6d80d591f60e8e7a460"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskObject.runModifier (cognitive 85): TaskObject.runModifier has cognitive complexity 85 (threshold 15). Drivers by points: if/else 17 (62 pts), loops 5 (19 pts), boolean chains 4 (nesting depth added 59). 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":"simulator/src/main/scala/scienceworld/tasks/TaskModifier.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4603115f8a739b3a12350935463d49b0633bb42ec7d9bc2922a311491a6318"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalWireConnectsObjectAndAnyPowerSource.isGoalConditionSatisfied (cognitive 80): GoalWireConnectsObjectAndAnyPowerSource.isGoalConditionSatisfied has cognitive complexity 80 (threshold 15). Drivers by points: if/else 14 (42 pts), match/switch 5 (24 pts), loops 3 (9 pts), boolean chains 5 (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (GoalWireConnectsObjectAndAnyLightBulb.isGoalConditionSatisfied) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adb8ae83b5e125485a7cacf305d403dfd7d3631b35bfca9348f3e311c1de349"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalWireConnectsObjectAndAnyLightBulb.isGoalConditionSatisfied (cognitive 80): GoalWireConnectsObjectAndAnyLightBulb.isGoalConditionSatisfied has cognitive complexity 80 (threshold 15). Drivers by points: if/else 14 (42 pts), match/switch 5 (24 pts), loops 3 (9 pts), boolean chains 5 (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (GoalWireConnectsObjectAndAnyPowerSource.isGoalConditionSatisfied) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b874e872a5969656634d9f9ccf2c51249fc9085f28ac69ef77c6bfbdfb7000"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskGrowPlant.mkGoldActionSequenceGrowFruits (cognitive 72): TaskGrowPlant.mkGoldActionSequenceGrowFruits has cognitive complexity 72 (threshold 15). Drivers by points: if/else 16 (43 pts), loops 10 (22 pts), match/switch 1 (5 pts), boolean chains 2 (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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c578d85446461ac123f3fd831cd26b14155fc369c7d651a8674797a1b5ecc2"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalSequence.tickOrderedSubgoals (cognitive 67): GoalSequence.tickOrderedSubgoals has cognitive complexity 67 (threshold 15). Drivers by points: if/else 19 (60 pts), loops 3 (7 pts) (nesting depth added 45). 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":"simulator/src/main/scala/scienceworld/tasks/goals/Goal.scala"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e54edc094356c69afa58a6f92fe373a6fd665edcebcd7d106198d60a76e59b"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskChangeOfState.mkGoldActionSequenceChangeState (cognitive 66): TaskChangeOfState.mkGoldActionSequenceChangeState has cognitive complexity 66 (threshold 15). Drivers by points: if/else 33 (58 pts), loops 3 (8 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab43efe4149150c46dfc7607a6a86085ed004acc74d715b87df3dff838f49a7f"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskChemistryMix.mkGoldActionSequenceChemistryMix (cognitive 66): TaskChemistryMix.mkGoldActionSequenceChemistryMix has cognitive complexity 66 (threshold 15). Drivers by points: if/else 21 (52 pts), loops 4 (12 pts), boolean chains 2 (nesting depth added 39). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec136de105fe5a3d39748856ae4c40c1f4241c614e9259f53c7896bba1b3017"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalWireConnectsPowerSourceAndAnyLightBulb.isGoalConditionSatisfied (cognitive 64): GoalWireConnectsPowerSourceAndAnyLightBulb.isGoalConditionSatisfied has cognitive complexity 64 (threshold 15). Drivers by points: match/switch 7 (36 pts), if/else 12 (18 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 41). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc841fd1666a6265b3e71955a9e79684352b6c23900444d3090a17a1e9bc376"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskFindLivingNonLiving.mkGoldActionSequenceLiving (cognitive 54): TaskFindLivingNonLiving.mkGoldActionSequenceLiving has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (52 pts), boolean chains 1, loops 1 (nesting depth added 34). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ba035d0f6879486429b8b42503d21a3c1c2406728fd98beba3fd89118f099f"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskElectricalConductivity.mkGoldActionSequenceTestComponent (cognitive 53): TaskElectricalConductivity.mkGoldActionSequenceTestComponent has cognitive complexity 53 (threshold 15). Drivers by points: if/else 25 (41 pts), boolean chains 6, loops 2 (5 pts), match/switch 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed620818649b90171b33020cab01d2ee4acc2d691190066f5fbe57cecd1ff805"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.connectsToGround (cognitive 51): Terminal.connectsToGround has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (40 pts), boolean chains 5, match/switch 2 (5 pts), loops 1 (nesting depth added 31). 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":"simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricalComponent.scala"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0453e4648aeb10a1b0f40fd213c61fc01bbf3a87896ff40e2f856e068915671d"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskChemistryMixPaint.mkGoldActionSequenceMixPaint (cognitive 43): TaskChemistryMixPaint.mkGoldActionSequenceMixPaint has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (33 pts), loops 6 (9 pts), boolean chains 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"155396e6156ed03c6269886c20cceb45292b4af22e493c79629539bff4f032f7"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleRunner.evaluateRule (cognitive 41): RuleRunner.evaluateRule has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 7 (10 pts), boolean chains 2 (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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9776c26cdef398c2c75c2b957bd459c23c363c16af13da13485d3a2f690b21ca"}},{"ruleId":"D2","level":"warning","message":{"text":"ExampleGoldAgent.main (cognitive 41): ExampleGoldAgent.main has cognitive complexity 41 (threshold 15). Drivers by points: if/else 6 (22 pts), loops 7 (18 pts), boolean chains 1 (nesting depth added 27). 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":"simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2662796496726bda77a5e2f1675fac203f2e0ed70b61e2e7d47c65a5e24cb75"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvObject.getContainedAccessibleObjects (cognitive 40): EnvObject.getContainedAccessibleObjects has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (31 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 25). 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":"simulator/src/main/scala/scienceworld/struct/EnvObject.scala"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"945ba16e3d8a193063c4e3535f36496b8a3f67e91e6068dac9816f4ebd173ff8"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskInclinedPlane1.filterDuplicatesAndAddMostLeast (cognitive 39): TaskInclinedPlane1.filterDuplicatesAndAddMostLeast has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 4 (8 pts), match/switch 2 (8 pts) (nesting depth added 25). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"051cc0694ca8ed5652afe493b462c57d61e6cb43e5d9dd217a4f3940579831de"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskInclinedPlane2.filterDuplicatesAndAddMostLeast (cognitive 39): TaskInclinedPlane2.filterDuplicatesAndAddMostLeast has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 4 (8 pts), match/switch 2 (8 pts) (nesting depth added 25). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ba3b93e787f826e2935024e28454b530b56b5dfa3475b9f0cfb585ebbc5977"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskInclinedPlane3.filterDuplicatesAndAddMostLeast (cognitive 39): TaskInclinedPlane3.filterDuplicatesAndAddMostLeast has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 4 (8 pts), match/switch 2 (8 pts) (nesting depth added 25). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"2121deb5bbf398520dcc9721d8c5fcc8890a46bb905ba5c60eb92f347cb1e522"}},{"ruleId":"D2","level":"warning","message":{"text":"Flower.tick (cognitive 36): Flower.tick has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 2 (8 pts), loops 2 (6 pts) (nesting depth added 24). 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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/Plant.scala"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4caff37466540778caa54778d49eb581fc02ab9c0f600e042c242758bf0a02"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalSequence.tickUnorderedSubgoals (cognitive 34): GoalSequence.tickUnorderedSubgoals has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (27 pts), loops 3 (7 pts) (nesting depth added 25). 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":"simulator/src/main/scala/scienceworld/tasks/goals/Goal.scala"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8409ce810794ee4df1d9ac24d6e721cfe7799126e721b9cf181cf160413bc3e3"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskChangeOfState.mkActionSequenceHeatToStateOfMatter (cognitive 34): TaskChangeOfState.mkActionSequenceHeatToStateOfMatter has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18f68350ca2b3a0973e774ab4b816f2bc6d67050171cbef46cd2eaa85de11d6"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskUseInstrumentThermometer2.mkGoldActionSequenceThermometer (cognitive 33): TaskUseInstrumentThermometer2.mkGoldActionSequenceThermometer has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 3 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e089fecf03df2a6a3dd7711ea4e1ec847dd0f6b204c03e9fe1980ca4bb2d8f"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleRunner.runPostcondition (cognitive 32): RuleRunner.runPostcondition has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 3 (7 pts) (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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"12dc7441214ef868fb9f9b81ec9d5fa05e947827735e905ed9333b033fd09f0e"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskUseInstrumentThermometer3.mkGoldActionSequenceThermometer (cognitive 32): TaskUseInstrumentThermometer3.mkGoldActionSequenceThermometer has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 3 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84d20d9a7d14afa215444548b5d329b30e4c49842dde106bcbce6dd660e17ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Interpreter.calculateExpression (cognitive 31): Interpreter.calculateExpression has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (27 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9d7f5c6ff4717c6b9d6284f293a5d5b1d82af524589598e636005ac2a0b52c"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionPourObject.isValidAction (cognitive 27): ActionPourObject.isValidAction has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7134e818810345d4b2b9d83debb17a8c8ea53be444b2855af37717db578f7da"}},{"ruleId":"D2","level":"warning","message":{"text":"PathFinder.getWaterInContainer (cognitive 26): PathFinder.getWaterInContainer has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"84690ea91548a8227eee06750d401058a7ff314c4fb952f883dc04004987ca5f"}},{"ruleId":"D2","level":"warning","message":{"text":"RandomGeneticsPlants.mkGeneticTraitsStr (cognitive 25): RandomGeneticsPlants.mkGeneticTraitsStr has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 3 (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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f1efe2c5195d9641d83de617bc24eb0aa91ce6836a7265f41076af4874b972"}},{"ruleId":"D2","level":"warning","message":{"text":"Combustion.combustionTick (cognitive 25): Combustion.combustionTick has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2, loops 1 (2 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":"simulator/src/main/scala/scienceworld/processes/Combustion.scala"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db40e78014e4d830a73106db74188ed421598b0d2a84bef78f1ae19e412117b"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.toString (cognitive 24): Program.toString has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, loops 6 (12 pts) (nesting depth added 6). 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":"simulator/src/main/scala/language/model/Program.scala"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"338f2361b3d320a7a466636aa2806675a9ed8dfd2b3fa015bf2fe0e265d98dab"}},{"ruleId":"D2","level":"warning","message":{"text":"Reader.parseProgramFromFile (cognitive 24): Reader.parseProgramFromFile has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (9 pts), error handling 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":"simulator/src/main/scala/language/runtime/Reader.scala"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fb904e0cfca29935c63c975c6b8d2aabfdfbdb75f618a0f3433cf14fa73509"}},{"ruleId":"D2","level":"warning","message":{"text":"Toilet.tick (cognitive 23): Toilet.tick has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 12). 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":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed6cfa31db05869c1cbefaefb929189592d3a20a38c8da82b0a37c3aebc752c"}},{"ruleId":"D2","level":"warning","message":{"text":"Taxonomy.loadFromFile (cognitive 22): Taxonomy.loadFromFile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 1 (nesting depth added 13). 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":"simulator/src/main/scala/language/struct/Taxonomy.scala"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bc93bed32579c8f9bdb047563f8dc8d4cc806085c7881e469517b0671cfc88"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionMoveThroughDoor.isValidAction (cognitive 22): ActionMoveThroughDoor.isValidAction has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (2 pts), match/switch 2 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionMoveToLocation.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c052a984e4de83e0eb29b4196730ecc6ff635f0612fd963e478d0292207ea50b"}},{"ruleId":"D2","level":"warning","message":{"text":"InputParser.parse (cognitive 22): InputParser.parse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 5 (9 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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69210ef5a37172bbe187193f5ed05dc33252ba2961a3f6789af4272f1d7de89"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskElectricalConductivity2.mkGoldActionSequenceTestComponent (cognitive 22): TaskElectricalConductivity2.mkGoldActionSequenceTestComponent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a51f5273295be3788a7d1cee542f3cf7d41a5899e0dc5a049c87c12ade7272"}},{"ruleId":"D2","level":"warning","message":{"text":"PlantLifeStageReproduction.tick (cognitive 21): PlantLifeStageReproduction.tick has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"38acfa8db1c72c049f5721644103c4097911cbede8d203ff081c15327cd93552"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvObject.toJSON (cognitive 21): EnvObject.toJSON has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/struct/EnvObject.scala"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea5f50aef3cd0f0b1db33974326df1f2c5118ce3ce6e7c8f96943241e08a871"}},{"ruleId":"D2","level":"warning","message":{"text":"ExampleRandomAgent.main (cognitive 20): ExampleRandomAgent.main has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 2 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/examples/ExampleRandomAgent.scala"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"72980c0e196dfa34f9a822e48e61b98eb340ed62f5a91dfe3210f0214ff8ae8b"}},{"ruleId":"D2","level":"warning","message":{"text":"InputParser.populateHelper (cognitive 20): InputParser.populateHelper has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 6 (9 pts), match/switch 1 (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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fe6b3a5bbb20d22a553b42ee45f1ba69b4eb70c39135c8ec844e01590b4471"}},{"ruleId":"D2","level":"warning","message":{"text":"InputParser.populateHelper (cognitive 20): InputParser.populateHelper has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 6 (9 pts), match/switch 1 (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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4620257070c759da88fd7fa5511c5de5be61aade148fe908f1a7d95cbe22c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ElectricalConductivity.unpolarizedElectricalConductivityTick (cognitive 20): ElectricalConductivity.unpolarizedElectricalConductivityTick has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4 (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":"simulator/src/main/scala/scienceworld/processes/ElectricalConductivity.scala"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"db480d79af23f856afee3fcbe5cec9463fdecb15550ad7c01b6835c0b780a521"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentInterface.getPossibleActionObjectCombinations (cognitive 20): AgentInterface.getPossibleActionObjectCombinations has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (14 pts), if/else 2 (6 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"41079d9d9a918d4ffbbd530a48c7a0876f1fba87a38d632e804f88fd0717ec32"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskGrowPlant.mkGoldActionSequenceGrowPlant (cognitive 20): TaskGrowPlant.mkGoldActionSequenceGrowPlant has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (4 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"a691a33f6c1f45f9caac3fe5770f7eb984b7a7af9fc13b4cc1e4912154a24010"}},{"ruleId":"D2","level":"warning","message":{"text":"PlantLifeStageSeedling.tick (cognitive 19): PlantLifeStageSeedling.tick has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (PlantLifeStageAdult.tick) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd265ee0cea168b3ebc22058578377e3ed983be52d88c16227808facdce72017"}},{"ruleId":"D2","level":"warning","message":{"text":"PlantLifeStageAdult.tick (cognitive 19): PlantLifeStageAdult.tick has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (PlantLifeStageSeedling.tick) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d214636595b69945a799b6e4ef6469e0d7cc6990cabf5ea42cfd553dd3d30a8"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalObjectInContainer.isGoalConditionSatisfied (cognitive 19): GoalObjectInContainer.isGoalConditionSatisfied has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (GoalObjectInContainerByName.isGoalConditionSatisfied) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"239c7f9358f964b308e3bc29f73f26322c4505b693e486bde420620b1e7d2475"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalObjectInContainerByName.isGoalConditionSatisfied (cognitive 19): GoalObjectInContainerByName.isGoalConditionSatisfied has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (GoalObjectInContainer.isGoalConditionSatisfied) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e548463f2e50560421df016bff5e4750aefeb9df07d570964ed6136af2b0bb"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalLifeStage.isGoalConditionSatisfied (cognitive 19): GoalLifeStage.isGoalConditionSatisfied has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLifeStage.scala"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1657626c033c51ca54177b416cccc0711544cb447c8a8dd006e60596a8b2f57f"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalLifeStageAnywhere.isGoalConditionSatisfied (cognitive 19): GoalLifeStageAnywhere.isGoalConditionSatisfied has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLifeStage.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc1360b0ee4b99cc2a74ac000990fb1f343a327ea243e8b93d6fd0191374f2a"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskIdentifyLifeStages1.mkActionSequenceWaitForLivingThingInStage (cognitive 19): TaskIdentifyLifeStages1.mkActionSequenceWaitForLivingThingInStage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), match/switch 1 (3 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"7979e10a052d5f7c8b9189e55b50c6e8106a7f8e94641ba6ad3b0977322a4b13"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskMendelianGenetics2.setupGoals (cognitive 19): TaskMendelianGenetics2.setupGoals has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), loops 4 (8 pts) (nesting depth added 5). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c6defca56b235d43f8053d386a3f35369b7e588fa60a08ed66e8f8ccc6f423"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicValue.booleanOperator (cognitive 18): DynamicValue.booleanOperator has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (11 pts), if/else 7 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee791360c35aa6e132fd8bf0b199227b831ca8b738c22a0ee40a4e37f9b90fee"}},{"ruleId":"D2","level":"warning","message":{"text":"EntryPoint.main (cognitive 18): EntryPoint.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (8 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":"simulator/src/main/scala/scienceworld/EntryPoint.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab01d729b03eace741a3fc8c2fc0eb0d1e49cb3fa432c8f652b7cdbaa8cdc6a5"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionPourObject.runAction (cognitive 18): ActionPourObject.runAction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c576a3cbe1687bf48ff805de1eaa942ddfaaa3f30d398b9e0342990161ac3c"}},{"ruleId":"D2","level":"warning","message":{"text":"InputParser.chooseUniqueReferents (cognitive 18): InputParser.chooseUniqueReferents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (6 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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"242e7cc5e8adf8c847a70f8b9d8c1ae93fe384548ec2aa80922d2df85a9f139e"}},{"ruleId":"D2","level":"warning","message":{"text":"Sink.tick (cognitive 18): Sink.tick has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). 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. This shape REPEATS in the file: one other method here (Bathtub.tick) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7580c0ecae1a5c09fda85cff937c8f7bd9915b7b48b37ed46c1db8e790b77cdf"}},{"ruleId":"D2","level":"warning","message":{"text":"Bathtub.tick (cognitive 18): Bathtub.tick has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). 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. This shape REPEATS in the file: one other method here (Sink.tick) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6d068e9220ca786202cb2d5bf731c82012fc721fad6b51c47f53a51cab9e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"ElectricalConductivity.areComponentsElectricallyConnected (cognitive 18): ElectricalConductivity.areComponentsElectricallyConnected has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (4 pts), loops 2 (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":"simulator/src/main/scala/scienceworld/processes/ElectricalConductivity.scala"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e04707c2361728e1ab2f4eb8f20a03eb16b4d53d57769409a0104803b7f8168"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalObjectsInSingleContainer.isGoalConditionSatisfied (cognitive 18): GoalObjectsInSingleContainer.isGoalConditionSatisfied has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c38b95b0a2e18dcbd5f6c48c71c5e971b859aa79e7c425406064db5e49bda46"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskFindLivingNonLiving.mkGoldActionSequenceNonLiving (cognitive 18): TaskFindLivingNonLiving.mkGoldActionSequenceNonLiving has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 2, loops 1 (nesting depth added 10). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07778a0e6d08c20b29841f4b9c5af8a79531db7f438e4b1600e01d5e0bf0187"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskMendelianGenetics1.setupGoals (cognitive 18): TaskMendelianGenetics1.setupGoals has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 4 (8 pts) (nesting depth added 5). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bacd05311f0977eca2de809d0982faba6566cec259644347930da9761f1be46"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionLookIn.runAction (cognitive 17): ActionLookIn.runAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 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":"simulator/src/main/scala/scienceworld/actions/ActionLook.scala"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"37880619eda10a023342184fee3a7216f7ab9417816b10da49fd0fbef3f40602"}},{"ruleId":"D2","level":"warning","message":{"text":"HeatTransfer.heatTransferHeatSource (cognitive 17): HeatTransfer.heatTransferHeatSource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 2 (nesting depth added 10). 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. This shape REPEATS in the file: one other method here (HeatTransfer.heatTransferCoolingSource) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/HeatTransfer.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fe3a16597df43cf43e50191cf3826eea6fc442d8caecc987a7ba3d2840f9d6"}},{"ruleId":"D2","level":"warning","message":{"text":"HeatTransfer.heatTransferCoolingSource (cognitive 17): HeatTransfer.heatTransferCoolingSource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 2 (nesting depth added 10). 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. This shape REPEATS in the file: one other method here (HeatTransfer.heatTransferHeatSource) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/HeatTransfer.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a26acd1ce36a9d598c452702c9caebfb32bb3e0ca8b5d855439fedb6f0edf12"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskGrowPlant.setupGoals (cognitive 17): TaskGrowPlant.setupGoals has cognitive complexity 17 (threshold 15). Drivers by points: loops 7 (14 pts), if/else 3 (nesting depth added 7). 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad0504f04cd8288797979bf81e2b82c06544eb7c91921b2201d57f87762103c"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.checkForErrors (cognitive 16): Program.checkForErrors has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (9 pts), match/switch 2 (4 pts), if/else 3 (nesting depth added 7). 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":"simulator/src/main/scala/language/model/Program.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ce0b79518d03b080abbbad7b2c2cbaa8bfa3410a284152ece6f8df1115083f"}},{"ruleId":"D2","level":"warning","message":{"text":"Program.checkForRuleErrors (cognitive 16): Program.checkForRuleErrors has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 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":"simulator/src/main/scala/language/model/Program.scala"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9625603e7ead979b95080b38f8548c3005aeb54b26e1877afd12dc03cc9b5ba6"}},{"ruleId":"D2","level":"warning","message":{"text":"Interpreter.evaluateForRange (cognitive 16): Interpreter.evaluateForRange has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"3533f10a4e750f534e6d7b88dadb1d00b049bb4767f5fb83426c642cce7c4040"}},{"ruleId":"D2","level":"warning","message":{"text":"InputParser.parse (cognitive 16): InputParser.parse has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 5 (7 pts) (nesting depth added 6). 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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"48717a8d71789aeb5d1bab4757194bf5a433f4ab88edd5faca04902b89dd7b55"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionOpenDoor.isValidAction (cognitive 16): ActionOpenDoor.isValidAction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, match/switch 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. This shape REPEATS in the file: one other method here (ActionCloseDoor.isValidAction) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff82a331c23ce49493110192cf5684c8206e21a23420d200ade58395538a62c"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionCloseDoor.isValidAction (cognitive 16): ActionCloseDoor.isValidAction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, match/switch 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. This shape REPEATS in the file: one other method here (ActionOpenDoor.isValidAction) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe22a29dd38f2721d0c1227e2dbce0e05c78fa664b70f89ff3e6feee18861f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Chemistry.getSubstance (cognitive 16): Chemistry.getSubstance has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, 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":"simulator/src/main/scala/scienceworld/processes/Chemistry.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbf5bf836fdfdf9cdc438a3e68dc71fc1dbced3bbfe7ef45374c8016c07fc14"}},{"ruleId":"D2","level":"warning","message":{"text":"GoalFindLivingThingStage.isGoalConditionSatisfied (cognitive 16): GoalFindLivingThingStage.isGoalConditionSatisfied has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalFind.scala"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1be5faa0846dc174c71038c58f6b688ee7a7b474e5c8653ed0c66e0650bb17"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScienceWorldEnv: TooManyMethods \u2014 74 methods. The bar is 30 methods; this is 44 over it, 2.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scienceworld/scienceworld.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f3c9709b8e086b14d26629c5eb55944f5b999e8e338e819ce9e37561436db1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Parser: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/parser/Parser.scala"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f2c7465a299a28d80a1d11557e38cb20b4cd2d3ef4bc6942b4355d958db515"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EnvObject: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/struct/EnvObject.scala"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e8f299442c78c8fc9c6328e13949bc78a922ad3037da27da9beec9e6a98809"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: properties/MaterialProperties.scala: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 334 over it, 1.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/properties/MaterialProperties.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f0c54b539b419b9a88b9fbe527a3a8cfab1e24906328c6557d7088e805187f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DynamicValue: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"111e08c76ea6451885e32acedf61b8032b02bc25ff2669a8dea478d8b8d244ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/Interpreter.scala: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Interpreter (11-1295). The bar is 500 significant lines; this is 214 over it, 1.43\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c91f60441c3b3ee27e62c95373478000cce204f3bf862f02b4a8cca8621e706"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PythonInterface: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b641bffe9cf8f7177ab034fcdeaa7344e3780e28813b5254a0302fae546433"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 74 shared lines): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:314-544 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:547-698 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:264-598 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:299-633 \u2014 These 4 members are variants of one another: a block of 74 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc31f145ee9824a8d69e47cb799b3b8a65b04baba9b6d4dd8658eb81631cda3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (172 shared lines): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:319-514 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:268-464 \u2014 These two members are variants of one another: 172 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fb92e553d83f2fa6de6232c380165f839d40f37ef8b69b0645c6596b535074"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (152 shared lines): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:325-573 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:229-415 \u2014 These two members are variants of one another: 152 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"99344cd5a96e44eecdd6d80821e31c3d9e5b98b6a905ea6452ccf27bf9c90b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (67 shared lines): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:150-242 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:184-277 \u2014 These two members are variants of one another: 67 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"23406cc578ec5f98d990a76a198e088e53e484b1187264c8e4eeae1bb2091871"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:209-300 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:156-249 \u2014 These two members are variants of one another: 59 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"da69d49de9e14fc4e041deb35f4a0de2b47f2f26ff80175017e72e2887a1eb96"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (45 shared lines): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:245-321 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:324-442 \u2014 These two members are variants of one another: 45 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4f7a5895a15d0a17986a835626d5025f1cf557c71de9da754e3d5653b3ae6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:127-186 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:126-185 \u2014 These two members are variants of one another: 42 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b47492ff6abea53812ea1bc2f05b804b9bdc7a13dad7d452a22a0d28e62abee"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:167-252 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:260-345 \u2014 These two members are variants of one another: 35 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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b06e22bd0bd8e682388c79a1e246b8e8ddf6ac81074bc7ea767bd5cfeb36f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala:55-84 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala:60-89 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2081a16de686d98b6a5f2efa8e5a8913a06083eb788ce1ea8ac11e53d4f7fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:80-102 | simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:176-198 | simulator/src/main/scala/scienceworld/actions/ActionConnectElectrical.scala:234-256 | simulator/src/main/scala/scienceworld/actions/ActionEat.scala:75-97 | simulator/src/main/scala/scienceworld/actions/ActionFlush.scala:74-96 | simulator/src/main/scala/scienceworld/actions/ActionFocus.scala:62-84 | simulator/src/main/scala/scienceworld/actions/ActionLook.scala:141-170 | simulator/src/main/scala/scienceworld/actions/ActionLook.scala:264-286 | simulator/src/main/scala/scienceworld/actions/ActionMix.scala:66-88 | simulator/src/main/scala/scienceworld/actions/ActionMoveToLocation.scala:153-175 | simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:108-130 | simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:232-254 | simulator/src/main/scala/scienceworld/actions/ActionRead.scala:69-91 | simulator/src/main/scala/scienceworld/actions/ActionTeleport.scala:86-108 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionActivate.scala"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afcb50e56ae878917e34802d4d2517321c77015d17482065fe952d8e8de5193"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:22-37 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:51-66 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:84-99 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:117-132 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:151-175 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:191-215 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:233-255 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:274-298 \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":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc100be62f9d50c37c0c55bb8527802c526af641d6abca271c20c24f0f00bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/processes/lifestage/AdultForeverLifeStage.scala:31-49 | simulator/src/main/scala/scienceworld/processes/lifestage/AnimalLifeStage.scala:132-150 | simulator/src/main/scala/scienceworld/processes/lifestage/BirdLifeStage.scala:173-191 | simulator/src/main/scala/scienceworld/processes/lifestage/ButterflyLifeStage.scala:175-193 | simulator/src/main/scala/scienceworld/processes/lifestage/FrogLifeStage.scala:135-153 | simulator/src/main/scala/scienceworld/processes/lifestage/TortoiseLifeStage.scala:172-190 \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":"simulator/src/main/scala/scienceworld/processes/lifestage/AdultForeverLifeStage.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3d5d721b17f5b3b3f29199c222531ecd1aa09df5f5ee8f9e766186f5aeb534"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:252-280 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:49-158 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala:235-274 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala:281-310 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala:317-346 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalTemperature.scala:12-41 \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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"721c3bcd13c6582046e5d92536fdca4d47a15f23c592242a729f8b4c9cf4d335"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/actions/ActionConnectElectrical.scala:140-167 | simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:108-135 | simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:445-472 | simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:573-600 | simulator/src/main/scala/scienceworld/actions/ActionUseDevice.scala:75-102 \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":"simulator/src/main/scala/scienceworld/actions/ActionConnectElectrical.scala"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6422f1763597d16ca83a038f9e384e3e9f74aab31983fd9a3a83fd159dca85e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala:23-40 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricMotor.scala:26-43 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/Generator.scala:37-56 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/LightBulb.scala:26-43 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/Switch.scala:38-52 \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":"simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c644d820ee38a3f83b69cba56e33a6aacf6c492c607b2f7ed21d22ffe938ed4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala:70-109 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala:107-147 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/Plant.scala:80-119 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala:143-183 \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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1237e39a6a97a719bd3de0c4e453610c97e82744a93b672e58ed386f6489c626"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala:351-404 | simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala:407-416 | simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala:418-427 | simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala:429-438 \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":"simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"3105f2e66460e30d1cc07beb708ed5381520fb77bb9a270bfaf701ca6eb99715"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala:13-32 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala:39-64 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala:76-99 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala:107-132 \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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64d8d4c912e3e367df4236934a8cd870e2a9971bf3675d53c6e3f1eaf52bb5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84\u201387 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:431-514 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:378-464 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 316 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:431\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"157d6eb14391ae6c6e90f92fe45def807dbd62aff2d5adce2f1cc46c06aae32a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:468-530 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:503-565 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:468\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7f2b8a879fa5f80a90288bfe29fe463e822bcf52b0ba203124f0fa6d732261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:349-411 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:298-360 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 316 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:349\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9757efe721fce0eb84a52584eae58da90ff55c75be3912ebf7c14053b1dde799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:351-410 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:334-393 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:351\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94cc37301d91609b3a3a7e287f3328f2c0134990b729eed4d864b0a177bc3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:540-598 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:575-633 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:540\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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: the declarations holding them bind \u0060peaplants\u0060 to \u0060runner) // Check for a minimum number of adult plants val peaplants = Random.shuffle(getCurrentAgentLocation(runner).getContainedAccessibleObjectsOfType[PeaPlant]().toList.sortBy(_.uuid)) for (plant \u003C-\u0060 in one and \u0060runner) // Check for a minimum number of adult plants val peaplants = Random.shuffle(getCurrentAgentLocation(runner).getContainedAccessibleObjectsOfType[RandomGeneticsPlants]().toList.sortBy(_.uuid)) for (plant \u003C-\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"8806ae7135060694db1f5e74847acc94a0fa674ddab7bb53b044801ee1b892d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:372-421 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:600-649 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:329-378 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:364-413 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:372\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:383\u0060 calls \u0060runAction\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:427\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78fdccc0680b3dc9657d888e91b3a51bbaa7ae89a35ad0f8a21f4409b33cb08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201346 lines \u00D7 3): simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala:76-121 | simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala:163-206 | simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala:247-290 \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 \u0060simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e18c5aec11d01783c4aa76ee2d6c992d2cd9784751fea7633a8c52b684489d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201344 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:345-388 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala:275-316 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9461ea8cd1f7e4d1c2df0cb0b399938eecfb92fb445fe9aa4913b2da4e40d57e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:466-506 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:424-464 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:459-499 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:466\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55214c8e807f2cbd340940eb42b0cc16dcb29bd2442c8f00e8a694f8b5ab605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:220-260 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:219-259 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:220-260 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"2822dba6fe3f3c4e59a868503c77bd2b97fd368b285df60867b31ecbe95ec765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:446-486 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:305-345 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c781516c2025b0e138f172f0d033be6135af0a38103a31e75c2d5761eec736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:265-305 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:300-340 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62421f039b6ed21b8c9e4a6720f7274f19ca2932c485ee4c8efa2b8a30d27f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:433-464 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:391-422 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:426-457 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:433\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c47f703020aed941de3ab6232569573c2dc868d54c5ec297dcc40c161328a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:315-344 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:548-577 \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70e06f883f55499a22b74b4a621afe6b8613cc4bcc74e1795b166131f81d43b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201329 lines \u00D7 14): simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:81-102 | simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:177-198 | simulator/src/main/scala/scienceworld/actions/ActionConnectElectrical.scala:235-256 | simulator/src/main/scala/scienceworld/actions/ActionEat.scala:76-97 | simulator/src/main/scala/scienceworld/actions/ActionFlush.scala:75-96 | simulator/src/main/scala/scienceworld/actions/ActionFocus.scala:63-84 | simulator/src/main/scala/scienceworld/actions/ActionLook.scala:142-170 | simulator/src/main/scala/scienceworld/actions/ActionLook.scala:265-286 | simulator/src/main/scala/scienceworld/actions/ActionMix.scala:67-88 | simulator/src/main/scala/scienceworld/actions/ActionMoveToLocation.scala:154-175 | simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:109-130 | simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:233-254 | simulator/src/main/scala/scienceworld/actions/ActionRead.scala:70-91 | simulator/src/main/scala/scienceworld/actions/ActionTeleport.scala:87-108 \u2014 there are 14 copies across 11 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 14 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionActivate.scala"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c67446bf83c20179bb1ac9b47b20c80b005b5e4c92013365021dba37786593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:341-369 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:324-352 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:323-351 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:341\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee037ccdf83f822a0ff69291804a9fc6a1ce464b7f400ba82538c157e261094f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:139-165 | simulator/src/main/scala/scienceworld/input/InputParser.scala:299-326 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/input/InputParser.scala\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:139\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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"797cd558283f2b1cbba5c64f186935459703684ea21ca3b3bc8c958b8a7c6c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:164-189 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:217-244 \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 \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:164\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9622124a6f4f0f3d698b12b759389cf389245522d78a203ddfecebb8b5de945a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 5): simulator/src/main/scala/scienceworld/actions/ActionConnectElectrical.scala:141-167 | simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:109-135 | simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:446-472 | simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:574-600 | simulator/src/main/scala/scienceworld/actions/ActionUseDevice.scala:76-102 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionConnectElectrical.scala"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d63eab5f0f08b89204691abdba301cfab805ab87c8c6287e7e87a14e605dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala:83-109 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala:121-147 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/Plant.scala:93-119 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala:157-183 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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 \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala:83\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"73447dec51a5c3f0ec5614ca5f849319ebda417115c1c868d8d0a012ea677a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): simulator/src/main/scala/examples/ExampleRandomAgent.scala:163-188 | simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala:219-244 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/examples/ExampleRandomAgent.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/examples/ExampleRandomAgent.scala"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b912ee57ec226e2a179b33fd840f86af21ed461d83216a94c74b4f6d008f87b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): simulator/src/main/scala/scienceworld/objects/devices/CoolingSource.scala:55-79 | simulator/src/main/scala/scienceworld/objects/devices/CoolingSource.scala:110-134 | simulator/src/main/scala/scienceworld/objects/devices/CoolingSource.scala:165-189 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/devices/CoolingSource.scala"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5674b1b50b3f3b179e1afbac3c7a750951163b63c0e92392ddb0cea73358ff22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:187-211 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:222-246 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:187\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b511422f72f25629f88a8ca5055a50c9d12746f0b517b5543a03f552d7b7901b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:260-283 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:335-358 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:284-307 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c211aac9dab514e4cc42b04f9e9da4b0fcf51f65a8149f7586addb06ae1af543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:39-62 | simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:125-148 \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 \u0060simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:39\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdb649d21414a5a8a591b63b30e9054d316af4e3617f7b23ef14e96d3e2d27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala:61-84 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala:66-89 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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 \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala:61\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ee8f49e5abe5e7b98f7bbaf448113c1cdc79b8c7005e62057a6b68cf7ea8cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201323 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/livingthing/animals/Animal.scala:87-109 | simulator/src/main/scala/scienceworld/objects/livingthing/animals/Bee.scala:203-217 \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 \u0060simulator/src/main/scala/scienceworld/objects/livingthing/animals/Animal.scala:87\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":"simulator/src/main/scala/scienceworld/objects/livingthing/animals/Animal.scala"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cd4c87a7914f34af3e0cd6ce2a783ab9055be859e9da89824f0fbdd83d5bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:375-397 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:402-424 \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 \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:375\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"0925e7103c573a437b281a2d63a0212a772a0f6256a5b77599bd7b3691771edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:192-213 | simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:276-297 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67ce2cb5e7ac7762e0c3b810c22eaaab62fd8e25c54b2b190b597e320d453ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:196-217 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:239-260 \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f87bcd786e002bed9c0c71f3f463ed05664ac3fa2e4c4be50ce816988067a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:33-53 | simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:119-139 | simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:214-233 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"56eec4d9f1bbdfff4c0dcd0dc8546c8e0cd07d790ae6bd745483e2481c1d956f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:72-92 | simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:158-178 \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 \u0060simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:72\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ae7d2d5eb1e94205ca4718c756daace9f4684481c28a21c22bf014fffe2129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): simulator/src/main/scala/scienceworld/input/InputParser.scala:713-732 | simulator/src/main/scala/scienceworld/input/InputParser.scala:743-762 \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 \u0060simulator/src/main/scala/scienceworld/input/InputParser.scala:713\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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"e344aa028bdb7c6f63d90a54c319a4a7982257ea6b8a1832cc38e4802dc4c362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:144-162 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:197-215 \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 \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:144\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060failureContainers\u0060 to \u0060List[EnvObject] = List.empty[EnvObject]\u0060 in one and \u0060List[String] = List.empty[String]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"38724c2f433aa92934367ef34945f602282aa5109ea7ebbaf1f34dc1d857a06c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:190-208 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:214-232 \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 \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala: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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a9d179d231f3ce7709f6a154274a0af25a3173edf8998d320ca66c8d033815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:283-301 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:307-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:283\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2747f3f075817cca2ead267e03817fe94f33e9e8b676dd909917d6514030bb88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:382-399 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:372-388 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:321-337 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:382\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da12e6e1b4f0769b674397af7a4978e7365e4b84f0907857599c0c88cb55100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:253-270 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:347-364 \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa68c4df1feb6cc072b0650e3c4eab0860edc04ec93a0f9b03a3930b42cd016f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:406-423 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:266-283 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:406\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"b216d61d5f63aceec0fdf0c07680138b18470f7de99c47968d46155d5d4d4baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:488-505 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:347-364 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ceea536d3a569c46300a7013713c85ac563222ee38c66bd4711a496d06b7ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:535-552 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:387-404 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:535\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b68c5daa24ec95910d48f63997d1dd5d2ec317d801ab2d6f8999c747ffe8384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): simulator/src/main/scala/scienceworld/processes/lifestage/AdultForeverLifeStage.scala:33-49 | simulator/src/main/scala/scienceworld/processes/lifestage/AnimalLifeStage.scala:134-150 | simulator/src/main/scala/scienceworld/processes/lifestage/BirdLifeStage.scala:175-191 | simulator/src/main/scala/scienceworld/processes/lifestage/ButterflyLifeStage.scala:177-193 | simulator/src/main/scala/scienceworld/processes/lifestage/FrogLifeStage.scala:137-153 | simulator/src/main/scala/scienceworld/processes/lifestage/TortoiseLifeStage.scala:174-190 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/AdultForeverLifeStage.scala"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"317cf645249ee32586f4b437224c6abea34ba16442d0d0fb8b6cfcba7c08b3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): simulator/src/main/scala/examples/ExampleRandomAgent.scala:38-54 | simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala:69-85 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/examples/ExampleRandomAgent.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 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 \u0060simulator/src/main/scala/examples/ExampleRandomAgent.scala:38\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":"simulator/src/main/scala/examples/ExampleRandomAgent.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1839827602886a290e06d5ddc6abd04f904eb7c5506190a89f9d92a8d455b567"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:88-104 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:128-144 \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 \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:88\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b14be37cdfec31b3fcf21f5804d8b92223dbb202688db3be599fb8c120967c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:170-186 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:169-185 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:170\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9681b345b2b59e83c2f81b9030f5c4fefa003bb71e0742d364514ade14656a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:637-653 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:711-727 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73553aa8ae934c25f93b2182ac854d37f3f309ff10dd502048e58d7f55dc305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 4): simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala:24-39 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricMotor.scala:27-42 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/LightBulb.scala:27-42 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/Switch.scala:39-51 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricMotor.scala\u0060 as WHOLE FILES: 87% 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. 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":"simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed0a76b64eef2e921d2a52029193946c8e28578c06c2b71545a02bba6b146d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:292-307 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:409-424 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:504-519 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:363-378 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 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, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:284\u0060 calls \u0060runAction\u0060, \u0060getObjUniqueReferent\u0060, \u0060getCurrentAgentLocation\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:495\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe84995a358d7b6492a35187188abf8a107812b32c5a5f625e8e0328bbc9794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:206-221 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:285-300 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:234-249 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:206\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bf274890fa2274f6d1f32f9ac253d7e033ab182b686f2837149f7b03dd951b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalFind.scala:19-34 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalFind.scala:49-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalFind.scala:19\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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, \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalFind.scala:47\u0060 calls \u0060mkSubgoalUnsuccessful\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalFind.scala:17\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalFind.scala"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"462e4c89939dfc4750c0dce3f11c30b3b82014d495f55f5a7f0272916685510c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:607-622 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:689-704 \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f107f07c5ca015d4b5bb2ed24e978acf9cf28e6495b2b187e1812c525d81139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:227-242 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:262-277 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:227\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b132fd57653d79ff9eb7d55ef3e7960c59a7e1848bb47285ae03b48bea449ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala:15-23 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala:41-49 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala:78-92 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala:109-117 \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. 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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba68ddecbd522cc4bdca0b2e741166f1d673c8d1855461269385afd7a0b2ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:69-83 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:88-102 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:109-123 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:128-142 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:69\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9912363b6023fbf839024e129ff2fb51df78bb30c049560c1ad6bc146c942c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:398-412 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:425-439 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:258-272 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:285-299 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:398\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbfeea9be5b99a6194d7c55eff13a88f0edfb69027af97f012dd70659828923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:160-174 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:242-256 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:325-339 \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 \u0060simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"abefe0196c36ca3c766cc02920cd5a7681e6d203e93d3cda1227f50b344596b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:271-285 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:270-284 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:271-285 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:271\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bf1789cbb2acc8f4a481b4408d9caf94402e9cd4bb237db8de11c420ebe8b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala:218-232 | simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala:256-270 \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdba58b870a43cb6bc419a8e68f94d051c25214f4d6615a0d9594eceeb288a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:289-303 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:193-207 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:289\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae4d7db46b39b8ed14bc84f90fd7ca287a19fa7c3e0545b64249ffbd14100f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): simulator/src/main/scala/language/runtime/Interpreter.scala:758-771 | simulator/src/main/scala/language/runtime/Interpreter.scala:969-981 | simulator/src/main/scala/language/runtime/Interpreter.scala:991-1003 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"553e774b8a67ef4f73b4d7e95b4a2140275cf36def99d62da1f4d54b90e9d05e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:152-165 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:192-205 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:275-288 \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 \u0060simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:152\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":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d4aa6606abbb649bc3b3b73fb8a90f2ee206d099d1e3949fd26249f9fefec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): simulator/src/main/scala/examples/ExampleRandomAgent.scala:144-157 | simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala:198-208 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/examples/ExampleRandomAgent.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 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 \u0060simulator/src/main/scala/examples/ExampleRandomAgent.scala:144\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala:210\u0060 calls \u0060exportGoldActionSequencesJSON\u0060 and \u0060simulator/src/main/scala/examples/ExampleRandomAgent.scala:159\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":"simulator/src/main/scala/examples/ExampleRandomAgent.scala"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"422dba40275e7fb1e4d584af5888674dd6b158504109c8f0466a7e13fc4b4a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:325-337 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:558-570 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:281-293 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:316-328 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:276\u0060 calls \u0060getTaskValueStr\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:321\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45403ec4f016688d99f8bb082a1eed61acfa6149f02f19a44d43f92518bc1a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:57-69 | simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:153-165 \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":"simulator/src/main/scala/scienceworld/actions/ActionActivate.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"baba3301ad941e9fe32cfcf910401d96cffe776462a36b72f265e52081900583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:79-91 | simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:202-214 \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 \u0060simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala: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. 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":"simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a60dd17323c2004cf1748a4b66852f9a8001845417e15594df35e805f02ccb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:138-150 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:192-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:138\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":"simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1409d189d68a19e9bbea2023030e112028e7efd5243c31605b7269d77be441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalDevice.scala:14-26 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalDevice.scala:45-57 \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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalDevice.scala"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bff3f44c2b0836fe6210ddea5d80e73ebbe0974cbd43cc3139d39848777dc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:558-568 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:580-592 \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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:580\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:579\u0060 calls \u0060runAction\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:557\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"85821e7c18cfe5ee7badc3c3cb1eb17cee1f73d6ddb9d34de1a97253aca3529b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:240-251 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:140-152 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf4617c296c903612671d09bdf2df224113d0a2b333cc932cb902711ca2fafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:350-361 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:307-318 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:342-353 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e301f9c0f1f6621737688d1c35b96dd719d2b294f3eb89df20775b47f0a0cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:411-422 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:394-405 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:393-404 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:411\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ccc5b2ea1ec9a8e28aa634f5d0e9b4bc69bc04115fae01f5bfb0bafa03d9d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/language/runtime/Interpreter.scala:919-930 | simulator/src/main/scala/language/runtime/Interpreter.scala:943-954 \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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"41323b2cf97c804aaba4473b8ec93f3a6c14e6c1852c59bc8e153f7e015713f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:197-208 | simulator/src/main/scala/scienceworld/input/InputParser.scala:365-376 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/input/InputParser.scala\u0060 as WHOLE FILES: this scan already matched 7 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. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c4ee685f216022f1121fec0d3dc70e19d07e7acaa2fde480653aaf2989a67c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/language/struct/EnvObject.scala:208-219 | simulator/src/main/scala/scienceworld/struct/EnvObject.scala:649-660 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/struct/EnvObject.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/struct/EnvObject.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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 \u0060simulator/src/main/scala/language/struct/EnvObject.scala:208\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/language/struct/EnvObject.scala"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce0b928acafffa4a8bc9875bb92b4b3e01d3b88d2180834d3db385205bc82bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:95-106 | simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:218-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:95\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8223596a1dd29560aa59b886844a97d9aa4366867457e443d1590a4b1f636864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala:57-68 | simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala:122-133 \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 \u0060simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala:57\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":"simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefd36d54dc86508e795c8b565cd185cd5b5b00c231e1579a063a495a496b2b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:54-65 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:94-105 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e52d12ffcf3a6b629ae02e3d4b64d22ed3faebb54922ecd5dcc9f14b0a2fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/scienceworld/processes/Chemistry.scala:354-365 | simulator/src/main/scala/scienceworld/processes/Chemistry.scala:404-419 \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 \u0060simulator/src/main/scala/scienceworld/processes/Chemistry.scala:354\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":"simulator/src/main/scala/scienceworld/processes/Chemistry.scala"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ecc29f2536471180c38c36834bd88369eb65eb20bc4524e2ac95fb9cdecaa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:205-216 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:298-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdd8d2cc32e46986f6b47810e2376f336fa4e2bb824cf23bd58052fde6cf691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalTemperature.scala:51-62 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalTemperature.scala:82-93 \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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalTemperature.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"054a1d283d5ace908a9b7c19bc80761c8d13a17cbd94ea998e6eb68bf3f8b9d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:375-386 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala:248-259 \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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:375\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"86383208dc60db83a0a494fb038454afc75c3408b179034f1e44659f426d10cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:349-359 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:581-591 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:306-316 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:341-351 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"81df897c9f3e77552e4c0039b425c6b16bdf478c433b174970fa129895d83d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:171-181 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:264-274 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:357-367 \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 \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:171\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be8324e3827aced3f9c5f587786302ab82c1047fd6ac6960207b6320692e713"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:136-145 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:135-144 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:137-147 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1fe12b76d12fee505667be26d08c0c5047e28bb09044edec745e76454c8cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:216-226 | simulator/src/main/scala/scienceworld/input/InputParser.scala:385-395 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/input/InputParser.scala\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:216\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"81363321bb68e05c702abc5875fa069e188d224841f28ef98882e12f7039123a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:261-271 | simulator/src/main/scala/scienceworld/input/InputParser.scala:419-429 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/input/InputParser.scala\u0060 as WHOLE FILES: this scan already matched 7 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. 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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5865e94ecf17598242a8b8ab3cedb53225a20c3953609759d20fc9c3e13d83b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): simulator/src/main/scala/language/struct/VariableLUT.scala:111-121 | simulator/src/main/scala/language/struct/VariableLUT.scala:124-134 | simulator/src/main/scala/language/struct/VariableLUT.scala:137-145 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/struct/VariableLUT.scala"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8410f6673ca7b2798cd9fb31379dc34388b5adbc48acaa6ecbfccf8eaaba1bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala:487-497 | simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala:502-512 \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 \u0060simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala:487\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f250e3168380dd71cd959ca1d005ce4edcf3dcbbc5511b092404e4c043c61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala:58-68 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/Plant.scala:68-78 \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 \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala:58\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a8f7563ed877138217c1758e3cd981d27e5b2bb0be73d7bccda20afeb5d085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/location/Location.scala:73-83 | simulator/src/main/scala/scienceworld/objects/location/Location.scala:108-118 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/location/Location.scala"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb8d9629e401cd9cd0ff18321b8962c8dc3d0269c7948a64270967d0c210efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:70-80 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:236-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":"simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d68cd00983ffea437a1c7c1a61674e831a968b5e387fe57feac9a4cbd6bd195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:335-345 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:239-249 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:334\u0060 calls \u0060getTaskValueStr\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:237\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fbf54628b9390132de6c710c8c7419e990ec9780800528e4a908c799f19f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:159-169 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:195-204 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1e887b0a47883e6b32354ffc72e8e978589c69847e73a210b1f6d506fe1d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:156-165 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:196-205 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:279-288 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:141-150 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:195-204 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:156\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":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02ef2c12894c9896ef58e59092b8d37607f6407c5eab855a623bedbf33ea750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:111-120 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:148-157 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:201-210 \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 \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:111\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060failureContainers\u0060 to \u0060List[EnvObject] = List.empty[EnvObject]\u0060 in one and \u0060List[String] = List.empty[String]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd971d9c3e21935f9776114f62466eabf316542dd988e4b5856fce25d0ee9c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/scala/language/runtime/Interpreter.scala:1241-1250 | simulator/src/main/scala/language/runtime/Interpreter.scala:1252-1261 \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 \u0060simulator/src/main/scala/language/runtime/Interpreter.scala:1241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4a6a8a8d34b06311f0219a1c5d8ff7428b5498f0c63d853a822ffb3c0de3f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:169-178 | simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:253-262 \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 \u0060simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:169\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":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8980d10b36f2674023a5361e76164ed1f2eaf2e168bdcf2b0f187fd7f342aa1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala:514-523 | simulator/src/main/scala/scienceworld/actions/ActionUseDevice.scala:42-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3aff60772ddde8b35ae8c036cc5bad0cf72b3cdcd08b30dd54ce5265806204"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:403-412 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala:331-340 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:403\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2647c035e212222e9cf7295f45012d7d01c7ecd4f89b21179f635fc5ffa14605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:664-671 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:674-683 \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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:674\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bed6e841373ae6c3b2a99a9cc94f8ed1c9ddba73a5998beb1d31b81134b8397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:275-284 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:369-378 \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da22d4d0ddb6cedb2053d62abf0727c9075d8306ce9da701eb22d28f7d496c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:211-220 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:158-167 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 316 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7fb186ab6c6e8ce82825b964b89bdab1af7376cb8309cc58f27981812f5079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:230-239 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:177-186 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 316 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cfa9c819bf337af54b56fe2b66eb6b634af0ca69ec669f436bd4156139fb11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 16): simulator/src/main/scala/language/runtime/Interpreter.scala:246-253 | simulator/src/main/scala/language/runtime/Interpreter.scala:254-260 | simulator/src/main/scala/language/runtime/Interpreter.scala:265-271 | simulator/src/main/scala/language/runtime/Interpreter.scala:276-282 | simulator/src/main/scala/language/runtime/Interpreter.scala:287-293 | simulator/src/main/scala/language/runtime/Interpreter.scala:298-304 | simulator/src/main/scala/language/runtime/Interpreter.scala:309-315 | simulator/src/main/scala/language/runtime/Interpreter.scala:320-327 | simulator/src/main/scala/language/runtime/Interpreter.scala:332-338 | simulator/src/main/scala/language/runtime/Interpreter.scala:343-349 | simulator/src/main/scala/language/runtime/Interpreter.scala:354-360 | simulator/src/main/scala/language/runtime/Interpreter.scala:365-371 | simulator/src/main/scala/language/runtime/Interpreter.scala:376-382 | simulator/src/main/scala/language/runtime/Interpreter.scala:387-395 | simulator/src/main/scala/language/runtime/Interpreter.scala:472-479 | simulator/src/main/scala/language/runtime/Interpreter.scala:484-490 \u2014 all 16 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/language/runtime/Interpreter.scala:246\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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f774f60e64b6f3f5d6e8a5d885c6681c122490f6214dc57d7c1964857e468e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:256-264 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:53-61 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala:285-293 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala:321-329 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalTemperature.scala:15-23 \u2014 there are 5 copies across 4 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:256\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5bb7fa1f7c987dc155a09111d2018600d59fda091129748b8243e5fe1733d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:167-175 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:207-215 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:290-298 \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 \u0060simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:167\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"510460d156a4ddff5ce1acae11de12cd2ae42ca7e0777db11be21a4381f38194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:575-582 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:430-437 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:377-385 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3a0392f983ee8997ae270e5b6d8fea54f2147270d36cffe4d2795812230393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:175-183 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:215-223 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:162-170 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:213\u0060 calls \u0060getTaskValueDouble\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:173\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"989c2f32a122d3f8f0acd26ffd88f59b0aeb0664961ce83a4a737d9a0ffa6217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): simulator/src/main/scala/language/runtime/Interpreter.scala:424-432 | simulator/src/main/scala/language/runtime/Interpreter.scala:437-445 \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 \u0060simulator/src/main/scala/language/runtime/Interpreter.scala:424\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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabbdba11ce1549d49de720e83ebf89bd8e25d93003360ebe1359b8f77aa01b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:152-160 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:206-214 \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 \u0060simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:152\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d277b7110ce5bce7c79dd92194c4f8ca6ddb4530ef08482b416316d8adc115e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/location/Location.scala:22-30 | simulator/src/main/scala/scienceworld/objects/location/Location.scala:44-52 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/location/Location.scala"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5333c3d683555c49b44842c6b9df1bbb3c711eb2104ff81daccbc0b9600f2a05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala:101-109 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala:91-99 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e2eb76f33178f22c087fc7deb80860fb167d07154ecf722f2427031b919a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala:33-40 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricMotor.scala:36-43 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/Generator.scala:49-56 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/LightBulb.scala:36-43 | simulator/src/main/scala/scienceworld/objects/electricalcomponent/Switch.scala:43-52 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricMotor.scala\u0060 as WHOLE FILES: 87% 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. 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 \u0060simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala:33\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricBuzzer.scala"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69580d8acb139eed7aa3d8d1c5afe6c767b36fb0d8cd1217820d1b67d28d6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:457-464 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:415-422 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:523-530 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:450-457 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:558-565 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:457\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"e686a9a3b6293933504fde8565da23a861c09aec24ae6f49c308db9049c2faa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:30-37 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:59-66 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:92-99 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:125-132 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:30\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c83949acfbb8af52973774de00e796aad3ed3f0a51313d8f3cdb0b8ee555835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:189-196 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:213-220 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:282-289 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:306-313 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala:189\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf40491573053bd2cb6dbf7c92e287294ae2e6bc852456c75a330931c0c0e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:274-281 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:368-375 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:487-494 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:346-353 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5df68b6bf6bcf48b5d28a0c270c17c41e8646b402af44e2f2ba6821623fc54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:326-333 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:230-237 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 207 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, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:334\u0060 calls \u0060getTaskValueStr\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:239\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3766f77acde65212fd409ace5d8c11d9c3ef1c90703dd5b17f8265516f5790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala:177-184 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala:167-174 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bdc49964e3362da1c9d897b2b666ee9dda583e36a4522f1a1f76b5d322b132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala:265-272 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala:257-264 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"270c93e028e038dd87fedc01115719c27b8c26bb7cdea2ace63ec6023ff268e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:174-181 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:209-216 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:174\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f0a01d77555760efdbb9113bf47ecf35a30d8ee3e38bcf5c87c82a611b759f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:23-29 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:52-58 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:85-91 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:118-124 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea42844e072ab016afc5dd9bcdbf6c76e5ad5efb90dbb4651a08e8731a5081e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:551-557 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:572-578 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:427-433 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:374-381 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:579\u0060 calls \u0060runAction\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:558\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb71bf57b336fb93ee1652c4fb3fafa6168e341ff801716082acb40a1aff488"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:258-264 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:206-212 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:241-247 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:258\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fbf65e7fbe595be23c6501576efe7492e9f696c997bab71d6f891f4d55acfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:243-249 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:320-326 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:269-275 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:327\u0060 calls \u0060getTaskValueDouble\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:250\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b5e871d6b20565587177b0638075876719b4e81e151693b79415831650f7b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): simulator/src/main/scala/language/runtime/Interpreter.scala:450-456 | simulator/src/main/scala/language/runtime/Interpreter.scala:461-467 \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 \u0060simulator/src/main/scala/language/runtime/Interpreter.scala:450\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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca039e249eb091e6c5614a613580214a97bd77eb32dbe1e0eb62d0921bebe6de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:278-284 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:225-233 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 316 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fd8945f00c8223a8a1f1482f566f7356cef92436639071bf1a400037de1762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): simulator/src/main/scala/language/runtime/Interpreter.scala:414-419 | simulator/src/main/scala/language/runtime/Interpreter.scala:425-432 | simulator/src/main/scala/language/runtime/Interpreter.scala:438-445 | simulator/src/main/scala/language/runtime/Interpreter.scala:451-456 | simulator/src/main/scala/language/runtime/Interpreter.scala:462-467 \u2014 all 5 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 \u0060simulator/src/main/scala/language/runtime/Interpreter.scala:414\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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"982ea41d709443fd04775b3417e2e8405f3dde804ae3f50d9572f606965d7f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:167-172 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:207-212 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:246-251 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:290-295 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:167\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":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a99fe6bc8ddf359089bef06f376de4b943e6cd2c65ea1e3ea19762163c855bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:259-264 | simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala:244-249 \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 \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala:241\u0060 calls \u0060mkSubgoalUnsuccessful\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala:256\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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae7ae9b9d6c1be6f8b9646a549a38e6501c1fda13e7182e31e085128e0ed2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:180-185 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:241-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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8281f5cd4c1f9abf5ad3d46ceee9dd57b2d52c94835d506f1896829afa1b391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:152-157 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:186-191 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 456 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a5d64fe5d86effb2dd2f4e9aec76ed023b50adee83a7d12c895eb6e817857f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:30-34 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:59-63 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:92-96 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:125-129 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:167-171 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:207-211 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:246-250 | simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:290-294 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala:30\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":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdc55262caf7101d5ea7381e658508d952e8278b95b7961a6eaaacb80befc8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:466-470 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:424-428 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:532-536 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:459-463 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:567-571 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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 \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:466\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"9477af48d2d80dcf3274be6390a994fc9bdb19a6af3c7f850de1f11ff773396f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:134-139 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:189-193 | simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:69-77 | simulator/src/main/scala/scienceworld/objects/devices/Sink.scala:155-163 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fad73db4e73555aa4b58a594578e2f1e30d430358a0ee1a0c740ad7dcc7a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:195-199 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:238-242 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:186-190 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:221-225 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 210 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a65fb1090f29b7c41a5b3db130d06f668da881820799cc7561a002193edaee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:167-171 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:201-205 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:232-236 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:173\u0060 calls \u0060GoalTemperatureDecrease\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:208\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ff63d66a579bfb109587516bd974139bb7473959f09808fa7edaca640ee381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala:194-198 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala:290-294 \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"867b3174f2a9caf8c0fe4e5075ac3139b795dbf6d61c4553ed85df73eeb1a9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): simulator/src/main/scala/language/runtime/AgentInterface.scala:65-73 | simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala:64-73 \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":"simulator/src/main/scala/language/runtime/AgentInterface.scala"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"470f640c320fb6f4b71337cd8ef3e59d0687c8ee9e455e71feee50b28671c2ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:231-241 | simulator/src/main/scala/scienceworld/input/InputParser.scala:693-703 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/input/InputParser.scala\u0060 as WHOLE FILES: this scan already matched 7 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. 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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"374e6243c23cca95015bf5119163a668b2a0cee7dea37bdf5e6b98351010ebae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:244-256 | simulator/src/main/scala/scienceworld/input/InputParser.scala:402-414 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/input/InputParser.scala\u0060 as WHOLE FILES: this scan already matched 7 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. 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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"12035da9d10de20882f45b2482c57ac53820f8304b582baa1fb87141d4b384ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/scala/language/runtime/inputparser/InputParser.scala:332-339 | simulator/src/main/scala/scienceworld/input/InputParser.scala:804-811 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/runtime/inputparser/InputParser.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/input/InputParser.scala\u0060 as WHOLE FILES: this scan already matched 7 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. 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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6517d18ceed640811f4a6d9ab1894c4336a3e4545f31536a5ed7c4a6c3cb28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/language/struct/EnvObject.scala:53-64 | simulator/src/main/scala/scienceworld/struct/EnvObject.scala:604-615 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/struct/EnvObject.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/struct/EnvObject.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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":"simulator/src/main/scala/language/struct/EnvObject.scala"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3bc65e5e395524f3d45ec35ec2e5120f6b1dc6231ea5f2712ba581de2e56b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/scala/language/struct/EnvObject.scala:142-153 | simulator/src/main/scala/scienceworld/struct/EnvObject.scala:621-632 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/language/struct/EnvObject.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/struct/EnvObject.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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":"simulator/src/main/scala/language/struct/EnvObject.scala"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fab09820ca3313ec396c14a4ef6022e8dcf03bef0293540ca5048b6f220c36b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:45-53 | simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:141-149 | simulator/src/main/scala/scienceworld/actions/ActionEat.scala:45-53 | simulator/src/main/scala/scienceworld/actions/ActionFocus.scala:39-47 | simulator/src/main/scala/scienceworld/actions/ActionMix.scala:38-46 \u2014 there are 5 copies across 4 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060simulator/src/main/scala/scienceworld/actions/ActionActivate.scala:58\u0060 calls \u0060assignments\u0060 and \u0060simulator/src/main/scala/scienceworld/actions/ActionFocus.scala:53\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":"simulator/src/main/scala/scienceworld/actions/ActionActivate.scala"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6e4cc1eaa398672e271a37a1ac418dd32051469c8f12232b579c1d2d5cdc56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): simulator/src/main/scala/scienceworld/actions/ActionFlush.scala:42-50 | simulator/src/main/scala/scienceworld/actions/ActionLook.scala:227-235 | simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:56-63 | simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala:179-186 | simulator/src/main/scala/scienceworld/actions/ActionRead.scala:39-47 \u2014 there are 5 copies across 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionFlush.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fafc491c72ddf5e565585c0ade2db78b972b675316984dbbac71343c551210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): simulator/src/main/scala/scienceworld/actions/ActionFocus.scala:50-60 | simulator/src/main/scala/scienceworld/actions/ActionFocus.scala:122-132 | simulator/src/main/scala/scienceworld/actions/ActionInventory.scala:53-63 | simulator/src/main/scala/scienceworld/actions/ActionTaskDesc.scala:53-63 | simulator/src/main/scala/scienceworld/actions/ActionWait.scala:49-59 | simulator/src/main/scala/scienceworld/actions/ActionWait.scala:107-117 \u2014 there are 6 copies across 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionFocus.scala"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d758dc33793ea2989514cd441a9aaeca881f21678a2beaea8bc2edc3bb1236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): simulator/src/main/scala/scienceworld/actions/ActionFocus.scala:112-119 | simulator/src/main/scala/scienceworld/actions/ActionInventory.scala:42-50 | simulator/src/main/scala/scienceworld/actions/ActionTaskDesc.scala:42-50 | simulator/src/main/scala/scienceworld/actions/ActionWait.scala:39-46 | simulator/src/main/scala/scienceworld/actions/ActionWait.scala:97-104 \u2014 there are 5 copies across 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/actions/ActionFocus.scala"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"787675c823e72b8898aa5ecd7073fedea7a96b4165627208739314680235eac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): simulator/src/main/scala/scienceworld/actions/ActionLook.scala:116-124 | simulator/src/main/scala/scienceworld/actions/ActionTeleport.scala:50-58 \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":"simulator/src/main/scala/scienceworld/actions/ActionLook.scala"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fb80dbae636329d85480bab614f1d2132445d776654bd5f5170ba87e2d6e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/containers/Container.scala:217-224 | simulator/src/main/scala/scienceworld/objects/environmentoutside/Fountain.scala:15-22 \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":"simulator/src/main/scala/scienceworld/objects/containers/Container.scala"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ceb50ceb043fc0c48765999b1bf62d04a8e7bc51d0fa661c6f7d2cb9907751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:36-47 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:76-87 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:116-127 | simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala:171-182 | simulator/src/main/scala/scienceworld/objects/devices/Lighter.scala:50-61 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f041d70654b474956cb0d6290f24d82b5d246a379c07605bfbba46312c777c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/scala/scienceworld/objects/livingthing/LivingThing.scala:26-35 | simulator/src/main/scala/scienceworld/objects/livingthing/animals/Bee.scala:75-84 \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":"simulator/src/main/scala/scienceworld/objects/livingthing/LivingThing.scala"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"730820cf17476f51fe3cb8deb045e44c6599c825186c3d0f121a8a5f3c672930"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala:37-49 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala:40-52 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala:45-57 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"308a1c5fba30c292ca0f8e914e5d080e2ce3ed8970371248f014486444624669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala:25-37 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/Plant.scala:43-55 | simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala:30-42 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36fd95d40ce8f1792141c8c70c2d3f2c8de025e6015a214e400e5aad25f3cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): simulator/src/main/scala/scienceworld/processes/genetics/Chromosomes.scala:303-307 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:34-38 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:118-122 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:200-204 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:283-287 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/genetics/Chromosomes.scala"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abdd507404e8021e6fd062ecc1cc582934a8e2a3a5076ebafad692a889e5aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): simulator/src/main/scala/scienceworld/processes/genetics/Chromosomes.scala:324-328 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:55-59 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:139-143 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:221-225 | simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:304-308 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:212\u0060 calls \u0060mkTraitFlowerColor\u0060, \u0060mkRandomDomRec\u0060 and \u0060simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala:46\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":"simulator/src/main/scala/scienceworld/processes/genetics/Chromosomes.scala"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"544e48e16dec694da5ad661112c671240c8403c2d185fe74d4f4a5c71710dee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 19): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:99-110 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala:132-143 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala:167-178 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:123-134 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:216-227 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:116-127 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:73-84 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:142-153 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala:75-86 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala:65-76 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:105-116 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:104-115 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:106-117 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskLifeSpan.scala:88-99 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:128-139 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:162-173 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:148-159 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:187-198 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:134-145 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6a1d6cf9bcc2201e42dc6b5db3276446ff7d272788f41e345c80a4943fa2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 18): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala:120-127 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala:157-164 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:113-120 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:206-213 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:106-113 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:63-70 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:132-139 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala:65-72 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala:55-62 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:95-102 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:94-101 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:96-103 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskLifeSpan.scala:78-85 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:118-125 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:152-159 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:138-145 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:177-184 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:124-131 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 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, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:88\u0060 calls \u0060filterDuplicatesAndAddMostLeast\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:107\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d891a0dce2fd9dc0f4b89548c0ad078eadf5eaa451deec709fceba840e372ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala:145-150 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala:180-185 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:136-141 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala:229-234 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala:129-134 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:86-91 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala:155-160 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala:88-93 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala:78-83 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:118-123 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:117-122 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:119-124 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskLifeSpan.scala:101-106 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala:141-146 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala:175-180 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:161-166 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:200-205 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:147-152 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab088214923f6b73a9704f8d5b9df3f49c103f2aa7d7d8a353bf85f5a6c2f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala:336-342 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:527-533 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:477-483 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060tempPoint\u0060 to \u0060runner) val objTempC = taskObject.propMaterial.get.temperatureC if (objTempC \u003E\u0060 in one and \u0060runner) // Choose correct box based on temperature if (objTempC \u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4e2a140f7729f767e4e9c511d51f3f910958d8081f83f245c7f92a3e59d4e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/scala/language/struct/DynamicValue.scala:382-386 | simulator/src/main/scala/language/struct/DynamicValue.scala:409-413 \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":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4dc2ae91b50daff0a9cd7934b1c82b75606493367b08a124f9208acb5278a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala:354-358 | simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala:409-413 | simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala:420-424 | simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala:431-435 \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. 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":"simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e81d6820206d62e61514511c19d305ed80d68a91a29afa11107fa654b35dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:157-162 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:195-200 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:226-231 \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6a8be27e98552445406d685f911348d121fa0736cf7f7b01a8f8bef3efd700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:150-156 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:188-194 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala:219-225 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:261-267 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:208-214 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5655c1b7e5ef14e1aa5447f8f3042a4c1dfbf3a0212c82502ac43e0183d4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:162-166 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:194-198 \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 before the matched lines, \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:191\u0060 calls \u0060GoalElectricallyConnected\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala:159\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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4b3bfa89dfc4584e1d111c3deee01ff67ca589c4596242c021b7245189e4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:106-111 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:115-120 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:124-129 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala:133-138 \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"283cc342cfe6ba830f4576f492137de412c981a38e64754aacf7c21656da96fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:130-134 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:129-133 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3893c20b34001cfa6647ac03d095f3c8454923df8330abded498ac0fd01ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:156-160 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:155-159 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:158-162 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"58916e8d296de7b9780551035bba4a60942299f33d61f74aac8ebcdd23950a94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala:161-165 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala:160-164 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala:163-167 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 226 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ceb04586ffd01c339ec8e6b32c9865043ec214ee0f6f1f14becfcde8cc18b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala:268-273 | simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala:215-220 \u2014 before extracting anything, compare \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala\u0060 and \u0060simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 316 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"43143940fa9dfbb7f185dd916c8f20c7fd1aa15ea850e17ddd6d70574409a8c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scienceworld/scienceworld.py:335-346 | scienceworld/scienceworld.py:686-697 \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":"scienceworld/scienceworld.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ad4127ccda4c09249a6d9da1e7800b07e97b669f7a46a2d2f80ac017982674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/human.py:189-212 | examples/random_agent.py:180-203 \u2014 before extracting anything, compare \u0060examples/human.py\u0060 and \u0060examples/random_agent.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/human.py:189\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/human.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"968daa1e5f644a2f82b82ec267ca366e2e92ee28da20f4332c31e2b16e0aa909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): examples/human.py:157-174 | examples/random_agent.py:141-158 \u2014 before extracting anything, compare \u0060examples/human.py\u0060 and \u0060examples/random_agent.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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":"examples/human.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d168498777240b9f080dbf43974c0b4e320dee52d072ae2c9d2c4f3464d6e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/human.py:180-191 | examples/random_agent.py:165-176 \u2014 before extracting anything, compare \u0060examples/human.py\u0060 and \u0060examples/random_agent.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/human.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cab71cc514c1dbe0a89bc74f33258c816f7070f424209eaa1ddf8c57f7abfa"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: InputParser (LCOM4 5): InputParser\u0027s methods fall into 5 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 5 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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d5d047a817e7b0a9449f78b3a2fea5a6a571565e7987cc249f6a434aa5eb9d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Program (LCOM4 4): Program\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":"simulator/src/main/scala/language/model/Program.scala"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59103f25ccaf4b41fe892d54481f35da2cf301486b1348bbf8a04b1cf9457a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add list of tasks here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/TaskMaker1.scala"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"166975918b9018854fd6ac969b1a2c0dc42f7f2171028e881a81056a299fb6f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Doesn\u0027t currently use \u0027generateNear\u0027 parameter. \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":"simulator/src/main/scala/scienceworld/tasks/TaskModifier.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e6d9a7ede4bf3c95597a714a11b249215f1b3c34365343319f5cbbf8380397"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dce25e213fb43ba8bb14d579af3d34c044184313d37f0b4be7951fca9be6595"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/model/Expr.scala"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83cdd73b1d49c67885fccd81bf6e135229d785abc763619661836cf6550796e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Needs proper referents \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"277491ada45ee2f67bffc35ee0ee8cc8e18fbc1f62f5b77e6f073569a03377c4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add goal condition that checks that the appropriate power source was used \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea60ae6dc85b899583e2786062135d889b2d1d263691c6106cd972d821e59a86"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Step 1B: Look at part to power (TODO) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6a6cd8116e0444f74ac93f1b8722429a3ff80417d10fd4fe433aa5f73764e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Step 1B: Look at part to power (TODO) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ced881c910f0c33c69cb283133447c066b589bca190bc190c0127550ea1b92"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Step 1B: Look at part to power (TODO) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"edab3001a05ebd0e4154b2b575f53c14afa0e1f512a637316e938a352f1b0605"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Step 1B: Look at part to power (TODO) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"3028ada496da7e85360c4b5fb62140b1fc914431f321371cf51342de293de2e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Step 1B: Look at part to power (TODO) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7314cc823abd4eb222f0982d9b29f19817869b4c2d65873af6569161ff663f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hacky -- uses the variation number to determine whether the task will be choosing the renewable or non-renewable power source \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7f78aad40a885b75b6b05154f829ccaf38de00dff608988072b130e3a4b4fd"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hacky -- uses the variation number to determine whether the task will be choosing the renewable or non-renewable power source \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45b6a97aba9c850593d104573a4ceaf09d173fef08d5e3a4db99987bdca97e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //PathFinder.getObjUniqueReferent(powerSource, getCurrentAgentLocation(runner)).get   //## TODO: Not clear why the referent (\u0027generator\u0027) is not resolving here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8463611eb96f3f2387d6f5cb92fbbf2dea3c97c6a206a79f9fcde877501002"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //PathFinder.getObjUniqueReferent(powerSource, getCurrentAgentLocation(runner)).get   //## TODO: Not clear why the referent (\u0027generator\u0027) is not resolving here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7997e242ba69e0a966436d6632d70bfd5701d515256ccf54afd955b7fd6e43f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Unimplemented \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"4851b3805cac9ccf2d9ee72517513bb7fc7c39b434f6959e51e489ccd3d108b4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Unimplemented \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3dae56574994e57f8d955e18faca2702f1a574a139e9611f48ece1c8dba11c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Unimplemented \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f32176efabdabf0b8d5adbfffd9ac3289f07acbd4192a85f9b569adb82d0e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should just check for this object from base location \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b941e44a6ecc565cea573f69617222d07762eba0259fd118e6643d88e394d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should just check for this object from base location \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc95da7ee25611a8a75e0c064aff66a95ec70b2fcaeff259545ee7161c1b2ae4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should just check for this object from base location \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d229e41e4ef33a508e5f13394a82c3c7613c6ebbcfb45e71efb5ae91e5d02bc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check that container is movable. \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b837a1bc611b0b7e598de5585bc80a544d0a53dc7187e6b067d47befa7f235"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check that container is movable. \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd783a39dbc09920c6c667e34ba1e61b3a36afbefed86e4ee6e36a52a7529805"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check that container is movable. \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6365f3d4d9fb79ca0532303fbbda3298a48742fa2ae0c52b45eed022b797def9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check that container is movable. \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87bd4c8f4aa28504d6d13c0eba334aa13cc7f1296ed8c8a46cd2833484575c0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO: Fails on getting container sometimes, for some reason.  (probably not movable, so wasn\u0027t picked up in the first place) \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed32236e3f6e9173cdbd2260329375584ce115efc3d2302cdc75c6314c4baa34"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO: Fails on getting container sometimes, for some reason.  (probably not movable, so wasn\u0027t picked up in the first place) \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c67367c2761b002932269d99aa557d4e55b68524b37565c8717cbe9d6f4801"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add more example substances for the named task \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"151f5c8b2a826fd4da5901053fdc57b20697b7d7b82a50905e5db07bcb1b13f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add distractors? \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56be6ace8d86d53c1ec9c5d143bfc176c826233e1f286010596aaec23b5ba31"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: Only part-way implemented \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fd50a79ef67bdf017c4d20ba7fd0a308bab5f0774ad4f6c5316f5f8aacf59a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently requires all other apples/fruits to be erased from the environment?  (and possibly all other fruiting trees?) \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1f2c780d1b87da96d16205a9c75cebd4a2e5a26dc7972b16989bbbfd94896d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Do watering \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f936f3124a9873610b8cf17bf8edda99b206988c4a7e1de342bfe23b8e5e40"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Do watering \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"57123975f230d013fd675362a7730ff1a1a62ec5cd1f645faad8dc01c0ff3b57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Do watering \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"320bde1f70fcc12b21016cc1ab2f2f4da59be6d9723f2c2c3ec2b22550db842d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Do watering \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"97789073a5541caa74d59d272e397efefc76eefa55a9068930b6e755074548f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO, make jar \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d47aad0570e8d786543a4972e481505c01255ba735fa3df897adebd44066dc9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO, make jar \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"08dcdc6af47b77d7754cfc4566aeb5687ab5675369a9eb02c30dce9f0cd1a88b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO, make jar \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6cd1ad33f95a02d2ddb4eb17ce51d50cde36e8d386771582d957fb9225bddf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better description? \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe10285f09de845ee4fa9a2059ca0d5612487b61e4eaf2459f3a06101d26cd58"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better description? \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f9281b697f644a447c9700d01326926ca72a2280a9b9f9c86e9400bcc7a503"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: CHANGE TO PLANTS INSTEAD OF ANIMALS? \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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb433f6f2846f2efa5fa38bdfa434d81e322d3ca1d6d3563970a13b98745c3d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskParametric.scala"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00293fb24c971af142f9eb558267adc9f674f810c753077adb22c525698a884"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskParametric.scala"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f463331421a7f156947a09d1a1855f91d89e02e2eeca50173efbd0a5366a3f8a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskParametric.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"865dffdf563f2a0bc64c1187916724d6403eb1eb7307e559eee419fed3622edb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskParametric.scala"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee048dccc3dec484a3b86382e8a8b2c18cd7f95fed2091735a45b5f000c361b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/AdultForeverLifeStage.scala"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6e1f306316ae1819c2db017dd737a9f3b257f203ac1b48c3622d622c84ba3a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/AnimalLifeStage.scala"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ffaee70c08b2de8b7d30192c858e3a5415daefaf72cee956765ddfef2a7dc5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/BirdLifeStage.scala"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"8788e5d2c3cbbe591ac7a690e12f3ae1593a1015dc1c51956219f6c4df12a32e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/ButterflyLifeStage.scala"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"786800a34edc3b7056052c29fa0da80355ba79293bdf92817800c10c382187e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/FrogLifeStage.scala"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"de734bf407b280ee12de59d4167c1945eb6bf83f50c1e7ca2da72852869cc331"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/processes/lifestage/TortoiseLifeStage.scala"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"7605c2af7c95543aa9ed7abc40eb39c6a9884c4961315cbe9820bffbbe897928"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/livingthing/animals/Animal.scala"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab3f798d98fd0f9a5623747f12aa4ff0e8debd4e9429f8012a44316c686541c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/scienceworld/objects/livingthing/animals/Animal.scala"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd63cf6496031fc3631a08301c5a839900278a6238b91d4fe54d96a7acceab6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also add a condition that checks for it with no focus? \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":"simulator/src/main/scala/scienceworld/tasks/goals/Goal.scala"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f618c5032ab7c6e85ce4be90f59ca07daf6cc4e14234fa084ba63ad8dfa6ff26"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO: Verify that the portal tick was run only once? \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":"simulator/src/main/scala/scienceworld/struct/EnvObject.scala"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2a27f52ade3896a924ed398350a535a92bffcbef8b9d74318eda49afc8f45b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently places task objects in agents inventory \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c39ebf43cf0f5752042fb92253fffdaaab1423733cd976da2b0a4b067ce946"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently just returns the current room, rather than a list of all visible objects \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f05a042efef90904d8a9eb6b3f158ee1ffac4a4fc59446c367f315a46824754"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently just returns the current room, rather than a list of all visible objects \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":"simulator/src/main/scala/language/runtime/AgentInterface.scala"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dd99ace32c94015bba6076395b36fabd6ee33bdd62e0deed356ceb8d2068de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //templatesJSON.append( new TemplateAction(actionString = choiceStr, templateID = AMBIGUOUS_BASE_TEMPLATE_ID \u002B ambIdx, objectIDs = ambiguousObjectUUIDs(ambIdx).toList, typeIDs = List.empty[Int]).toJSON() )    // TODO: Fix this casting (proper template ID, object IDs, etc) \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"23340b1e4f00b275be6682829a99588f872d040489fdba9ed25f0bd93ad70d64"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix this casting (proper template ID, object IDs, etc) \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"427da32bb2d1440633faad1c93a34f1bf32593612fed571e316394a404cdf16e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix this casting (proper template ID, object IDs, etc) \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"0110cbe266006c426e0c0ee88d69a5ac0a4951a82adfa4f9c606cac1e34ecae0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Hacky, may not be correct. \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a24b39ce81b5806562d957edb59cb59b4a98dbfbb4d2ab78dd7f8b7041923d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently just a reference to the container (current room), rather than a list \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"030f43bd678da5d8443eeedc4b65ae26c1115a81f653af4643cc89e60caff0ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently just a reference to the container (current room), rather than a list \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":"simulator/src/main/scala/language/runtime/AgentInterface.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d1d1b5d61b76ec86c90e352c26597d0f5e1575e962620f2455500136fd8450"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I think this is now handled by the generic error case above \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac7665f56272665f026ba3fb3e989bf5bb1a8cb593320ac7fefbbdcbfa10f70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also added this check for goal conditions being met BEFORE processing the tick, for cases where the tick can modify the goal state (e.g. trees growing past the desired life stage in one tick) \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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f6c03c18e1b82c3e2fa98a682570536a04a5dabc7e4059285473a1b9a454e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make private, so access can only be from functions below? \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":"simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"487a3087c9880f33aa1e528fb86c69738373e5bb62e6d2c2b63e008690009b20"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add different states? \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":"simulator/src/main/scala/scienceworld/properties/MaterialProperties.scala"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"3024632dcce6aa440184adbfe3b900179c7477414f5575b7e177d4618e21b6a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add 3-substance mix combinations \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":"simulator/src/main/scala/scienceworld/processes/Chemistry.scala"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81b9d9e421a96bab7be54a6a03f5643808cd05ce050a1aeda4112af3914a5bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should this be an object with a specific type? \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":"simulator/src/main/scala/scienceworld/processes/lifestage/LifeStage.scala"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"eade4256a6bebfcad49a6dc18d294378742c8a0fe58aa27bee1d7b15ece32c0e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If the plant contains any flowers, delete them \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":"simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcb35295aad2f23ffeb0dee0f138e6bce487ab223df076b7fe07b10320359a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If the plant contains any fruit/seeds, eject them into the parent container \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":"simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac17703561fccb6079bd276b06236172379ffdd4e2ec0e6d32388c3260755dcf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fruits require appropriate material properties \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":"simulator/src/main/scala/scienceworld/objects/substance/food/Food.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f02f04c729e78dd438639df74f674dc34dd702a3a12d32ad0447101e7e3431"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Sliding/friction calculation \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":"simulator/src/main/scala/scienceworld/objects/misc/InclinedPlane.scala"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a6e8398b7322047042ff4b5720ab1cff483a79da7239d9f7095cd6e82f8322"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add genes? \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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/Plant.scala"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"518489162a0c037f59e5effc5cade028b867ca08d4cf511981d4cae75656c81e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Change into fruit \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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/Plant.scala"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f2043050d516deb8549e72f4971b8b46218e5efd6af5aa4baacfb972e1bf42"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: specific to subclass \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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac09b1f5eed1cf7667aff85f7c38f84659735acf0f999b76fec505bffc37a88e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make objects wet? \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":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d319433440e7aaa168327103bfb11e347ae38790ad494b4ce59231d33092f89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make objects wet? \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":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8482a8f8b6252ba69373b9692d6f5d57a95e929d969dbcf4801ac89a4df197a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Objects that react with water? (e.g. paper?) \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":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bde3f7b9318ecd320da09427be517442a9bd125a6a59b66122d8de60771a44f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Objects that react with water? (e.g. paper?) \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":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e348acd68285e4c992ea6f262001d9c4713e845a3e558d9713c9ac2e6a8a12a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Only include observable objects in the list of all objects \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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"38308f19dec6d37da3253200043d9096ed0eadc267dd8ce12dc1c378b6030284"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Only include observable objects in the list of all objects \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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe5d859e5c1b808e4cf88fa054fb0ba35f2b12c21c80fe85ac8a23eb2a59480"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO: val (success, errorStr) = actionRunner.setActionRequest(oneMatch.get.actionRequestDef.get, oneMatch.get.varLUT) \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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab76dd2101bc87b7e7a162d7e1544e0e7802166c2c132ed9ca4e0fb07365796"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## (TODO, keep this here for a while to make sure that it throws an error if there are bad referents being generated) \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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6ffddba57e5185b175b03eaeadbbe4e9e958d9e03b874a26e3f196df0793f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## (TODO, keep this here for a while to make sure that it throws an error if there are bad referents being generated) \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":"simulator/src/main/scala/scienceworld/input/InputParser.scala"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8536bbe49506ae7506b9f4f4f9bc650e9fef9dced809077618a35eb0c8db1a9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## (TODO, keep this here for a while to make sure that it throws an error if there are bad referents being generated) \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":"simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bb030f8ecb2f45dc86221f851d6a505231a02dd10a3d0577a75176dc685ad2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add check? \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":"simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"2025359df183183bc089cc66b26544dc63d054e7a995df8498ca1c65ba07ff9b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add check? \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":"simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"194b0bfdd495defb0bc0df41b5263c94413d584cfd6a4b2b86ae3348ab4604ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add parameter for preferred container? \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":"simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e5691e7aa793a509cd8ae4fae4af81e199e4a39123c888435c28549f09393a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Task: Which inclined plane has the steepest angle? \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":"simulator/src/main/scala/scienceworld/environments/BuildingMaker.scala"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0800e6bb43c13a2ad7ff4d725685a9aa3e3066dc3bafbf099a1793de49690760"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check that A and B are in the same container? \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":"simulator/src/main/scala/scienceworld/actions/ActionConnectElectrical.scala"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1635114a686fbba49ad45bdc727aba2a68b8dc85af558714fb6d155ef220b386"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: Health? \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":"simulator/src/main/scala/scienceworld/actions/ActionEat.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1109112fdadebb4bab55f402c091ad0375c3a8a794298268fe61d4ce4c4df4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Increase health/nutrients/etc \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":"simulator/src/main/scala/scienceworld/actions/ActionEat.scala"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"47be4f12e7396b3da91b208b44394ab5a3f0caad81ace57dd7ecce9c8e66a615"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO: Arguable whether the error case here should be caught by checks above \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":"simulator/src/main/scala/scienceworld/actions/ActionLook.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c11097f98fa24b10084f4d5edbd0d834df2214258245c17d55c05c9705b0e61"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also disconnect the object, if it\u0027s electrically connected \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":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"871a2b8447053ae9c0bf1b276c7b21580b0d3962d8e76d78c4e13d42b6b028e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also disconnect the object, if it\u0027s electrically connected \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":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dd28e12a8b19328042500a385c9138d054696eb638d1d671ad174e9a9654ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should only be valid locations \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":"simulator/src/main/scala/scienceworld/actions/ActionTeleport.scala"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"776cc8ce08d8bd93feb1ee050a8e2b9914e4269b15ee894e27af1216ca201fdf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO: Elegant way of handling this with checks? \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":"simulator/src/main/scala/scienceworld/actions/ActionUseDevice.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"171b38b19a089bbd0536b8789f5bf452297b50dbb4eed3e3aa07a896e8a11e1c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: Check 3: Check that using the device on that thing is valid? \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":"simulator/src/main/scala/scienceworld/actions/ActionUseDevice.scala"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"081b906be0ff5ce811c56a438cb45b26896a89152cc869ff87984a8468cd4ddd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Allow adding strings and objects, typecasting down to String (and giving a basic string description of the object for debugging)? \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":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29c9f9ede9ecda9adfe0667fe7e1a4622d8d231aeccb1debf78f356612fc4bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Array Equality/inequality/containment \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":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0700bfa8c49e5b915c9840a891a93a29ad86fdae42b43ec0a0f88741f7316378"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check equality \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":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"8560ef3429ee08d98b26cca428bbe389b6c8a004da755acb2548b0c03ae04b10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //## TODO: Run parameter lists \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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"02189a526ddc56fac1244070f77b5b6e9fb2e7b7feedabe4794463df2572c1d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Pop variable scope \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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"912c8a74faac936257c44e08231e183abeab906bd23f8a1f34bc019f39d1c056"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add to a list of warnings? \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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44a4f442e39b1d47ef170b2505e8c499546c47c651748f6fc3273df9631402c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Save object (TODO: is this necessary?) \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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"215e90c2f2261af0ea90983d92912b02e89944ae802e8128bebcff21dbffb4c0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently, just add to the root (but ultimately should be added to specific objects) \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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"56db4b075ea2abd2d53389893230c6ccfd73bed8b831a02f586b11003209992e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add scoping \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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"68faf535c59b2fbfccf2c837644dc733efc606c3d68b52e5efc970fdf497cf80"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also pass/keep track of source file names when combining programs, to allow for more informative error messages \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":"simulator/src/main/scala/language/runtime/Reader.scala"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c27ce71a7c5269edb3d8a4caac839019294791715924d1de8c8f5dac8a46b86"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should likely be passed in, and run only once -- running it every time RuleRunner() is generated is inefficient \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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac337e4d41823dcadc04af6465af01c4f9c19e1f8f7d77b123d13c85d842394"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also allow running actions \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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"855da3129caf075737ec635e164922eaf38169c099dd96303aabf95d461bef4c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also check for missing assignments -- variables in predicates that were not assigned? \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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7118f9040c2f30441e0c032e4cae32cc89d6c1de75883a1b32ac16aef732f3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also check for missing assignments -- variables in predicates that were not assigned? \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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d10ddc3c430b5cfcb463af393f886889c34b701da4dfee42aa693836ff482e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add action request (and their source) to changelog? \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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0cd53f5ad030551f8c7554bce399192387a5cad438fdd440995115af853d6a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3bfa7acb7cedaf39b0c3ab64730ab9ce45b3bc7e8fdc655cccc24e802bc257"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/model/ActionRequestDef.scala"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"429291c2f1c63a0feeaef2f9c59bf31a947aec4e784088f1ed6743e267429542"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060simulator\u0060 (30461 LoC, 760 module-visible types across 43 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7644f575e9230a5eee28a01835d40b8ddb0c962287fa99c131ef1e5e7a9e083"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5bfd1e33accc895a0c1f80a8fcd273ea507963e7df0eafe73dd5bf6834ba3573"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a189c8ffd0ac28b4cf6538e2d11d97287aabf75a4093772681268913681c957e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7fd4bc83c1146ba7e483416f5623a29a1a8f41bb4261579ccfcaa93a9a8a80de"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49b29e3f35f176f5747308b50293bf246e978f474cf4172db0cc45ee789725ae"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b003d472638a2f857f7b22dea0563dcbab6b59a5585bed8f58b54e112bd4929"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc0db8f7fe72638a7242a494b77a9c4f44c7b536ed417314d566c6ecf5523f29"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 112 of 117 significant files have no living knowledge, while the repository is still being changed at a low rate (6 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 112 separate risks. Counted over 117 of the 193 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"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":"simulator/src/main/scala/language/runtime/Interpreter.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf396302118037c687f4fe566334a3ae75a30943c47afd8ca21b6922e4497adf"}},{"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":"simulator/src/main/scala/scienceworld/properties/MaterialProperties.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc4423104167c9d16a81a0e878a7bfb92bc4d0a53b805e06ac1ee2c114f2e02"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChangeOfState.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f88db15262dcbe6a9a42183a937207343eac4b36597359503ca9e7730062b0"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskGrowPlant.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bd942d7766be5d6da919a531566b544956aa5c96c62d0981a56da2af9879f6"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10101e9ca7cf89a6405f5057705a039b97f4a74d7f9db63baca0eb9e2ebfb9f7"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b642b3ea4db78be6a195435e2a7b6e3fc843d3a477e0e6de803a41d4c8a87c0a"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2132886549b89946d3e9af9f56dd9a675d33c9d0fbf268102d1d238602330f"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"918a9520988f9e224c542c240a85957338cebde46a8f32585100c435c7d13100"}},{"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":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab6804a381dc7b396fa1c0234942251b7229c1ef590f4f7ff18ce40d596b89d"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer3.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d4f21aa7f591ed878c1eeaf0b72ac232bc9663c140783fbdea278ee681a3d5"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricCircuit.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2074de68b72def7504eb00bda3c32323a2adba480737cfb2c9a5faf4e0d832e4"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMixPaint.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1bf8420b9d04637a9d3d9ac15760ef4ef3c2bba8758d3032a91b4ed98b4711"}},{"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":"simulator/src/main/scala/scienceworld/runtime/AgentInterface.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d766928d302a19b0d7ee6673667769fe0d2796d2c16b55d1e074fe2dfd144f0"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane1.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bf8c68de495b13732cc62f9c58578a887c4b02f1b2d4bc21b5e97460550e3d"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskChemistryMix.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b41b14e2bf573d6915d167c97517bda5b22ad4a90b602fb1dd9c32896f51d8"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionMoveObject.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1012c35561762ca47a87509eec006f2d7846f36d8999db9591aa4f8898b5af8"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4452509d52dfb0f083baa4718af42b431b6a42882f52c52d356f959fadbb25b6"}},{"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":"simulator/src/main/scala/scienceworld/goldagent/PathFinder.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a337f39e54d40725eaf22d7520ecaeddd2a23303c44631bceb95d2dde1acaf60"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskFindLivingNonLiving.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"295a9208fc585ef7d3b25926ea3dd4eb81b9e095dff2464f8986f3e5da706a54"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce675d706bcace395f97ee47c6af60352407f97cc14285f46fbd2c94f6ba8802"}},{"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":"simulator/src/main/scala/language/model/Program.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e81a178a19918d55226db89e7866b751024748151a72ac4b60ee3f59d9c8a4"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskInclinedPlane3.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"596d98163cb7168f758253e6afe249d623fe12fff2f3b38e8fdf28f83cefcfd2"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddb8619a4afcaf293908b5481e37d8fb2b23cd897e72df6c0b9c04db51184c0"}},{"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":"simulator/src/main/scala/language/parser/Parser.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"244b8f51310ef1f849d5a618c7533fff4502e840383bfc0bd680ae4b64b652ca"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskUseInstrumentThermometer.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff37e20284965aaf68cf01c6c2b54f5029fc1b713315dec3ab13d2d35fb95086"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages1.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3b508cc7ca34a2915cfaffe247db1e371fa9e6d675d9d3c0c5fddd095b8206"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskIdentifyLifeStages2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60ea67402fab575150539771a4d7760de64f313d53c7fde0ba096c5a77f5204"}},{"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":"simulator/src/main/scala/scienceworld/processes/Chemistry.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"009c0af86ad9c4b03f8a5c88239b732d976e54959f377baca8372352738e750c"}},{"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":"simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7d2f406049dbfabc83b984ad2be007424f12f0f69e0b9fcd6d060608288c58"}},{"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":"simulator/src/main/scala/scienceworld/goldagent/ExampleGoldAgent.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d94113b452fe72b6b04330fc9c6e18b809f762a0fee0a0b6932ace104287e6d"}},{"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":"simulator/src/main/scala/scienceworld/objects/livingthing/animals/Animal.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41445e32b2b0c8cd5814504f035467f4e59a6be62855521978d81a1a6646d12a"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40024a3cc59070c725e69d070f84983693417a9fd64ecadf43130b8531521f71"}},{"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":"simulator/src/main/scala/scienceworld/environments/BuildingMaker.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c4f106a82c61fc8b8839222f347061318c0c6295026142d223783740dd9c8b"}},{"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":"simulator/src/main/scala/scienceworld/processes/genetics/Chromosomes.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b0bf2f87ab48191741442da79a05cdc123af1f5bd1becb6eba090607479fd2"}},{"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":"simulator/src/main/scala/language/runtime/runners/RuleRunner.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2625029a5d5800112174a21e175c0044dd0ca406f0faa08f95fe8db47b8454"}},{"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":"simulator/src/main/scala/language/runtime/inputparser/InputParser.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c70f2940f71987a2b20d9d2887fa02c261dc4159dd9f21c36d63ef5e4526d7"}},{"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":"simulator/src/main/scala/scienceworld/objects/electricalcomponent/ElectricalComponent.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b97deb1d2cf6e9869e4ec5bda6b100aa13cb13e66fc3ba63174e8071529d66"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskLifeSpan.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd94ea3016b84db1d2e0f0c8809f8c256087d85b3d9441d8dcbe90dd6599b64"}},{"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":"simulator/src/main/scala/language/runtime/runners/PredicateRunner.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ded9846d1ef0b8f9e3c395747ac8eff904081f9d9b1071b4f2261ecb60ac54"}},{"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":"simulator/src/main/scala/scienceworld/processes/lifestage/PlantLifeStage.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f510810cb3759325023f0e02fa121defd34a3c2ca22ace9bbb4a2693af37db58"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c3196950eaad43c972ba15b73aea87463f72cbb29b947daf9932e51f249d7a"}},{"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":"simulator/src/main/scala/scienceworld/objects/substance/food/Food.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca2a7f9160a744e4d5f57c5f923ed3894c21fddb898394b3934b3628dfb1254"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/Goal.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbe17f1242a068b57d7bb4294f3e89f1e93b86caffd48ede57056400bd59ae7"}},{"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":"simulator/src/main/scala/scienceworld/processes/genetics/UnknownPlants.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"091d9e02ade3c6cf5cd87e57ab838eed57df57bb64dcdc167630460c0c1bc8d5"}},{"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":"simulator/src/main/scala/language/struct/Taxonomy.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"238b181c70a30024005d54b6837be40f795f6c38355f695d7516711e05482bc0"}},{"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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/Plant.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22be9fbf8e3707654dc952646b5df9a1c33753aeab954537ac0bedace73e65e3"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionConnectElectrical.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa9c9ae3f469433c90e304d83e35bdce69268d917f5e792e587d56e25014675"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionLook.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58eafeee4860f365ca487ec8eaa782b687d1dfdbee2d90f123cb64501f09032"}},{"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":"simulator/src/main/scala/scienceworld/objects/document/Document.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7909a5a7ca8befca9994ba317dff685bfd8d4e8ab4d89fdbe390d1d4085fb3"}},{"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":"simulator/src/main/scala/scienceworld/objects/containers/furniture/Table.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9684e5e79fdf5df2b9e3eff258e3cb7f3ecd1559fb8c3e2b41a1b44dc29eb6"}},{"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":"simulator/src/main/scala/scienceworld/tasks/TaskModifier.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"301847c408bf3b0c28cd94547d9d16e254eed96a8d0b4aae9cd3e1d5c44fa9a5"}},{"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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/FruitingTree.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e927ff7cd81e01e7a47a93e182ae18d3029c6619e3245561d0290f0c6299a84b"}},{"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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9eeacbe139b1f1a58e16ecb94ff9b35703cfe1bb599e5dea6ffa1acab0624e"}},{"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":"simulator/src/main/scala/scienceworld/input/ActionDefinitions.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5ab97061710ede677bcecae05c5f6f56b9e987b26740e50a9f16614a88bcd6"}},{"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":"simulator/src/main/scala/scienceworld/objects/devices/Sink.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"650062658cc8032ad56ee3b4b949c759d241d32ea86250c22f5e73d255730f63"}},{"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":"simulator/src/main/scala/language/struct/ParamIterator.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50c4db1a0dc3f58b39e2e41ce23b972fec7334236c6c4493010114c7e991e77"}},{"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":"simulator/src/main/scala/scienceworld/EntryPoint.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"696b141147c886775f383bc36dec829b84f2f28e5aa122428d51ca4f2cab3ea2"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionOpenCloseDoor.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9be17e315089a735aae42a60df1843fd9d998c2eca44d51aed7912e58c5cab6"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalFind.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4610beba1c2953348b01b9ce23f0fcebd1b9465fa90c6aa7e60e15b9690a33b5"}},{"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":"simulator/src/main/scala/scienceworld/processes/lifestage/ButterflyLifeStage.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33432ef9abffee0a293b20326a9b2b1349b9e8f781d247646382c67e47e763bd"}},{"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":"simulator/src/main/scala/scienceworld/processes/lifestage/TortoiseLifeStage.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af72f656e34fb933efff4087dec887a0c3506c4cd9d489917577168e31ed9110"}},{"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":"simulator/src/main/scala/language/runtime/AgentInterface.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb88e709576119e930d54da3e58639202da445a453d9e3f095adb1d7c300db5"}},{"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":"simulator/src/main/scala/scienceworld/processes/lifestage/BirdLifeStage.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ae7c56e09ae78261b3ba2afccc25f2cdef9363e8b04e5448f94d0912e57dc2"}},{"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":"simulator/src/main/scala/scienceworld/objects/containers/Container.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2fdc00c60e1744f51ff8a34db5c1028e4c19e5c4ac72e8251154914265c9d8"}},{"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":"simulator/src/main/scala/language/struct/EnvObject.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a44830733d25fbb242777799403c472e35361326e137c70496f67ea79e19b7"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionMoveToLocation.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c380299a06d2270ed19cee7e5a64f55405e0521e234bbde02b0d292825ce1dbe"}},{"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":"simulator/src/main/scala/scienceworld/processes/ElectricalConductivity.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e90d89191ea19f1da736c9371c7b0755aa7e94f919ee81a92e751eaca39fc0a"}},{"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":"simulator/src/main/scala/language/runtime/Reader.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"149a995bcb42d1b27f34949cd9d6d9e225c15d0bee1d1eee1a9d6949909c0992"}},{"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":"simulator/src/main/scala/language/runtime/runners/ActionRunner.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a300788e0a3f1363f7f0cd1e43bdf6efbefd598ff6312d620e510fd8f722930"}},{"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":"simulator/src/main/scala/scienceworld/objects/livingthing/animals/Bee.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a915bfe54281bf9132e195f41995db598d767d18b8129daac4d3f7210d0ea58"}},{"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":"simulator/src/main/scala/scienceworld/runtime/SimplifierProcessor.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6576bd86052174fbc8847db6adf39e9bb99c216effcf93ded9b37c0d2de1d4f3"}},{"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":"simulator/src/main/scala/scienceworld/objects/devices/HeatSource.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9387ec3d076a0993ea91f74509d276444472b93e284499948ca303734a7cadde"}},{"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":"simulator/src/main/scala/scienceworld/properties/LifeProperties.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1017e4e326f7f651b7d7af3d191ff4a785968e4d04bbd9f8386a820bf3f965"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionActivate.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d8f122abc5a88e95c69da139ed14e0e2c7214f3a5481756866145177631331"}},{"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":"simulator/src/main/scala/examples/ExampleRandomAgent.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb73deacdb10111a24596dfe7660877f8d1a49ca3214d4181a4627d4c458c9d8"}},{"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":"simulator/src/main/scala/scienceworld/objects/devices/CoolingSource.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c201a2d2e68cffeed489d3ae03cc97214b3b0b706f2aceb75b3376e3109c745"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalChangeStateOfMatter.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6fcc9e058ae9d2dcbce99a1bc746f13126b395125b076c6c85db3f93569eeb"}},{"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":"simulator/src/main/scala/scienceworld/objects/misc/InclinedPlane.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef937e14940436f62d4c51eacbf71a534d20daaeeab5731b073faf2053069648"}},{"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":"simulator/src/main/scala/scienceworld/processes/lifestage/FrogLifeStage.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0d3d41c19cf0a8e2f85bbb13dc6b87c650bcd04f6d115d8780a54923580983"}},{"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":"simulator/src/main/scala/scienceworld/processes/lifestage/AnimalLifeStage.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4168eadc97b22d88027828b37bf59b608a9a57f1a1d82e1d52cc863558ecf13d"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalPastAction.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd4067b8b1180e77615d1595d21f0614400f5a7ab57c3c3617dd377970ec7aa"}},{"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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59928d2da038c88cae65b6b84d33365047ceb7c59a5b3d9f9b248604515459a1"}},{"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":"simulator/src/main/scala/scienceworld/processes/PlantReproduction.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"492660dfdd6c510038805b2297beecfab462e7f0b33269764ae847d1ed523ff0"}},{"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":"simulator/src/main/scala/scienceworld/processes/HeatTransfer.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f6c9e69ba37354c2479a8854c97feaf02fdb236dc52a81e02df178978b1339"}},{"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":"simulator/src/main/scala/language/runtime/runners/ObjectPropertyRunner.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1a46d668cb1ca52650cc44a1212643cdaa72352e5be5993038beadd127d8d5"}},{"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":"simulator/src/main/scala/language/model/ActionRequestDef.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cb3d31382b822fce24e6b53cc2f27966bb8ea3f7f3174a34b227beba9a7905"}},{"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":"simulator/src/main/scala/scienceworld/objects/electricalcomponent/Generator.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62a1bd25d05e412e88b69f744a032b09b3c5ad4748ea316419f778f369ca52a"}},{"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":"simulator/src/main/scala/language/struct/VariableLUT.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5548bd9627740e3a26191db6b492589b94521b4277038494d915dc839e87157d"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionFocus.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e579721b9d407ce1f81aa4f2e62965ef277c58f5220a2bd7ae19ef7f2ffed284"}},{"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":"simulator/src/main/scala/language/struct/ChangeLog.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b109f8661be68f7615b5e07b946c94b85fffb42d4edfee279330064d17b987df"}},{"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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskParametric.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8060e1879dbfceb458917a33067e8510bc25575b59fabe6b076a5a31292e8980"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalTemperature.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65ccd85b78edc8eab6a69cd744ed49282f2da4b7dfa99a60c553a1907409e83"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLifeStage.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c8cdb3b47f7ce73855b2373479a2259570ce1cc0a9c46c2543aa847cd734ef"}},{"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":"simulator/src/main/scala/scienceworld/objects/substance/Substance.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83409cf21e1cef40846865e68a303a6f462a633e769ce2c4542cabedc328902d"}},{"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":"simulator/src/main/scala/scienceworld/tasks/TaskMaker1.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9488dc4516182be6e5f2cea6f7a6fc19d96d74aeef388bb6fe2ef01ac8aa2099"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionWait.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb5d6a3b4a4659a4f86493c9ee2c500caf23d72fd6f377f6cda6f411d4dfb44"}},{"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":"simulator/src/main/scala/scienceworld/input/ActionHandler.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4bc6479affc54eac16860c45631dbdb72f79ccc1a40ecb3e831fc83f6c1c86"}},{"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":"simulator/src/main/scala/language/model/Expr.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"212b8fc19cd0667119afc4a28b5aecbee490f6264ef61a23605c8f36b0b2de39"}},{"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":"simulator/src/main/scala/scienceworld/objects/taskitems/UnknownSubstance.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb8fda41d86a7c9bc9d6a2964707474727b426f7c162c6950443cd2379fffb0"}},{"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":"simulator/src/main/scala/scienceworld/input/ActionTypecaster.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5d763306c3a6c2cca682103e4362fb622695f1bc3f4d8f23d64bd3df2ecf99"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionTeleport.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d078f63f136df6df4e5dde0c30d2f6c7d6c527d8d9977da4e8d05efba3ab6b"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionUseDevice.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7099b94992e91ff5aa6e96947afd6c8d5c419682ec86da4cd65f235c5c188d"}},{"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":"simulator/src/main/scala/scienceworld/processes/lifestage/LifeStage.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a0a17b770530c783f5c3994b1e0b5632c1fa6096368fc674d0d9e80db412e1"}},{"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":"simulator/src/main/scala/scienceworld/objects/location/Location.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4934432616df5642cf43079f37a1b8daba99e35d90d0b0f7202e94537c6d82"}},{"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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalDevice.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0752b16ef189030845d7e28af40a810dbc5190eb74f424aa9accd82aefb20bc9"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionFlush.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac357ec54b17956b422be1123a992f2e23482ed693829b6f34d4bd63bfd46b31"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionEat.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a9cb0f02c4ad1d88db625f60a0bbc1c89f89f2dd6b6683162d344364ce274b"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionRead.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaee8f344bd20cff807992440a763a8277a23323cadb566830aa40eaeb04e79"}},{"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":"simulator/src/main/scala/scienceworld/objects/agent/Agent.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c108ebd157457d97e65233a524a5714a1d1d07037b5d3ac243006a8b25cd2ece"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionMix.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e570061b5ad3ffe50790aee9e43c784e327be0606f588a08c27d9eec07f7a8"}},{"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":"simulator/src/main/scala/scienceworld/objects/devices/Lighter.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"046677bece42d1b659e7d77a0742e01ec5dabe74d3dedc8d24a7eae7b9be94bb"}},{"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":"simulator/src/main/scala/scienceworld/actions/ActionInventory.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f68d652df2c57162889fd1cd931ba472fddb0fbada6c3798835053191c9fb0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: scienceworld.py \u2194 setup.py: \u0060scienceworld/scienceworld.py\u0060 and \u0060setup.py\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00604acd0444\u0060 Refactor to be complian with tests; \u006012d48a8c\u0060 Read task information from a JSON file; \u0060095562cc\u0060 Store library version in only a single place \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scienceworld/scienceworld.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1380dcf6fb7cf9ac7f416579ed93b184a5c575957363860202dfd9d11138f2"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3337a9b9f95372c673333df446b65a4c71930bb763985cedfcf1f0f3f6e7d8b0"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"M3","level":"note","message":{"text":"No src/ separation: Production code isn\u0027t grouped under a src/ folder \u2014 it\u0027s spread across several top-level directories, so there\u0027s no one place that says \u0027this is the product\u0027."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/2 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060simulator\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add scalafix or scapegoat (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1519 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/tests.yaml"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(!agentHasShovel) \u0026\u0026 (getCurrentAgentLocation(runner).getContainedAccessibleObjectsOfType[Shovel]().size \u003E 0)\u0060 appears character-identically in 2 files \u2014 simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala, simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala. 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7bc8b3c21f82b0a8dd610d830c5d369e31ff48210c59e91e3c850c40167623"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(component.propDevice.isDefined) \u0026\u0026 (component.propDevice.get.isActivated == true)\u0060 appears character-identically in 2 files \u2014 simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala, simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala. 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cfd9fea2ba2347ede702b78bdf17c7311a4b4bd0dcae14b7801ac837c4b136"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(pl.lifecycle.get.getCurStageName() == PLANT_STAGE_ADULT_PLANT) || (pl.lifecycle.get.getCurStageName() == PLANT_STAGE_REPRODUCING)\u0060 appears character-identically in 2 files \u2014 simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala, simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics2.scala. 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskMendelianGenetics1.scala"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"7905ed56b586199fbc38533a6431f9967a4108ea2508afe7f8e70d068a039ad3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(substance.get.propMaterial.isDefined) \u0026\u0026 (substance.get.propMaterial.get.stateOfMatter != \u0022solid\u0022)\u0060 appears character-identically in 2 files \u2014 simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala, simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity2.scala. 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":"simulator/src/main/scala/scienceworld/tasks/specifictasks/TaskElectricalConductivity.scala"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01f4742b0b05718cea84548a85d621a09fff301556a4dabb964439dead2496e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(this.lifecycle.get.getCurStageName() == PlantLifeStages.PLANT_STAGE_ADULT_PLANT) || (this.lifecycle.get.getCurStageName() == PlantLifeStage\u2026\u0060 appears character-identically in 2 files \u2014 simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala, simulator/src/main/scala/scienceworld/objects/livingthing/plant/RandomGeneticsPlants.scala. 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":"simulator/src/main/scala/scienceworld/objects/livingthing/plant/PeaPlant.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b7f6d55bd6dfcf2e25bd4ffbdf613caae54f1b37cf99fed6f1e19d93bd72a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(userInputString.trim.toLowerCase == \u0022quit\u0022) || (userInputString.trim.toLowerCase == \u0022exit\u0022)\u0060 appears character-identically in 2 files \u2014 simulator/src/main/scala/language/runtime/EntryPointConsole.scala, simulator/src/main/scala/scienceworld/EntryPoint.scala. 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":"simulator/src/main/scala/language/runtime/EntryPointConsole.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb4dcffd04a18dd32c163c6b6b9897aac64dcbbcdb7c80d00979d81ac46ee37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(vObj.name.toLowerCase == containerName.toLowerCase) || (vObj.getDescriptName().toLowerCase == containerName.toLowerCase)\u0060 appears character-identically in 2 files \u2014 simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala, simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalLocation.scala. 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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalContents.scala"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb87047eb1364b2bfb31d26308e09b3d8166c39ae3e8d37ab02ce008827fc36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(vObj.name.toLowerCase == objectName.toLowerCase) || (vObj.getDescriptName().toLowerCase == objectName.toLowerCase)\u0060 appears character-identically in 2 files \u2014 simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala, simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalTemperature.scala. 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":"simulator/src/main/scala/scienceworld/tasks/goals/specificgoals/GoalElectricallyConnected.scala"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"024c4facc57bb00451a99484f9d5f2e144e5ae7d790ce1c44dd2a763017cdcf4"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposable created and abandoned in the function that made it: \u0060io.Source.fromFile(\u2026)\u0060 opens something that has to be given back \u2014 a file descriptor, a socket, a directory handle \u2014 and its only use reads \u0060.getLines\u0060 through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: \u0060Too many open files\u0060 under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with \u0060scala.util.Using.resource(io.Source.fromFile(\u2026)) { r =\u003E \u2026 }\u0060, which releases it on every path including a throw, or hold it and call \u0060.close()\u0060 in a \u0060finally\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/util/UniqueTypeID.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdb64e3c897d275695b40f516df020024564aa4cd8e67e69202ea82ab6c266e"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposable created and abandoned in the function that made it: \u0060io.Source.fromFile(\u2026)\u0060 opens something that has to be given back \u2014 a file descriptor, a socket, a directory handle \u2014 and its only use reads \u0060.getLines\u0060 through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: \u0060Too many open files\u0060 under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with \u0060scala.util.Using.resource(io.Source.fromFile(\u2026)) { r =\u003E \u2026 }\u0060, which releases it on every path including a throw, or hold it and call \u0060.close()\u0060 in a \u0060finally\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/struct/Taxonomy.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfecbefa84f9358a201cbee997db699780764bb2476484b8eaedabebca52234"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposable created and abandoned in the function that made it: \u0060Source.fromFile(\u2026)\u0060 opens something that has to be given back \u2014 a file descriptor, a socket, a directory handle \u2014 and it is held in \u0060file\u0060, and every later use of \u0060file\u0060 in its block reads a member through it \u2014 it is never returned, passed, stored, captured by a lambda, reassigned or released, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: \u0060Too many open files\u0060 under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with \u0060scala.util.Using.resource(Source.fromFile(\u2026)) { r =\u003E \u2026 }\u0060, which releases it on every path including a throw, or hold it and call \u0060.close()\u0060 in a \u0060finally\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/scala/language/runtime/Reader.scala"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"540d568c28fbf08adedac2a49489b04c7e70e50f7b37030d5c13f14ae99fbb10"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _:Throwable\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":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b9e3b8bdb0d18a68ad5228da96fcaaf1e81fd5fff0a2df33a5ffd7fc9788e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _:Throwable\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":"simulator/src/main/scala/language/struct/DynamicValue.scala"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f865df6e3a054e5a0373ee5d4676ae94dd2f29c72cba528baecc8bdfa88500d"}},{"ruleId":"X5","level":"note","message":{"text":"Scala\u0027s null is not held to the type system everywhere: No build over this repository\u0027s 182 Scala product file(s) passes \u0060-Yexplicit-nulls\u0060, enables WartRemover\u0027s \u0060Null\u0060 wart or runs Scalafix\u0027s \u0060DisableSyntax.noNulls\u0060, so every reference type admits null and nothing reports a \u0060null\u0060 written into the code or returned from a Java API \u2014 the first one to reach a method call is a \u0060NullPointerException\u0060. \u0060Option\u0060 by convention is a habit no tool here holds the code to."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"23e7c3c6da50151f07723c64ca4f881fd5903e713d143161a7c0594ad7ba29cc"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":9,"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."]}]}