{"$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":"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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}},{"id":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"}]}},"results":[{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java:59-77 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultXmlBuilder.java:61-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java:59\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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61bd02b6667c9f4bd1f863e7024bbcc79bfee9f0d13ed2bed174b85f0b3eac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java:149-167 | lib/java/src/main/java/com/dianping/cat/util/StringUtils.java:104-122 \u2014 before extracting anything, compare \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java\u0060 and \u0060lib/java/src/main/java/com/dianping/cat/util/StringUtils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java:149\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef48bd410d692d2b854cf25c398b557412f0f32f0c4098501f164c667a0242b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Threads.java:341-358 | lib/java/src/main/java/com/dianping/cat/util/Threads.java:273-290 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Threads.java:341\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":"cat-client/src/main/java/com/dianping/cat/support/Threads.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cadbba209305134c7a3f2996a0ab820145f0e8425d0bcd9c3b12ecfb33c4fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Threads.java:410-428 | lib/java/src/main/java/com/dianping/cat/util/Threads.java:345-362 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Threads.java:410\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":"cat-client/src/main/java/com/dianping/cat/support/Threads.java"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d5fd8351bd94dbc225c92b0ab8a370c74096a22b3079a43e55c4461ad19b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/csharp/src/CatClient/Util/BlockingThreadSafeQueue.cs:50-66 | lib/csharp/src/CatClient/Util/BlockingThreadSafeQueue.cs:77-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/csharp/src/CatClient/Util/BlockingThreadSafeQueue.cs:50\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":"lib/csharp/src/CatClient/Util/BlockingThreadSafeQueue.cs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c7fc438c8efde2ff07fb101f54c34d21acb4384dccacdaf532683e9cce865f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/message/internal/DefaultMessageProducer.java:243-259 | lib/java/src/main/java/com/dianping/cat/message/internal/DefaultTransaction.java:242-258 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/message/internal/DefaultMessageProducer.java:243\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":"lib/java/src/main/java/com/dianping/cat/message/internal/DefaultMessageProducer.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc99ba51376a820b40462b52d2d7e497f3db82dc078a5221e092062f5d3cd21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:490-506 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:464-480 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:490\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc93058cc98aa524d16580f31a6d9fd972455729b8255a58ee188d7599820ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/MessageTreeFormat.java:136-152 | lib/java/src/main/java/com/dianping/cat/util/UrlParser.java:58-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/MessageTreeFormat.java:136\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":"cat-core/src/main/java/com/dianping/cat/message/MessageTreeFormat.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b7a3ce86adcb7615c1648061695da7492dee0efef5ec536974abfb7ca14ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Files.java:211-227 | lib/java/src/main/java/com/dianping/cat/util/Files.java:190-206 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Files.java:211\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":"cat-client/src/main/java/com/dianping/cat/support/Files.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1edf90a222359c112fd9e0f97eca8fa4245e0addff1ba7e8791b12e136d5f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:444-460 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalIndex.java:344-360 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:444\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"521b2b25c9242c083f5febe38eb8a03c92a1569a819317c77a2d0dfa7820e95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/EscapingBufferWriter.java:44-59 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/EscapingBufferWriter.java:42-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/EscapingBufferWriter.java:44\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":"cat-core/src/main/java/com/dianping/cat/message/codec/EscapingBufferWriter.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3738881721012eb9fc4896301bc0ff990142418ea05b4c88b73b6d6b2d1ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/storage/MessageBlockReader.java:83-98 | cat-hadoop/src/main/java/com/dianping/cat/hadoop/hdfs/MessageBlockReader.java:93-108 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/storage/MessageBlockReader.java:83\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":"cat-core/src/main/java/com/dianping/cat/message/storage/MessageBlockReader.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b3baaaac297ca7932c18af608361b313882930dca2e49542a0c29acc4c6f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/component/factory/ComponentFactorySupport.java:208-222 | cat-client/src/main/java/com/dianping/cat/component/DefaultComponentContext.java:208-222 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-client/src/main/java/com/dianping/cat/component/factory/ComponentFactorySupport.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcf78a9846456bff1556e7cf7fd378f2433d7e3771f562cbd6504f03c786e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:50-64 | cat-core/src/main/java/com/dianping/cat/message/tree/MessageId.java:58-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:50\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":"lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"01efed9ea6123041c74783b0af54edd02f067afaa6cdbefafc807a8bb9b61d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/message/spi/internal/DefaultMessageTree.java:77-91 | cat-core/src/main/java/com/dianping/cat/message/spi/DefaultMessageTree.java:147-161 \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":"lib/java/src/main/java/com/dianping/cat/message/spi/internal/DefaultMessageTree.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5990cb81983cba0b3f664e82ae33ee49e986d82d869858f1da2dfae8fe6c862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java:182-196 | lib/java/src/main/java/com/dianping/cat/util/StringUtils.java:137-151 \u2014 before extracting anything, compare \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java\u0060 and \u0060lib/java/src/main/java/com/dianping/cat/util/StringUtils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java:182\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a591ff10b2032f8ae25c0b403bacaad8141575b25ffbcaebfa11ac9a1ad35f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java:206-220 | lib/java/src/main/java/com/dianping/cat/util/StringUtils.java:161-175 \u2014 before extracting anything, compare \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java\u0060 and \u0060lib/java/src/main/java/com/dianping/cat/util/StringUtils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3993bcfc9ea2b69838cb292cfc0cf1784be1093c37d97dfd8a9f53df673509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucket.java:263-277 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsIndex.java:230-244 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucket.java:263\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucket.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ec867f59dd6e32742123af5a6e425aa2b3ddbbcf9b7eedf258f446dd7d4324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMappingManager.java:53-67 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalTokenMappingManager.java:44-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMappingManager.java:53\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMappingManager.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"141bd6c92c5d0f241d76d2bac17cf49215310c2df85663008967bc908833058d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java:109-122 | cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java:139-152 | cat-home/src/main/java/com/dianping/cat/report/page/matrix/task/MatrixReportBuilder.java:110-123 | cat-home/src/main/java/com/dianping/cat/report/page/problem/task/ProblemReportBuilder.java:121-134 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportBuilder.java:150-163 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java:109\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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"044808873ec2f8a2657ddab7c55f6c3eb2667bd0eec9f4f6b8d4ce1ab370e6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): cat-home/src/main/java/com/dianping/cat/report/page/overload/task/DailyCapacityUpdater.java:84-97 | cat-home/src/main/java/com/dianping/cat/report/page/overload/task/HourlyCapacityUpdater.java:86-99 | cat-home/src/main/java/com/dianping/cat/report/page/overload/task/MonthlyCapacityUpdater.java:84-97 | cat-home/src/main/java/com/dianping/cat/report/page/overload/task/WeeklyCapacityUpdater.java:84-97 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/overload/task/DailyCapacityUpdater.java:84\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":"cat-home/src/main/java/com/dianping/cat/report/page/overload/task/DailyCapacityUpdater.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68ab6c26882f817e7b23ad6aee041c3e8eee901fa220e8491f93a8920aa9eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java:323-337 | cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:285-298 | cat-home/src/main/java/com/dianping/cat/report/alert/transaction/TransactionAlert.java:290-303 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java:323\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":"cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f6fa463606be06af7c0b537ec23d9d078b6acded35bc08b741c5d2b51778a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/configuration/source/EnvironmentVariableSource.java:31-44 | cat-client/src/main/java/com/dianping/cat/configuration/source/SystemPropertiesSource.java:31-44 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/configuration/source/EnvironmentVariableSource.java:31\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":"cat-client/src/main/java/com/dianping/cat/configuration/source/EnvironmentVariableSource.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"279958af90898384a88d0657d6f62c93d6f97c238b23081b916750f0ab03d309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMessageTreeEncoder.java:157-170 | cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMetricBagEncoder.java:82-95 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMessageTreeEncoder.java:157\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":"cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMessageTreeEncoder.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9eb5b72ccf54bf52a46abf47cf42542374e714f2a9ccfcbbb3cdb60c9ac2f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:136-149 | cat-core/src/main/java/com/dianping/cat/message/tree/MessageId.java:141-154 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:136\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":"lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d4187d1941cd794189fa26d6de6099ef4c2029c135f5689261f8cb49b17b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:116-129 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:110-123 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:116\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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"032ca84258ff4851b1daadb839d8a61a119d9ab5d167250b91979534970cd063"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:240-253 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:235-248 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e0695b564b44720e871e41b0c8b952ebbe3ed7f9c1072e0b11675f282d12ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Files.java:163-176 | lib/java/src/main/java/com/dianping/cat/util/Files.java:148-161 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Files.java:163\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":"cat-client/src/main/java/com/dianping/cat/support/Files.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e416dbf0bbc2297975c2526f1ad80a72d313fdd031300713bf3d10dd924cf55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Files.java:249-262 | lib/java/src/main/java/com/dianping/cat/util/Files.java:221-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Files.java:249\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":"cat-client/src/main/java/com/dianping/cat/support/Files.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2b7488fd4cea9bfe34f25f5bde34cc3cade35dc686c3d837fd065e9e41d2b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:203-216 | lib/java/src/main/java/com/dianping/cat/analyzer/DurationComputer.java:37-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:203\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"928497323ec04478863cd897ecd8f80b7a0e66de43fe3c89c8a3e667081b05ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/exception/ExceptionAlert.java:151-164 | cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java:389-402 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/exception/ExceptionAlert.java:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/alert/exception/ExceptionAlert.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecced8b2383d5adb679ceea71507e7df1037bbd1bcb85484b4b1eb3353585e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/logview/service/LocalMessageService.java:113-127 | cat-home/src/main/java/com/dianping/cat/report/page/logview/service/LocalMessageService.java:150-163 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/logview/service/LocalMessageService.java:113\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":"cat-home/src/main/java/com/dianping/cat/report/page/logview/service/LocalMessageService.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bc5faeaa4c5fc89e0376e8937bc5bc5f1de6663ec9f49474fa5f2de74ca9ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMapping.java:100-113 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalTokenMapping.java:114-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMapping.java:100\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMapping.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"499d9d0019abad688b6fe5a175eef019fc584e4fa6809db4f101c4caf06c2ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMapping.java:136-149 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalTokenMapping.java:177-190 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMapping.java:136\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMapping.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5903a4ada15e293d0757f1807107f5fd3bb32c7643ce3b99ca23b55f2db224ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:424-437 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalIndex.java:324-337 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java: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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca71d6ebd5e02eea5a3d48da42158e8960e8218e690d27ec6ba5bc64dbf0279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/sender/AbstractSender.java:65-77 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/sender/AbstractSender.java:112-124 \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 \u0060cat-alarm/src/main/java/com/dianping/cat/alarm/spi/sender/AbstractSender.java:65\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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/sender/AbstractSender.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e581a2a3a817e0e6dd079357436f01ea4c7e46bef0381e3ba42d1387f4842caf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/component/factory/ComponentFactorySupport.java:26-38 | cat-client/src/main/java/com/dianping/cat/component/factory/ComponentFactorySupport.java:44-56 \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":"cat-client/src/main/java/com/dianping/cat/component/factory/ComponentFactorySupport.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"15972705930c57a112e99cf4bdb42418cf0b011ad223b9c2bba02f4ac9196f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:169-181 | cat-core/src/main/java/com/dianping/cat/message/tree/MessageId.java:174-186 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:169\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":"lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc49c82bdb3877bc6d35850abe716e24bba036e8ee9531f397849d5188eb1c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:80-92 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:74-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5fa0c56cbd117c1addbed11389169975ab7b8fa9381f4c34760f08f7b3fa3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Splitters.java:140-152 | lib/java/src/main/java/com/dianping/cat/util/Splitters.java:80-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Splitters.java:140\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":"cat-client/src/main/java/com/dianping/cat/support/Splitters.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"946d26cc0dbb8017a109212beafc765e174ab29b79c1d2fe2394166496f2b9dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/util/base/CharacterEncoder.java:76-88 | cat-consumer/src/main/java/com/dianping/cat/consumer/util/base/CharacterEncoder.java:211-223 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/base/CharacterEncoder.java:76\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/util/base/CharacterEncoder.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8b50958813e60946e6ae32b206d661ea2717dae624775b585d3d2a7e4dddad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:432-444 | cat-home/src/main/java/com/dianping/cat/report/alert/spi/AlarmRule.java:87-99 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:432\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":"cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfca5f4b689720aca59cb32b46997de1ddd90fa5e574ec2c4ffc5d88afe08b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/graph/svg/DefaultGraphBuilder.java:96-108 | cat-home/src/main/java/com/dianping/cat/report/graph/svg/DefaultGraphBuilder.java:270-282 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/graph/svg/DefaultGraphBuilder.java:96\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":"cat-home/src/main/java/com/dianping/cat/report/graph/svg/DefaultGraphBuilder.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcce10105f42b79e52ff47ad4e7a8025b03a694ebf21066d5eb421dc0080ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:119-131 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/LineGraphBuilder.java:102-114 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:119\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1020158bbde9ee915acafd20a361a6f5a5665a1d408fc02c6c0b7fddb28a067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportHourlyGraphCreator.java:125-137 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportHourlyGraphCreator.java:146-158 \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":"cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportHourlyGraphCreator.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ed0647d4215857c0e120a5bf894dda60b6f1e7ad7a124c75e622217a585b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportHourlyGraphCreator.java:162-174 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportHourlyGraphCreator.java:185-197 \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":"cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportHourlyGraphCreator.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25ec836b0344d2ecf1d28b2248575a6a39da80581b417b54e8862d43a4a52be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/DistributionDetailVisitor.java:52-64 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/DistributionDetailVisitor.java:52-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/DistributionDetailVisitor.java:52\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/DistributionDetailVisitor.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e761ab079f5f8785cb7454646c1b3bdc9ddc9ce8452b604be2eaf558c701ff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucketManager.java:88-100 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsIndexManager.java:85-97 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucketManager.java: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. 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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucketManager.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"914a851cf641e6499e3d3e244bb51f2d021c9538bc7cc4c32ec9bd2cb1c2eb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMessageTreeEncoder.java:213-224 | cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMetricBagEncoder.java:138-149 | cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:590-601 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:568-579 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMessageTreeEncoder.java:213\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":"cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMessageTreeEncoder.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1f32a45a257388f5b64ffed8bbd35971b2be31631a561698b3033a8f8140a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): cat-client/src/main/java/com/dianping/cat/support/Threads.java:484-495 | cat-client/src/main/java/com/dianping/cat/support/Threads.java:509-520 | cat-client/src/main/java/com/dianping/cat/support/Threads.java:534-545 \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 \u0060cat-client/src/main/java/com/dianping/cat/support/Threads.java:484\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":"cat-client/src/main/java/com/dianping/cat/support/Threads.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"573ccec3bb32e4fdaeaebf22abb73b2e8d9e8bc618629c6a7895bd41ad6ecf05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java:207-218 | cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/ProblemTrendGraphBuilder.java:176-187 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/TransactionTrendGraphBuilder.java:232-243 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ca02acfe727a1bc68947a0f406e86bdc8ac75bdde961bd18a11d62b4d4803a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/event/JspViewer.java:39-50 | cat-home/src/main/java/com/dianping/cat/report/page/problem/JspViewer.java:45-56 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/JspViewer.java:39-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/JspViewer.java:39\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/JspViewer.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f475373b396b72392f566b568a61d4e2341a1be504b7c2406e68043c0111b11f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/task/TaskHelper.java:34-45 | cat-home/src/main/java/com/dianping/cat/report/task/TaskHelper.java:59-70 | cat-home/src/main/java/com/dianping/cat/report/task/TaskHelper.java:84-95 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/task/TaskHelper.java:34\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":"cat-home/src/main/java/com/dianping/cat/report/task/TaskHelper.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"194d0b32d4b1db46b8ec2550da0ebf2004293304650addefe3fdc59559acff4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/java/src/main/java/com/dianping/cat/util/Threads.java:450-461 | lib/java/src/main/java/com/dianping/cat/util/Threads.java:475-486 | lib/java/src/main/java/com/dianping/cat/util/Threads.java:500-511 \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 \u0060lib/java/src/main/java/com/dianping/cat/util/Threads.java:450\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":"lib/java/src/main/java/com/dianping/cat/util/Threads.java"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52bf9423fd632e2e087d14f5c09f63ddafbb12b4de3f28ad0bf51221ff482d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:206-217 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:204-215 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"4791db2b5e15c0f70a6215befe3c2330e8077fd2708f8b922d7271afb7f97e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:452-463 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:460-471 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aba3d853e3d99fc1d805767e67d1cadfb8b1499a566958b108c29556f90c9b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:152-163 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:147-158 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"355cb0264587034eb1b07747339ae29b4d109ac9e7c67180c9300ac348a2ba45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:276-287 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:271-282 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:276\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92051421636adcf737c70b5829ee5bc7c7d8329e94904a6796d51da756de8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:609-620 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:587-598 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:609\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"7848b0e537f437b878ab12e54be3e73872b007ba233ddaaf496d34732d8119f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java:97-108 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:266-277 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java:97\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"194cd8fb6493fe21650907ae48e485598150991f1450643aae239fa5f35506d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java:127-138 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportCountFilter.java:156-167 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java:127\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab62b87c9bc7253dddb3c9f59aeb8246130e112c45ed2d91b60dce08832a34ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportMerger.java:150-161 | cat-consumer/src/main/java/com/dianping/cat/consumer/problem/ProblemReportMerger.java:164-175 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportMerger.java:150\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportMerger.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ce92ac971bba75afec213acbca937f36c8ef0a9d1a8424078cf3b87fa9ad21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:49-60 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:189-200 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:49\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb57a38f39e12017c247e9412f67f0a8410c1b955db5074b796ae2ec62677b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java:80-91 | lib/java/src/main/java/com/dianping/cat/util/StringUtils.java:52-63 \u2014 before extracting anything, compare \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java\u0060 and \u0060lib/java/src/main/java/com/dianping/cat/util/StringUtils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf40510c44ce20d64231e42d89844c7ed03594f1d2d7348a39b69c06b0de165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java:95-106 | lib/java/src/main/java/com/dianping/cat/util/StringUtils.java:67-78 \u2014 before extracting anything, compare \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java\u0060 and \u0060lib/java/src/main/java/com/dianping/cat/util/StringUtils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17d2122541c01f96c9221774a1c112e31758b42bb6785925dd90115c8836649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java:110-121 | lib/java/src/main/java/com/dianping/cat/util/StringUtils.java:82-93 \u2014 before extracting anything, compare \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java\u0060 and \u0060lib/java/src/main/java/com/dianping/cat/util/StringUtils.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/util/StringUtils.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3909dc9196c04c9403179b1a9acc2fbb0bb421d984570b994417202c46472e89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/analysis/AbstractMessageAnalyzer.java:59-70 | cat-core/src/main/java/com/dianping/cat/analysis/AbstractMessageAnalyzer.java:75-86 \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 \u0060cat-core/src/main/java/com/dianping/cat/analysis/AbstractMessageAnalyzer.java:59\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":"cat-core/src/main/java/com/dianping/cat/analysis/AbstractMessageAnalyzer.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"892f792c7ade583307456971ea277d87993ad84d71a3d8ddc202b4db87de1c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/summary/build/AlertInfoBuilder.java:74-85 | cat-home/src/main/java/com/dianping/cat/report/alert/summary/build/AlertInfoBuilder.java:102-113 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/alert/summary/build/AlertInfoBuilder.java:74\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":"cat-home/src/main/java/com/dianping/cat/report/alert/summary/build/AlertInfoBuilder.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"903957bc17f33d67bd46d63a71a24ac3317a4dbba6d3084bae25c9d1970f725d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:258-269 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:258-269 \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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20592a43de17980cefcb9e26295841795adb8eaa649cabdd59bb24069f78033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllMachineMerger.java:110-121 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/AllMachineMerger.java:145-156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllMachineMerger.java:110\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllMachineMerger.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71295a314ff77916a94e4762bf69aafe62d1d016df67a281807e1677351ab79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-hadoop/src/main/java/com/dianping/cat/hadoop/hdfs/FileSystemManager.java:124-135 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsSystemManager.java:89-100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/com/dianping/cat/hadoop/hdfs/FileSystemManager.java:124\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":"cat-hadoop/src/main/java/com/dianping/cat/hadoop/hdfs/FileSystemManager.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e73d4f9f5946ff1dfdc1db1bbaf4f987d912b9e2fb5ac1d3794529aae6ea748"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/analyzer/EventAggregator.java:106-117 | lib/java/src/main/java/com/dianping/cat/analyzer/TransactionAggregator.java:109-120 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/analyzer/EventAggregator.java:106\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":"lib/java/src/main/java/com/dianping/cat/analyzer/EventAggregator.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66191c41b34ae0a8cfe22bb5930eeb24dfebdd185574bfd269c3813d542aa6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/remote/http/HttpClientPluginTemplate.java:51-62 | integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/remote/http/OkHttpClientPluginTemplate.java:47-58 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/remote/http/HttpClientPluginTemplate.java:51\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":"integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/remote/http/HttpClientPluginTemplate.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"01478594f19f0a3b4574b13c9b3675dd156088721ea800770a67c34fbc0fbce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:380-391 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalIndex.java:278-289 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:380\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95f9bd341a6b6da556310139af378a741ca3f5a75877801624c982142eae9fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/config/AlertConfigManager.java:128-138 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/config/AlertPolicyManager.java:181-191 | cat-consumer/src/main/java/com/dianping/cat/consumer/config/AllReportConfigManager.java:158-168 | cat-core/src/main/java/com/dianping/cat/config/sample/SampleConfigManager.java:132-142 | cat-core/src/main/java/com/dianping/cat/config/transaction/TpValueStatisticConfigManager.java:170-180 | cat-core/src/main/java/com/dianping/cat/config/AtomicMessageConfigManager.java:216-226 | cat-core/src/main/java/com/dianping/cat/config/ReportReloadConfigManager.java:169-179 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/config/TopoGraphFormatConfigManager.java:122-132 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphConfigManager.java:357-368 | cat-home/src/main/java/com/dianping/cat/report/page/heartbeat/config/HeartbeatDisplayPolicyManager.java:241-251 | cat-home/src/main/java/com/dianping/cat/system/page/permission/UserConfigManager.java:146-156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-alarm/src/main/java/com/dianping/cat/alarm/spi/config/AlertConfigManager.java:128\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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/config/AlertConfigManager.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ffc514db620c0168cdce283c185a9f52e57c18d010bc9289786787d6eadedd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:164-174 | cat-home/src/main/java/com/dianping/cat/report/page/storage/Handler.java:417-427 | cat-home/src/main/java/com/dianping/cat/report/page/storage/Handler.java:444-454 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:164-174 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:164\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"611ee27d611969741914394ee41a014345d816a82afe8aee85e9b22aa8f4acd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:216-226 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:232-242 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:251-261 \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":"lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"959c8e716b1b8812d681eb2aad44cc787c40380c4460df37089e5f04fd6394a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:92-102 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:127-137 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:162-172 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:92\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d4aa3509246432cd0fba41069230ee793887f9842ddd6352de8c77cf4d47f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java:167-177 | cat-home/src/main/java/com/dianping/cat/report/page/problem/task/ProblemReportBuilder.java:149-159 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportBuilder.java:180-190 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java: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":"cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb25c3759934235355c64760c0b2e56bbf61b495625f5f90b745b82a4a91204"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:140-150 | cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java:129-139 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:156-166 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:140\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a01dbe4ccd3c985076fcce8429e7fba934b732d32bdd242dbbd0edb4b1552c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/MatrixReportVisitor.java:97-107 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/MatrixReportVisitor.java:111-121 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/MatrixReportVisitor.java:125-135 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/MatrixReportVisitor.java:97\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":"cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/MatrixReportVisitor.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2409a456c307320003501591637545bed1841d6eaac6a8619eb2061d3d89b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java:123-133 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultXmlBuilder.java:125-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java:123\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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e8466b85df2aed748c21ce53038d7d8ec22a7cd20f5002a34104ea05cc32af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:195-205 | cat-core/src/main/java/com/dianping/cat/message/tree/MessageId.java:200-210 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:195\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":"lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"59597bea7776e53b5afec079bfc48c84f3da7708d8ab150832663cd0ee106289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:61-71 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:53-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:61\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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d3d49ab75d2f35585fadf228dcdfaf2b3c4ab0deddb5dcddd9b8ef5880f6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:134-144 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:128-138 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94a397857cdfc53c20cc50db7d0affac1a18a29fb9578b4340e7641f91beae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:69-79 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:50-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:69\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83676b0ade56a5a04a11336c66f97a5fa0433523f2f3beb7bc8524dff849124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:292-302 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:287-297 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9240ed671c229f879202d8fa49b7c7a1594bd8fa9338f13225cf14f882974e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:367-377 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:362-372 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:367\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c24585acae481dd7ccf2c32c4c9dc29c25f8e5bad0a84eb3bf454657e0bc79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:395-405 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:386-396 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:395\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df89cdd408dfc05d877b697516e84b0a2d5a9eb360541624cd5cc99bcf79d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:627-637 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:605-615 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:627\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"69047e1ee2a0cea8e86b286aafcc6b0a6165c75cdf77e3d78a26d20621a9e61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/config/AllReportConfigManager.java:87-97 | cat-home/src/main/java/com/dianping/cat/system/page/router/config/RouterConfigManager.java:124-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/config/AllReportConfigManager.java: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":"cat-consumer/src/main/java/com/dianping/cat/consumer/config/AllReportConfigManager.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"763fc36ac0b6dc449f44390c2813d35546e79a08a95f9c49fcd8aad4f4baea66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java:113-123 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:235-245 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"109bd8c0a17c52aff76763b7a3c096eff669574124b793202f6822d189cfe643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java:129-139 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:251-261 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java:129\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c3490d1c78f798844d99d97f7f59fd7a44ac0f64f42d6630cfd78f3295484e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/exception/AlertExceptionBuilder.java:95-105 | cat-home/src/main/java/com/dianping/cat/report/alert/exception/AlertExceptionBuilder.java:115-125 \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":"cat-home/src/main/java/com/dianping/cat/report/alert/exception/AlertExceptionBuilder.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da75d22877e3aa8940c958f37a95834237083abe9014b74dacdf202ad718a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java:128-138 | cat-home/src/main/java/com/dianping/cat/report/page/heartbeat/HistoryGraphs.java:94-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java:128\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":"cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf997188375b1a09880bbd973b3fdec929df00e1beb1e73104e291d1a59365f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/cross/display/TypeDetailInfo.java:134-144 | cat-home/src/main/java/com/dianping/cat/report/page/cross/display/TypeDetailInfo.java:149-159 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/cross/display/TypeDetailInfo.java:134\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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/display/TypeDetailInfo.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc1f7e760a5f66125b4bb5d82be5e0230c0909e7f00def0f1c4de660eca9bdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:102-112 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/LineGraphBuilder.java:117-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8793cee68775175468cbbd931933324087fb56903f66d2bbe83ebbbdca388de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:325-335 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:325-335 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:325\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0eaaabfd5f8b558cca390080c32a68de9b257a46616f20145ba083e99454d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:343-353 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:343-353 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:343\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"12688cdee91ffc7fd91f9675412cec8d18669269ef17bac6344f2cd6da0fa07e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/service/EventReportService.java:68-78 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/TransactionReportService.java:69-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/service/EventReportService.java:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/service/EventReportService.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"557aef2c02e67604ca5a15bcd6bf3a4707291cef7c2be661cf2b9ae43bdea306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportDailyGraphCreator.java:84-94 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportDailyGraphCreator.java:90-100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportDailyGraphCreator.java:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportDailyGraphCreator.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bf114f4ceca51594801017453ad1d38fe7c8a78e4d355a60f6aeae42954e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportDailyGraphCreator.java:111-121 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportDailyGraphCreator.java:117-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportDailyGraphCreator.java: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportDailyGraphCreator.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7ea3451b9674326989d9609c50c2fd0f0fccab99f516f39a8186e7059ad3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:143-153 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateHistoryGraphVisitor.java:79-89 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"391c7d8da23a54abb5e01c30e0de4372afbb98551c6d7ffd7f5240fc3080c2e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:288-299 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:302-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed227e8675c8c4f5c8f73c4ee355e876f77493d4361cb8363784326cffe5660"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucket.java:227-237 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsIndex.java:194-204 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucket.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe34548ddcdfe97fd2aa1f08d7bf343fdf2305e020bc4cdbfbdccc636854448d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsFileBuilder.java:37-47 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalFileBuilder.java:37-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsFileBuilder.java:37\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsFileBuilder.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08c12c7918e20cc44ffa60ac431fc2528671b360315276b843133cd5f8f22ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:532-542 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalIndex.java:427-437 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:532\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c74ac5d3fe65b5a4403995f43f7667c257a0f356b9f6a11a0a6e43a247b3ceb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 11): cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/BusinessReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/CrossReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/DependencyReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/EventReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/HeartbeatReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/MatrixReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/ProblemReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/StateReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/StorageReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/TopReportReloader.java:103-112 | cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/TransactionReportReloader.java:103-112 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/BusinessReportReloader.java:103\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":"cat-home/src/main/java/com/dianping/cat/report/task/reload/impl/BusinessReportReloader.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abe2cc455cfc4184ba8e93a15350955135ab07e27d7e808fa6e2836c5b6ef13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/config/AlertConfigManager.java:81-90 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/config/AlertPolicyManager.java:69-78 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/config/TopoGraphFormatConfigManager.java:76-85 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphConfigManager.java:253-262 | cat-home/src/main/java/com/dianping/cat/report/page/heartbeat/config/HeartbeatDisplayPolicyManager.java:67-76 | cat-home/src/main/java/com/dianping/cat/report/page/storage/config/StorageGroupConfigManager.java:83-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-alarm/src/main/java/com/dianping/cat/alarm/spi/config/AlertConfigManager.java:81\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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/config/AlertConfigManager.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fb79c99430204cdf19d29b930ab880b72a9793505317cb76537dd0d10e1309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): cat-core/src/main/java/com/dianping/cat/message/codec/WaterfallMessageCodec.java:855-864 | cat-core/src/main/java/com/dianping/cat/message/codec/WaterfallMessageCodec.java:884-893 | cat-home/src/main/java/com/dianping/cat/report/graph/svg/DefaultGraphBuilder.java:473-482 | cat-home/src/main/java/com/dianping/cat/report/graph/svg/DefaultGraphBuilder.java:502-511 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/WaterfallMessageCodec.java:855\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":"cat-core/src/main/java/com/dianping/cat/message/codec/WaterfallMessageCodec.java"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88f994e0e756f9502c11f5c6fd67dd2ff87d8578f654144996ded7625943691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportMerger.java:132-141 | cat-consumer/src/main/java/com/dianping/cat/consumer/problem/ProblemReportMerger.java:146-155 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:48-57 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:188-197 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportMerger.java:132\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportMerger.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"152d7c1c724cba27a5f1c62ba1653ec9ad0f8f7ff7ae8101d9f0e05ce440945d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): cat-home/src/main/java/com/dianping/cat/report/page/overload/task/DailyCapacityUpdater.java:69-78 | cat-home/src/main/java/com/dianping/cat/report/page/overload/task/HourlyCapacityUpdater.java:69-78 | cat-home/src/main/java/com/dianping/cat/report/page/overload/task/MonthlyCapacityUpdater.java:69-78 | cat-home/src/main/java/com/dianping/cat/report/page/overload/task/WeeklyCapacityUpdater.java:69-78 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/overload/task/DailyCapacityUpdater.java:69\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":"cat-home/src/main/java/com/dianping/cat/report/page/overload/task/DailyCapacityUpdater.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfd348b84fcac377ebee43ac8aa24335c3c08a09a59ed51e7021fc6456e3fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:49-58 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultSaxParser.java:50-59 | lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxParser.java:49-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:49\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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0ba16b4c17659759739e39036974c8c08b22ad94a6b3b2c51321b4e3fbcd78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java:93-102 | cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:490-499 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:498-507 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java:93\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":"cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4504da33344003447361b393867705314bcf280aff30db573ee8bb52b639d6d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/dependency/Handler.java:239-248 | cat-home/src/main/java/com/dianping/cat/report/page/storage/Handler.java:346-355 | cat-home/src/main/java/com/dianping/cat/report/page/top/Handler.java:188-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/Handler.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc720d6066f1c3570b56cb49c0a94f825dc46971352f81ce5adc772d99408bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/decorator/RuleFTLDecorator.java:38-47 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/decorator/ServerRuleFTLDecorator.java:38-47 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/decorator/RuleFTLDecorator.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb30ba01398e9454545aaed0a699ce3ce7bc883bc381b9559c28cf5452d39834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:325-334 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:378-387 \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 \u0060cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:325\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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdb214ebad44ad883056af541d1b59b7bf72d8262622e1bd0fec180de9d0d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:151-160 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultSaxParser.java:129-138 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"93affee8b58239d8a17a8e0c807cf5319e61633e72c73be41bd4e27d1a90e3a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:200-209 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultSaxParser.java:145-154 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:200\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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"902ae84c7a9571fed005b91958f4d805b39bb955ac6d62e7698694bfba2d6424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:434-443 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:442-451 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddfe2dda5924f562d501aab47f0410f7b15cb340ffe24e629c290f977fc4553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:122-131 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:117-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:122\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc56b26d6ffb01ba7c8a6886493e636a4f4e286b3cf3484260160d8d4b47ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:140-149 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:135-144 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:140\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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca123409a58a8df4fc14921701e2408b56378f69db8a8463c771b20d49e41d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/WaterfallMessageCodec.java:279-289 | cat-core/src/main/java/com/dianping/cat/message/codec/WaterfallMessageCodec.java:305-314 \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 \u0060cat-core/src/main/java/com/dianping/cat/message/codec/WaterfallMessageCodec.java:279\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":"cat-core/src/main/java/com/dianping/cat/message/codec/WaterfallMessageCodec.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4c8e8d1b83effe54afed183354ca9d5b29123f9c31c34ab9bfc8c03b8bce90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/storage/MessageBlockReader.java:56-65 | cat-hadoop/src/main/java/com/dianping/cat/hadoop/hdfs/MessageBlockReader.java:61-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-core/src/main/java/com/dianping/cat/message/storage/MessageBlockReader.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdb1b34d5e52b5c3fac4e5e855db028c72cc3566e8b3acfe5fcc495403b8705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/MessageTreeFormat.java:107-116 | lib/java/src/main/java/com/dianping/cat/util/UrlParser.java:29-38 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/MessageTreeFormat.java:107\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":"cat-core/src/main/java/com/dianping/cat/message/MessageTreeFormat.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3077d6a8881831ecf8b47da589a5f57191eb2d6afbe06c4516622b1e99185a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxMaker.java:39-48 | lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxMaker.java:135-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 \u0060lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxMaker.java:39\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":"lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxMaker.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"86280f83483d5f0e067f794783eb88c01844b56dd1772af3a0ad70285db7ecb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/status/datasource/DatabaseParserHelper.java:57-66 | cat-consumer/src/main/java/com/dianping/cat/consumer/DatabaseParser.java:55-64 \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":"lib/java/src/main/java/com/dianping/cat/status/datasource/DatabaseParserHelper.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"28eb147b122e96b4b919c3bc04addc3d571fca512ea70080bb975813738e951c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/log4j/CatAppender.java:46-55 | lib/java/src/main/java/com/dianping/cat/log4j/CatAppender.java:45-54 \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":"cat-client/src/main/java/com/dianping/cat/support/log4j/CatAppender.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a0594da2609c4c1175c26f81ff5e0b616b049cf5c0acfff4c6605e882c0b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java:202-211 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:330-339 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java:202\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventAnalyzer.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53f25c3cce0c674479c47dca452fb13044c5a46bd37e582bdc88b80512af551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/storage/builder/StorageRPCBuilder.java:41-50 | cat-consumer/src/main/java/com/dianping/cat/consumer/storage/builder/StorageSQLBuilder.java:47-56 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/storage/builder/StorageRPCBuilder.java:41\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/storage/builder/StorageRPCBuilder.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"93145d30dc8956706c5239469a9dee2310b2c193ed8b47123c2948762ae72009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:146-155 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:256-265 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:146\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d828a8e798f0a81994b9b6c045264bbd257a2da5122f4c9b180ce326ccbc6be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java:160-169 | cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java:173-182 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java:160\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":"cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d8f0d42e777b896ccac53ad1ca05328b8e5d858678b5bd72a562eecbedb8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java:304-313 | cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java:369-378 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java:304\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":"cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessAlert.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"751175028ae2d4b93a428cfbae16ae3dd6619391694029546b2d9ffb9ab7b3f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:133-142 | cat-home/src/main/java/com/dianping/cat/report/alert/transaction/TransactionAlert.java:140-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:133\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":"cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"234dba656ff9144d664f77cff7b9d8bd843b619cd427564f7c858b195c2cbe0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/event/EventDecorator.java:57-66 | cat-home/src/main/java/com/dianping/cat/report/alert/transaction/TransactionDecorator.java:57-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"cat-home/src/main/java/com/dianping/cat/report/alert/event/EventDecorator.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c99802a350777c7da17f91704ec856dc5ba279ba48c18c6a65a548bb66dc44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:222-231 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:222-231 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:222\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"48206822888a4e67ff3d5d7d52e3944783e87bdf04b5d2f5277e98b3f5ece8ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllNameMerger.java:85-94 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/AllNameMerger.java:94-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllNameMerger.java:85\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllNameMerger.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f895300ad0b98c597e053ecada5dba6b41c666a319906fd135b77258c3105d5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java:246-255 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/TransactionTrendGraphBuilder.java:272-281 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"386b9951f7b8157cb75ae9c9c119cb878d91b90246835053813801754342b556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:199-208 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:213-222 \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":"cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"da30a8b8f925d1f23f0020ae45edabb9fc756a82d5f8b61f6a2f76a3c96e8b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java:229-238 | cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java:291-300 \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":"cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62e4ec243409259e8ba50ceffada157462409eb34a99921df197d9727df07cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/jar/JarReportBuilder.java:87-96 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/utilization/UtilizationReportBuilder.java:152-161 \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":"cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/jar/JarReportBuilder.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca624adde2bb75ef572a91281d18c0b8912570c60c03496995af7ba12048b30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/transaction/DisplayNames.java:153-162 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/DisplayTypes.java:88-97 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/transaction/DisplayNames.java:153\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":"cat-home/src/main/java/com/dianping/cat/report/page/transaction/DisplayNames.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"459308cdfbd141649db816fd1d82feef5317fc598ac639f573770f48d05ae825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/ReportContext.java:57-66 | cat-home/src/main/java/com/dianping/cat/system/SystemContext.java:69-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/ReportContext.java:57\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":"cat-home/src/main/java/com/dianping/cat/report/ReportContext.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"51af477f9890164e21823ace1e0865adce1e63e2f3553cf083318391430cc669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 13): cat-home/src/main/java/com/dianping/cat/report/page/cross/service/CrossReportService.java:140-148 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/service/DependencyReportService.java:76-84 | cat-home/src/main/java/com/dianping/cat/report/page/event/service/EventReportService.java:168-176 | cat-home/src/main/java/com/dianping/cat/report/page/heartbeat/service/HeartbeatReportService.java:118-126 | cat-home/src/main/java/com/dianping/cat/report/page/matrix/service/MatrixReportService.java:140-148 | cat-home/src/main/java/com/dianping/cat/report/page/problem/service/ProblemReportService.java:143-151 | cat-home/src/main/java/com/dianping/cat/report/page/state/service/StateReportService.java:140-148 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/service/HeavyReportService.java:140-148 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/service/ServiceReportService.java:140-148 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/service/UtilizationReportService.java:139-147 | cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportService.java:168-176 | cat-home/src/main/java/com/dianping/cat/report/page/top/service/TopReportService.java:76-84 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/TransactionReportService.java:172-180 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/cross/service/CrossReportService.java:140\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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/service/CrossReportService.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18894ec40178b33763359ce9ca33ecfd4182c9e46deb258d04310d2c224e593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 13): cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java:55-63 | cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java:66-74 | cat-home/src/main/java/com/dianping/cat/report/page/heartbeat/task/HeartbeatReportBuilder.java:50-58 | cat-home/src/main/java/com/dianping/cat/report/page/matrix/task/MatrixReportBuilder.java:56-64 | cat-home/src/main/java/com/dianping/cat/report/page/problem/task/ProblemReportBuilder.java:59-67 | cat-home/src/main/java/com/dianping/cat/report/page/state/task/StateReportBuilder.java:75-83 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/HeavyReportBuilder.java:62-70 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ClientReportBuilder.java:65-73 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ServiceReportBuilder.java:70-78 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/utilization/UtilizationReportBuilder.java:82-90 | cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java:63-71 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportBuilder.java:71-79 | cat-home/src/main/java/com/dianping/cat/system/page/router/task/RouterConfigBuilder.java:57-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d1d3e662282ff90601386d003721b83cb2c2facd7929b251300007b0b8d432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java:75-83 | cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java:98-106 | cat-home/src/main/java/com/dianping/cat/report/page/matrix/task/MatrixReportBuilder.java:76-84 | cat-home/src/main/java/com/dianping/cat/report/page/problem/task/ProblemReportBuilder.java:87-95 | cat-home/src/main/java/com/dianping/cat/report/page/state/task/StateReportBuilder.java:100-108 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/HeavyReportBuilder.java:106-114 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ServiceReportBuilder.java:120-128 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/utilization/UtilizationReportBuilder.java:171-180 | cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java:95-103 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportBuilder.java:103-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab07a77c546dc2c369082290b07b9eb6df3804eec82f181c210dddf18724a91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java:91-99 | cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java:121-129 | cat-home/src/main/java/com/dianping/cat/report/page/matrix/task/MatrixReportBuilder.java:92-100 | cat-home/src/main/java/com/dianping/cat/report/page/problem/task/ProblemReportBuilder.java:103-111 | cat-home/src/main/java/com/dianping/cat/report/page/state/task/StateReportBuilder.java:118-126 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/HeavyReportBuilder.java:122-130 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ServiceReportBuilder.java:136-144 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/utilization/UtilizationReportBuilder.java:188-196 | cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java:118-126 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportBuilder.java:126-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/cross/task/CrossReportBuilder.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8beb1a535a10179a1955aff6e812dda5d006153ccce562f9dc9a075eed511af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): cat-core/src/main/java/com/dianping/cat/config/sample/SampleConfigManager.java:62-70 | cat-core/src/main/java/com/dianping/cat/config/server/ServerConfigManager.java:394-402 | cat-core/src/main/java/com/dianping/cat/config/server/ServerFilterConfigManager.java:106-114 | cat-core/src/main/java/com/dianping/cat/config/transaction/TpValueStatisticConfigManager.java:71-79 | cat-core/src/main/java/com/dianping/cat/config/AtomicMessageConfigManager.java:65-73 | cat-core/src/main/java/com/dianping/cat/config/ReportReloadConfigManager.java:72-80 | cat-home/src/main/java/com/dianping/cat/system/page/permission/ResourceConfigManager.java:94-102 | cat-home/src/main/java/com/dianping/cat/system/page/permission/UserConfigManager.java:75-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/config/sample/SampleConfigManager.java:62\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":"cat-core/src/main/java/com/dianping/cat/config/sample/SampleConfigManager.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"097fa3c2387aa6494ba7c5380d35ed0552fb12698f97bce1c098b373c9b2b7d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): cat-home/src/main/java/com/dianping/cat/report/page/cross/service/LocalCrossService.java:62-71 | cat-home/src/main/java/com/dianping/cat/report/page/event/service/LocalEventService.java:74-82 | cat-home/src/main/java/com/dianping/cat/report/page/heartbeat/service/LocalHeartbeatService.java:81-90 | cat-home/src/main/java/com/dianping/cat/report/page/problem/service/LocalProblemService.java:76-84 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/LocalTransactionService.java:62-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/cross/service/LocalCrossService.java:62\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. 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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/service/LocalCrossService.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a45059385ab8d449dcd9b142bb07b3d3ded17b77db99a15cf149bffcef0712b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/HeavyReportBuilder.java:91-99 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/jar/JarReportBuilder.java:90-98 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ServiceReportBuilder.java:105-113 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/utilization/UtilizationReportBuilder.java:155-163 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/HeavyReportBuilder.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23469fde49e7521b071e00ec202f4e527f26cd9a261b88e52c6b29c633a1936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxMaker.java:113-121 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultSaxMaker.java:30-38 | lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxMaker.java:321-329 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxMaker.java:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxMaker.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ede755f8dc62486192acbe76b1eee9b1994fe5e979c244bbee26ad922d894dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): cat-client/src/main/java/com/dianping/cat/support/servlet/CatFilter.java:146-156 | lib/java/src/main/java/com/dianping/cat/servlet/CatFilter.java:189-199 | integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/web/BaseUrlPluginTemplate.java:74-82 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-client/src/main/java/com/dianping/cat/support/servlet/CatFilter.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee2d50b4ebe2d8f6411700c775c1dae1bac30a870f41f89f1db60f16f4ce0a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessReportGroup.java:93-101 | cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:227-235 | cat-home/src/main/java/com/dianping/cat/report/page/metric/service/DefaultBaselineService.java:135-143 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessReportGroup.java:93\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":"cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessReportGroup.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e6f501265f6a26fdb8a2406e3300c2b6fbb4d011785e4551b50545f08d3bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/cache/TransactionReportVistor.java:55-63 | cat-home/src/main/java/com/dianping/cat/report/page/cross/display/MethodInfo.java:159-167 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/DisplayNames.java:80-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/cache/TransactionReportVistor.java:55\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":"cat-home/src/main/java/com/dianping/cat/report/page/cache/TransactionReportVistor.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"846663480ae142490861643470e52f573eb1872f1bb97092a9c9b45dd46aef64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/dependency/Handler.java:227-235 | cat-home/src/main/java/com/dianping/cat/report/page/storage/Handler.java:327-335 | cat-home/src/main/java/com/dianping/cat/report/page/top/Handler.java:176-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/Handler.java:227\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/Handler.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"44815dd8603765ae00fb5f1bdd72f2a3a7beb1d749bfb6deeba6edcea95693be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/decorator/ProjectDecorator.java:45-55 | cat-home/src/main/java/com/dianping/cat/report/page/business/graph/BusinessGraphCreator.java:153-161 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-alarm/src/main/java/com/dianping/cat/alarm/spi/decorator/ProjectDecorator.java:45\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. 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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/decorator/ProjectDecorator.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8caaea9f2da818bb0a65e96e05e93466464ff71c051c0e93f180015d79eba6eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:119-127 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:213-221 \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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6f5b8121b91a8607abe7cca8b2ad5a9017758efc9bf76c2cb669e3c26c4d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:230-238 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultSaxParser.java:169-177 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:230\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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43e02ebe662e734d79fb1ec63b055d142007c0367470233b43f41cf082e7292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java:101-109 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultXmlBuilder.java:103-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java:101\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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultXmlBuilder.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ad67a8e77a258aa8fed72058e7191e34d859ca423ffef6d6314b99466ee10f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:185-193 | cat-core/src/main/java/com/dianping/cat/message/tree/MessageId.java:190-198 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java:185\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":"lib/java/src/main/java/com/dianping/cat/message/internal/MessageId.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd10cd9099cdbcb8784e479cd83cf41e5746c77b9581521f32668736866e606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:173-181 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:171-179 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:173\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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f948c6edb94704fd479438bf7187e5f16f05e1138e00b23bb09cbfe3703353d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:238-246 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:236-244 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:238\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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d8f1f508836c233901a7db5085918cfe255c6a5b1534ae536e0dda097b9684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:265-273 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:263-271 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12626902679bf85adc7de628a0ada50908872f17f474f17f1796015725f9be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:322-330 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:329-337 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b18670797a33ae3ace4985e89015962e3aca5a4e7ec0e96dd954bea304667d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:355-363 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:362-370 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:355\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":"cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73bd97e436c4c9a1a5c9627368c1a76d33396a46cb3490c4cf571030d12ff50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/status/datasource/c3p0/C3P0InfoCollector.java:78-86 | lib/java/src/main/java/com/dianping/cat/status/datasource/druid/DruidInfoCollector.java:152-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/status/datasource/c3p0/C3P0InfoCollector.java:78\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":"lib/java/src/main/java/com/dianping/cat/status/datasource/c3p0/C3P0InfoCollector.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef618829a794577515ec76ee29ec86b0c5911d6c4d9460426bccf6f0fd3c77a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/servlet/CatFilter.java:169-177 | lib/java/src/main/java/com/dianping/cat/servlet/CatFilter.java:212-220 \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":"cat-client/src/main/java/com/dianping/cat/support/servlet/CatFilter.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a90d9c1eb52d82a716ea3af7dce4d6461ffca127dcb45a8b58287cad7d1447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Files.java:62-70 | lib/java/src/main/java/com/dianping/cat/util/Files.java:79-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Files.java:62\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":"cat-client/src/main/java/com/dianping/cat/support/Files.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e40e079f929bbe77ce1cba9177d1296b1d4b139f9644e669feb7646d836c92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Files.java:102-110 | lib/java/src/main/java/com/dianping/cat/util/Files.java:119-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Files.java:102\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 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":"cat-client/src/main/java/com/dianping/cat/support/Files.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05da04c4783af35ec7e75a1abcc17bf0be3f6136e9016c2d9297b57c003324b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Splitters.java:114-122 | lib/java/src/main/java/com/dianping/cat/util/Splitters.java:52-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Splitters.java:114\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":"cat-client/src/main/java/com/dianping/cat/support/Splitters.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b070edb552e0b5c4e706cf8cd6e7ec6362cb6ff101f41edb385ad39f53c3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/cross/CrossAnalyzer.java:138-146 | cat-consumer/src/main/java/com/dianping/cat/consumer/cross/CrossAnalyzer.java:165-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/cross/CrossAnalyzer.java: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":"cat-consumer/src/main/java/com/dianping/cat/consumer/cross/CrossAnalyzer.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5d6900f0c18146ac7ad9a63275938fff7fb5a5f4e79017d684e794520c0945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:226-234 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:352-360 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:226\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce75b2bc9053f05afe91246e3dc9b508a23354abd0f771964e353a16dbc10d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:277-285 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:314-322 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:277\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94d31ca2cae9757e4d54ee04297021b99f13f2091f4705f2244ceb979dccc51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:193-201 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:228-236 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:193\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"629ac320d00e83fe81dc89856b71764700e850461b36f1332af71823152b6a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:188-196 | cat-home/src/main/java/com/dianping/cat/report/alert/transaction/TransactionAlert.java:195-203 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:188\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":"cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"01aeb2e8f9113b81b5edfa9603993ddde336a62409aa172b424243aee223f635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:384-392 | cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:401-409 \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":"cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dd1a331ecf37ba7087a87546cebc68ca13e568b86146232bd76bdb87085230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/business/graph/BusinessGraphCreator.java:382-390 | cat-home/src/main/java/com/dianping/cat/report/page/business/graph/BusinessGraphCreator.java:418-426 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/business/graph/BusinessGraphCreator.java: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. 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":"cat-home/src/main/java/com/dianping/cat/report/page/business/graph/BusinessGraphCreator.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6fcca2d3d2b49a7b6df4dbcaafefc7c8fe5c78700365dffc9b62b800d3cfae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/business/service/BusinessReportService.java:66-75 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/service/JarReportService.java:69-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/business/service/BusinessReportService.java:66\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":"cat-home/src/main/java/com/dianping/cat/report/page/business/service/BusinessReportService.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"13244195b1d2b33a5fbd8d135b6c483cd68079aae623dbf6b3225f4b805c2601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/cross/display/HostInfo.java:155-163 | cat-home/src/main/java/com/dianping/cat/report/page/cross/display/MethodInfo.java:176-184 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/cross/display/HostInfo.java:155\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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/display/HostInfo.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e2b28bf70e0beb39147997a69af56afa8483e9bb61d98698e2df39941408dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/cross/display/NameDetailInfo.java:121-129 | cat-home/src/main/java/com/dianping/cat/report/page/cross/display/TypeDetailInfo.java:132-140 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/cross/display/NameDetailInfo.java:121\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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/display/NameDetailInfo.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"90abc9db497a5e81a2cc1fb509f942a42f1385135c2789eac532d0bd96212653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:83-91 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/LineGraphBuilder.java:80-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:83\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c92766c77db67d76be9675663051c53c2dcf03757544676840931541d6fb0b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopExceptionExclude.java:54-62 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopExceptionExclude.java:54-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopExceptionExclude.java:54\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopExceptionExclude.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"783a52ce7b8eb9ae9e87343068ac4278b9313f61e1077794dc2ff2f942df7872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:297-305 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:297-305 \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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"956d03c037ffa23475ff1c0f559879eb6ca536e359d01cfa4bf4cc7110fa7c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllMachineMerger.java:100-108 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/AllMachineMerger.java:135-143 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllMachineMerger.java:100\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/AllMachineMerger.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc56e2560174cad46d9ba91c33c64ed28fc747d0f84c9fee26bfdbd095ada5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/PieGraphChartVisitor.java:57-65 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/PieGraphChartVisitor.java:57-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/PieGraphChartVisitor.java:57\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/PieGraphChartVisitor.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee98a7a3e9853557a664ebdb74acf6cd7b92dd2e434cd919e8fadf4c7cbdf01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:153-161 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:169-177 \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":"cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a4a5af7995ba6668ac447b7cbd452bd6a00ea8d08c01f4bdbe21c911540f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:290-299 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:311-319 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:290\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bd3fad5a1d94953b87c8ac1a4811df89237039ace1cce630fc3fca9a2337f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/HourlyLineChartVisitor.java:73-81 | cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/HourlyLineChartVisitor.java:96-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/HourlyLineChartVisitor.java:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/HourlyLineChartVisitor.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"79378f2a0e8a46998e5a30e379ffda4c7208efc35c075410d4c66416811620dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/problem/GroupLevelInfo.java:52-60 | cat-home/src/main/java/com/dianping/cat/report/page/problem/ThreadLevelInfo.java:60-68 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/problem/GroupLevelInfo.java:52\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":"cat-home/src/main/java/com/dianping/cat/report/page/problem/GroupLevelInfo.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d3a2a94bbc5a22a17608aceb84273568187735ee2e8f7a8dc5db8bc8ad9af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/problem/GroupLevelInfo.java:73-81 | cat-home/src/main/java/com/dianping/cat/report/page/problem/ThreadLevelInfo.java:87-95 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/problem/GroupLevelInfo.java:73\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":"cat-home/src/main/java/com/dianping/cat/report/page/problem/GroupLevelInfo.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6d372f96027970048f94f79a5f526996491557abad20fa10bf0f3dfe77a8e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:274-284 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:319-327 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:274\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":"cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9e06045f28d0c9de8141377e82b9c3ba95b3eb5c69bc78a6a6ba454a1ccf0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucket.java:181-189 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsIndex.java:148-156 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucket.java:181\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsBucket.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d7a52399315ab2700deb3e32618610edaed2bef866718afb95aa6b14b73838"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMappingManager.java:77-85 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalTokenMappingManager.java:68-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMappingManager.java:77\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsTokenMappingManager.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b79e747fa7fe71593c7866d4896217ace113bd806870802ba126eea0b82da0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:67-74 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultSaxParser.java:68-75 | lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxParser.java:67-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:67\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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e654a7277817a9b5f3c23e57fac429c021d30ed35cf352ff2038d9064a57685b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:215-222 | lib/java/src/main/java/com/dianping/cat/configuration/property/transform/DefaultSaxParser.java:160-167 | lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxParser.java:361-368 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java:215\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":"lib/java/src/main/java/com/dianping/cat/configuration/client/transform/DefaultSaxParser.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba78b061ff89009ce0ea83d764e75bca6d5f61c8fe148f39d82b80be602940b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): cat-consumer/src/main/java/com/dianping/cat/consumer/state/StateReportMerger.java:69-76 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:140-147 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateHistoryGraphVisitor.java:76-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/state/StateReportMerger.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec85121e8dc0e0949b90079ace55aaf2c625d72ba04cc6e2b16d4e93e93026d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/message/context/MessageIdFactory.java:104-111 | lib/java/src/main/java/com/dianping/cat/message/internal/MessageIdFactory.java:170-177 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/message/context/MessageIdFactory.java:104\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":"cat-client/src/main/java/com/dianping/cat/message/context/MessageIdFactory.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5222d6b2384671a3cd27ef948a4073887a40678fb2dc3b7e4b9602af987a4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMessageTreeEncoder.java:42-49 | cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMetricBagEncoder.java:37-44 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-client/src/main/java/com/dianping/cat/message/encoder/PlainTextMessageTreeEncoder.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b402fb2f79108e24f47f465a6718cfdae6e336d23ac04b01b26939d8ad1bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/EscapingBufferWriter.java:28-35 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/EscapingBufferWriter.java:26-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/EscapingBufferWriter.java:28\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":"cat-core/src/main/java/com/dianping/cat/message/codec/EscapingBufferWriter.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf90d05a527613cbc103d62a4e0feab1df910e8d76e45b0ece17f595fff91e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxMaker.java:62-69 | lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxMaker.java:87-94 \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":"lib/java/src/main/java/com/dianping/cat/status/model/transform/DefaultSaxMaker.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"401307b3d1b9a6494068a66ebb420fc921b474112cf972f6e1c810b6a6e00496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Files.java:123-131 | cat-client/src/main/java/com/dianping/cat/support/Files.java:141-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 \u0060cat-client/src/main/java/com/dianping/cat/support/Files.java:123\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":"cat-client/src/main/java/com/dianping/cat/support/Files.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd0af5da36d4af6cf28b51e15f97e96b179fefaf660058bf0e80044608be3cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Threads.java:448-455 | lib/java/src/main/java/com/dianping/cat/util/Threads.java:382-389 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-client/src/main/java/com/dianping/cat/support/Threads.java:448\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":"cat-client/src/main/java/com/dianping/cat/support/Threads.java"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdbef80d02bbd274e3d6b27db11db17fe5db7d5824e53e476fa0b432ab638ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/report/service/BaseRemoteModelService.java:87-94 | cat-home/src/main/java/com/dianping/cat/report/page/logview/service/RemoteLogViewService.java:55-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/report/service/BaseRemoteModelService.java: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":"cat-core/src/main/java/com/dianping/cat/report/service/BaseRemoteModelService.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"106f6b45db7b9b1b30b8533d99f632ed478bab20d91b0730fc83304381d85d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessReportGroup.java:112-119 | cat-home/src/main/java/com/dianping/cat/report/page/business/task/BusinessPointParser.java:62-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessReportGroup.java:112\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":"cat-home/src/main/java/com/dianping/cat/report/alert/business/BusinessReportGroup.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af73cb1ce1b2ed18cf3f95f3ec06ef718403f6a91596a0bb80068bb67d18e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:245-252 | cat-home/src/main/java/com/dianping/cat/report/alert/transaction/TransactionAlert.java:250-257 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:245\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb05d93a7d6613198c1c652d8883fdff7c3f6862ff642cee2d6acca5168a7f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:160-167 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/LineGraphBuilder.java:152-159 \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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8e761121eccafa656facbd080a8a32211becff4bf105bb6b7fc5810f006555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphBuilder.java:116-123 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphBuilder.java:131-138 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphBuilder.java:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphBuilder.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d633df8e52ab6df9a0dc261f2a0b811f69d23ce18ce07fcb5f6eb8e34864ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:114-121 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:114-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:114\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae16564a77d88faffe8d1643dc1b62bff37deca826e52a2fe35efd7b2f459d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:142-149 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:142-149 \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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48ddd2d32cc7fcf9cd1f814f428a6fb05ca15421e809338fe7f60752dcd6d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java:76-83 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/TransactionTrendGraphBuilder.java:79-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"806eef6be8509a8279e94fc045c304f12e4fd260418779936aaecf9cdde7e44b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/problem/GroupLevelInfo.java:113-121 | cat-home/src/main/java/com/dianping/cat/report/page/problem/ThreadLevelInfo.java:150-157 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/problem/GroupLevelInfo.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bfc77e927fce29fd3972cad0e738e8916619dfeb9369084e9d24da02b9d271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ServiceReportBuilder.java:89-96 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/utilization/UtilizationReportBuilder.java:122-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ServiceReportBuilder.java:89\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":"cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ServiceReportBuilder.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d0eb808b913505d744e8c403030a8da95445ee5bc5e7b3a5f91353780597b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/TransactionReportService.java:267-274 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/TransactionReportService.java:287-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/TransactionReportService.java:267\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":"cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/TransactionReportService.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d15a218cddf5a292a5733672d641556bf68700fa1b7a1850eee976c2fc6993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/system/page/router/config/RouterConfigHandler.java:268-275 | cat-home/src/main/java/com/dianping/cat/system/page/router/task/RouterConfigBuilder.java:57-64 \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":"cat-home/src/main/java/com/dianping/cat/system/page/router/config/RouterConfigHandler.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a54b32b21c0b88212c6eb746242ece36211961566d218aa4b4efba457c63628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/web/JettyUrlPluginTemplate.java:55-62 | integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/web/TomcatUrlPluginTemplate.java:52-59 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/web/JettyUrlPluginTemplate.java:55\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":"integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/web/JettyUrlPluginTemplate.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade66e4962c042ebc1cac9f46c29a29f6ca805061d4c612b74d9c2ef5d9631a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): cat-home/src/main/java/com/dianping/cat/report/page/business/service/LocalBusinessService.java:85-91 | cat-home/src/main/java/com/dianping/cat/report/page/cross/service/LocalCrossService.java:78-84 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/service/LocalDependencyService.java:77-83 | cat-home/src/main/java/com/dianping/cat/report/page/event/service/LocalEventService.java:89-95 | cat-home/src/main/java/com/dianping/cat/report/page/heartbeat/service/LocalHeartbeatService.java:97-103 | cat-home/src/main/java/com/dianping/cat/report/page/matrix/service/LocalMatrixService.java:77-83 | cat-home/src/main/java/com/dianping/cat/report/page/problem/service/LocalProblemService.java:91-97 | cat-home/src/main/java/com/dianping/cat/report/page/state/service/LocalStateService.java:82-88 | cat-home/src/main/java/com/dianping/cat/report/page/storage/service/LocalStorageService.java:83-89 | cat-home/src/main/java/com/dianping/cat/report/page/top/service/LocalTopService.java:83-89 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/LocalTransactionService.java:97-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/business/service/LocalBusinessService.java:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/business/service/LocalBusinessService.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaca934bd395f145be39eed9847abbbb58b61a39b070264e8cf5f8f530cf7014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java:58-64 | cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java:73-79 | cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportMerger.java:49-57 | cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportMerger.java:86-94 | cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportTypeAggregator.java:49-55 | cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportTypeAggregator.java:66-72 | cat-home/src/main/java/com/dianping/cat/report/page/event/DisplayNames.java:73-81 \u2014 there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java:58\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c8b1c4adc5ea62fa84a492da8fae2d0787b0f52d48a3ce31b29a2541397e18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:159-165 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:192-198 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:213-219 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:229-235 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:248-254 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"778ad17e5dbfe791b2db7b9a7a4f9c8db7ef5fd3949a6a9dfef007a37aa17a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java:113-119 | cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:185-191 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:183-189 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27c444eabe5743b7c12b891d3391a372be6f5545ae495395983984df96ea095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cat-consumer/src/main/java/com/dianping/cat/consumer/state/StateAnalyzer.java:82-88 | cat-consumer/src/main/java/com/dianping/cat/consumer/state/StateAnalyzer.java:91-97 | cat-consumer/src/main/java/com/dianping/cat/consumer/state/StateAnalyzer.java:100-106 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/state/StateAnalyzer.java:82\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/state/StateAnalyzer.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fcfabd0098f4b9baaf3b5aa295490a1e5b2219167f9956690672ff18977884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportCountFilter.java:56-62 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportCountFilter.java:82-88 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/DisplayNames.java:92-99 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportCountFilter.java:56\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportCountFilter.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ba276bb06653f64b4d069ad06192ab9d508f31159933c138555e4d04f201d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:213-219 | cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java:209-215 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:229-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:213\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4215a26bb7f867e314c4261227f4a03ec8710bb3067ef9aad8c22be6ddc92b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/common/CommonPluginTemplate.java:49-55 | integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/spring/SpringServicePluginTemplate.java:39-45 | integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/web/FilterPluginTemplate.java:45-51 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/common/CommonPluginTemplate.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccee3f4c38d212448192e4dfda5f9a2c44e442a2fbffa66aca93a6758f17661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/sender/MailSender.java:70-77 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/sender/SmsSender.java:66-72 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-alarm/src/main/java/com/dianping/cat/alarm/spi/sender/MailSender.java:70\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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/sender/MailSender.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0ea36700d9a193be2aabed8e4e5758dbc480c03d31e8542540eb5c8d538cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/component/DefaultComponentContext.java:87-93 | cat-client/src/main/java/com/dianping/cat/component/DefaultComponentContext.java:100-106 \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 \u0060cat-client/src/main/java/com/dianping/cat/component/DefaultComponentContext.java: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":"cat-client/src/main/java/com/dianping/cat/component/DefaultComponentContext.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4138155ba4fca008c642ca296239d44a6e33a1db5708056049716ec364dd01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/message/io/ChannelManager.java:62-68 | lib/java/src/main/java/com/dianping/cat/message/io/TcpSocketSender.java:74-80 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/java/src/main/java/com/dianping/cat/message/io/ChannelManager.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdaa34ee6b9bae2e60d691d60fdbb62f6926678b07f33ce2973e236db59d631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:308-314 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:303-309 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"466e72de2ec11d5985149b57d6c3b61b9ca7d0301f5ff607aa808186edbde30a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/dump/LocalMessageBucketManager.java:130-136 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/clean/LogviewProcessor.java:96-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/dump/LocalMessageBucketManager.java:130\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/dump/LocalMessageBucketManager.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"69729c9829c4176cdc41d8f9c9221709539ccdcebddfb8bba0b1c30f7390359b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/problem/DefaultProblemHandler.java:51-57 | cat-consumer/src/main/java/com/dianping/cat/consumer/problem/DefaultProblemHandler.java:95-101 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/problem/DefaultProblemHandler.java:51\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/problem/DefaultProblemHandler.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ac2597a566be8bd0de600c4acb8427cf9a8171e036321e91ce1053fffee890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/storage/StorageDelegate.java:87-93 | cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportService.java:59-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/storage/StorageDelegate.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d49a88d063aa2bd71de260ada4e15103dfdac57e03dae41f34865334da970f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:444-450 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:582-588 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java:444\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionAnalyzer.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec56d6f5159f98e7357963a19b1125d5666d0aeeb61c29bbae39fa8c4eacde9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:178-184 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:213-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java:178\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionStatisticsComputer.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb21c792d3f3dee3d4ecc2a6d2b9ff44c1fe96415dc8ac550dcac4fae6068c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/helper/TimeHelper.java:57-63 | cat-core/src/main/java/com/dianping/cat/helper/TimeHelper.java:187-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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":"cat-core/src/main/java/com/dianping/cat/helper/TimeHelper.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9575055542e3681e0742bacc3a0782f3f0628fd41e32834c4beb9b3d879740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/helper/TimeHelper.java:124-130 | cat-core/src/main/java/com/dianping/cat/helper/TimeHelper.java:155-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-core/src/main/java/com/dianping/cat/helper/TimeHelper.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0a0a0103ebb736a269a1a6667a5c96f482757f2442b06f0bc2549dd785d78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:102-108 | cat-home/src/main/java/com/dianping/cat/report/alert/transaction/TransactionAlert.java:106-112 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:102\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":"cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"206add3d810758bdb5873f738bf5cc15baabe461ff74e7df31e78c9940bd1aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:151-157 | cat-home/src/main/java/com/dianping/cat/report/alert/transaction/TransactionAlert.java:158-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"078d8fb2f06ee9fcff4d9b7663c6ca4892610023d091936b008706da03134d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:165-171 | cat-home/src/main/java/com/dianping/cat/report/alert/transaction/TransactionAlert.java:172-178 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java:165\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":"cat-home/src/main/java/com/dianping/cat/report/alert/event/EventAlert.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"46197c36335a7bd8a76e45b7bd6b716f70ff5b512b8f2846e00ceed17ad7bfef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:188-194 | cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:216-222 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:188\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":"cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b974d0004d678e9db5ffd8f24415d1400cf9b8ba2f9b4e011f9b36ed4c99842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/cross/display/NameComparator.java:43-49 | cat-home/src/main/java/com/dianping/cat/report/page/cross/display/TypeComparator.java:57-63 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/cross/display/NameComparator.java:43\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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/display/NameComparator.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae580daf749ca22d6626aec28c80f6196ef2c72cfb83f58fde800b4587d8a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/cross/Handler.java:119-125 | cat-home/src/main/java/com/dianping/cat/report/page/cross/Handler.java:153-159 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/cross/Handler.java:119\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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/Handler.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3569fb44bd5aa9c160b76ee949f6c218d5b89173ad5f8719829eaddaec80b6ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:73-79 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/LineGraphBuilder.java:70-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea8dd244026fa80d1884e5ff267f997e9b9e956e386918a7ea235f423e2ef67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:141-147 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/LineGraphBuilder.java:142-148 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java:141\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/LineGraphBuilder.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0082c899a94738cc3cc30e3d8d5411d1346027bd77156c7d6284c747d940e43b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphManager.java:106-112 | cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphManager.java:142-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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphManager.java:106\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/graph/TopologyGraphManager.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad83b2c7460dec47bb141cd84a92afd71da6255c13de7faf406b935b1beba81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:103-109 | cat-home/src/main/java/com/dianping/cat/report/page/top/TopMetric.java:103-109 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java:103\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":"cat-home/src/main/java/com/dianping/cat/report/page/dependency/TopMetric.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9d81841763611b13370e880f8dba1bd573399d3de0d42fb370f1c60b30f023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/state/StateDistirbutionVisitor.java:68-74 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateDistirbutionVisitor.java:102-108 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/state/StateDistirbutionVisitor.java:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/state/StateDistirbutionVisitor.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b905ca253bfc29af5e2a2214f74b74614ba329042ee65f6b59a6fc4f0f508e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsIndex.java:285-291 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalIndex.java:473-479 \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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/hdfs/HdfsIndex.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfe6d9a8959cd39b713cc50f97fad126a851722cef55bb824e31dff8be18a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:313-319 | cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalIndex.java:215-221 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java:313\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":"cat-hadoop/src/main/java/org/unidal/cat/message/storage/local/LocalBucket.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"561dd6625c9d41884b71edc6b7a9c230eaf940f46833112b93bb999782d6d5b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:224-229 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:238-243 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:252-257 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:266-271 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:280-285 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java:224\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. 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":"cat-home/src/main/java/com/dianping/cat/report/page/state/StateDisplay.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8855a947fcd4fc780b1a2284d35fb52e8e80b3daf29d27c84ca9b76341f9103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:55-60 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:103-108 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:150-155 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:197-202 \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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f852b58f6c5f4c77f703e0b5f18e6656da15ce975d8208eddfc56cfa7b91728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java:142-147 | cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:250-255 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:248-253 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d63e4ef053111f59747188e38fc7516b0bed676615702885520f72fe694d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java:59-64 | cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/ProblemTrendGraphBuilder.java:53-58 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/TransactionTrendGraphBuilder.java:62-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/EventTrendGraphBuilder.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1144c45d1ae79ce17e752c07ded80dc610e48a8fdc0e724e80c37ab12fb45d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java:45-50 | cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllMachineMerger.java:51-56 | cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/StorageOperationFilter.java:52-57 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java:45\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":"cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"107271c02975a365ca616767203e3aa99e65120910ac8d163e1ec29227558f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/task/cmdb/ProjectUpdateTask.java:244-249 | cat-home/src/main/java/com/dianping/cat/report/task/cmdb/ProjectUpdateTask.java:262-267 | cat-home/src/main/java/com/dianping/cat/report/task/cmdb/ProjectUpdateTask.java:291-296 \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":"cat-home/src/main/java/com/dianping/cat/report/task/cmdb/ProjectUpdateTask.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2f0cce9dd3123d246e8a6488945d219f397e306a81515c423f1de05e1229ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:109-114 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:203-208 \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 \u0060cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:109\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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3ca76978f19b556c2ef02a40839d94b987d22eccb0a4e8727dcbd49192a816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:233-238 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:266-271 \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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f697bcbb352a432bc2a68f4e9d3af91cf0a67f22d0a7c318e00d654f7e28d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/HtmlMessageCodec.java:122-127 | cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:340-345 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-core/src/main/java/com/dianping/cat/message/codec/HtmlMessageCodec.java:122\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":"cat-core/src/main/java/com/dianping/cat/message/codec/HtmlMessageCodec.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bf04973f059837b0c59414970fac90fbe686ae43ff7fb60334f5c9f84264cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/HtmlMessageCodec.java:196-201 | cat-core/src/main/java/com/dianping/cat/message/codec/HtmlMessageCodec.java:270-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-core/src/main/java/com/dianping/cat/message/codec/HtmlMessageCodec.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0546bf5b8d2afc43f58ab407f09293bea9d0e74ddcabbfd73e47ae349f2a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/java/src/main/java/com/dianping/cat/status/jvm/JvmInfoCollector.java:66-71 | lib/java/src/main/java/com/dianping/cat/status/AbstractCollector.java:28-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/java/src/main/java/com/dianping/cat/status/jvm/JvmInfoCollector.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d489a30ce4fd4f3408d8ce887fe6b957b2189302a9eeb614b0a7594889cec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-client/src/main/java/com/dianping/cat/support/Splitters.java:46-51 | cat-client/src/main/java/com/dianping/cat/support/Splitters.java:66-71 \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 \u0060cat-client/src/main/java/com/dianping/cat/support/Splitters.java:46\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":"cat-client/src/main/java/com/dianping/cat/support/Splitters.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9694344cbbc69a0d580b4211f35f5f39e45cece579ffcbaa345eb9ab6f2800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/dependency/DependencyAnalyzer.java:215-220 | cat-consumer/src/main/java/com/dianping/cat/consumer/dependency/DependencyAnalyzer.java:238-243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/dependency/DependencyAnalyzer.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c970ca5eb35c8673cb7de609172341e334ff62335a37fef21bc1175a18b35b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/GraphTrendUtil.java:29-34 | cat-consumer/src/main/java/com/dianping/cat/consumer/GraphTrendUtil.java:50-55 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/GraphTrendUtil.java:29\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/GraphTrendUtil.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8728c545617eb4e3bfbe5104d022c2cdbb6cadc08a2495ae3f0126b6b1336a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java:302-307 | cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java:313-318 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/alert/heartbeat/HeartbeatAlert.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efd4ffbb239c17d9e39434ee0fba5dfcaaa3bdcd4ae2b66704596f0052de298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:167-172 | cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:215-220 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java:167\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":"cat-home/src/main/java/com/dianping/cat/report/alert/spi/config/BaseRuleConfigManager.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16f2be7d19756b0799a72cc0103f9bf4ba7d5855248df885e0b106bf0bdc97d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/cross/Handler.java:132-137 | cat-home/src/main/java/com/dianping/cat/report/page/cross/Handler.java:166-171 \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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/Handler.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d3406f0979aadc9942ceff14e1ae11677415ca2d87e14c933d96a06cd68574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/DisplayNames.java:97-102 | cat-home/src/main/java/com/dianping/cat/report/page/event/DisplayTypes.java:74-79 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/DisplayNames.java:97\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/DisplayNames.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b4008d443e13a83da6d219d144a1050eefc29e6eda827353ea2beda1470950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:173-179 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java:188-193 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java:173\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b1227fbd450f7dc060fc7f919f840e0034858bec15012b9c2e99ed95c7b15e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/DetailStatistics.java:226-231 | cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/ProblemStatistics.java:246-251 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/DetailStatistics.java:226\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":"cat-home/src/main/java/com/dianping/cat/report/page/problem/transform/DetailStatistics.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cff26c19626178deb2a96f7cb859921200c6694515c2e6c231621609fc385a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/HeavyReportMerger.java:59-64 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/HeavyReportMerger.java:70-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/heavy/HeavyReportMerger.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3218ba9c6a4cd5135b78c0977e7f2dd6d84dbd1e2c4786ca05ee7334c52d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java:131-136 | cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java:156-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebf0fbd232df0d01605a5e5fc9c4a67014b87c35af09a705b16e8aea1d9f431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java:100-105 | cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllMachineMerger.java:80-85 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java:100\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":"cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacdf1428e5e0c8700510bc628fb80a2216637f769d74a13aff0f3fbea8177a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/remote/http/HttpClientPluginTemplate.java:96-101 | integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/remote/http/OkHttpClientPluginTemplate.java:83-88 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/remote/http/HttpClientPluginTemplate.java:96\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":"integration/javaagent-client-agent/cat-client-plugin/src/com/qbao/cat/plugin/remote/http/HttpClientPluginTemplate.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc218aba3d69ad6a23bedf3f3013c70d34aebde430f0af1b817b1c69a55e07ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java:154-158 | cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java:166-170 | cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java:178-182 | cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:283-287 | cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:307-311 | cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:340-344 | cat-core/src/main/java/com/dianping/cat/message/codec/NativeMessageCodec.java:367-371 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:281-285 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:314-318 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:347-351 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/NativeMessageCodec.java:374-378 \u2014 there are 11 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 11 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-client/src/main/java/com/dianping/cat/message/encoder/NativeMessageTreeEncoder.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6a30b4d064964f930d4a34868caee28775118ae548e7192af40e93ec45fb43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:121-126 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:137-142 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:162-167 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:177-182 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:192-197 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:207-211 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:246-251 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:261-266 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:276-281 | cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:297-302 \u2014 all 10 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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java:121\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/build/ComponentsConfigurator.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a778c56b4a94113db626dea08ec244aba4534b724c72546850922262ed9afcc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:61-65 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:156-160 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:316-320 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:369-373 \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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7473bad7d38db7ec471964d18e301b6afad1b0b909f4127f8de6c62bea62b370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java:56-60 | cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllMachineMerger.java:65-69 | cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/StorageOperationFilter.java:63-67 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/storage/transform/AllDomainMerger.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7844344c377cbe1934cdf4bd03d978e02b30616f78e384e30d08f99cca05f60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/csharp/src/CatClient/Message/Spi/Codec/PlainTextMessageCodec.cs:84-88 | lib/csharp/src/CatClient/Message/Spi/Codec/PlainTextMessageCodec.cs:89-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/src/CatClient/Message/Spi/Codec/PlainTextMessageCodec.cs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2e1751dcacd51e2965593d4ed9b2988bba97ce063bdf1db909a8fe79185e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:405-409 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:437-441 \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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d8cc99cf5bfc92328612e844ff75ba90b187dc4ac4e487e87d23ae216ea4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:592-596 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:607-611 \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 \u0060cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java:592\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. 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":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/rule/RuleType.java"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"007150b4d2326cbe270c21745add03ccea4ce13ef9839d4a262fd393dd7a8a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-alarm/src/main/java/com/dianping/cat/alarm/spi/spliter/DXSpliter.java:36-40 | cat-alarm/src/main/java/com/dianping/cat/alarm/spi/spliter/WeixinSpliter.java:36-40 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-alarm/src/main/java/com/dianping/cat/alarm/spi/spliter/DXSpliter.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c0318d2f6d3635a691da35c2e63a0777d8789771205d1578f012ca8f473cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java:107-111 | lib/java/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java:102-106 \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":"cat-core/src/main/java/com/dianping/cat/message/codec/PlainTextMessageCodec.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4037637fbf84384b117fe0927c96211889c9c15ff22e9418949f66f8079f35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/dependency/DependencyReportMerger.java:38-42 | cat-consumer/src/main/java/com/dianping/cat/consumer/dependency/DependencyReportMerger.java:48-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/dependency/DependencyReportMerger.java:38\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/dependency/DependencyReportMerger.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ca1794b986d2d5be769745310f122542c08eb9f07ef6f2169795fe30bf9b30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:215-219 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:341-345 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:215\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e483d2b37c3ebecf2e6d392f55827da88e9b98f3df8e894e792d96f39d44c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:267-271 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:304-308 \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 \u0060cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java:267\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":"cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportMerger.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"46487d16bcc4291f9a0c71801ec7dd87e5db1462afbd3f9f2007b8a47ba7084a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/alert/summary/build/AlertInfoBuilder.java:65-69 | cat-home/src/main/java/com/dianping/cat/report/alert/summary/build/AlertInfoBuilder.java:93-97 \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 \u0060cat-home/src/main/java/com/dianping/cat/report/alert/summary/build/AlertInfoBuilder.java:65\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":"cat-home/src/main/java/com/dianping/cat/report/alert/summary/build/AlertInfoBuilder.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"938c2ab6b6cddeccd805af194ce87ae7c18cea9938b16985e534c369abebeeff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/DistributionDetailVisitor.java:90-94 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/DistributionDetailVisitor.java:90-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/DistributionDetailVisitor.java:90\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/DistributionDetailVisitor.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"204f4b8fde1f4bea00b8204fd0ce573a4c8882ee5a6d1a337c7bd171397a0416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/transform/PieGraphChartVisitor.java:73-77 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/transform/PieGraphChartVisitor.java:73-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/transform/PieGraphChartVisitor.java:73\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":"cat-home/src/main/java/com/dianping/cat/report/page/event/transform/PieGraphChartVisitor.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"453d5c7a7f1fe8b95e90289befbd59da83c8c18a248b824e0081be76c94962c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/state/StateHourlyGraphVisitor.java:70-74 | cat-home/src/main/java/com/dianping/cat/report/page/state/StateHourlyGraphVisitor.java:88-92 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cat-home/src/main/java/com/dianping/cat/report/page/state/StateHourlyGraphVisitor.java:70\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":"cat-home/src/main/java/com/dianping/cat/report/page/state/StateHourlyGraphVisitor.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eaf00d8c2fdf8927b1ddcde60c0dbabe3bdb1db083fb28fc977ca24ca12f2e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ClientReportStatistics.java:52-56 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ClientReportStatistics.java:61-65 \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":"cat-home/src/main/java/com/dianping/cat/report/page/statistics/task/service/ClientReportStatistics.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"758f0417d19571956823d729f4d55f1f2410562a791135d674734920bdd1af4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java:91-114 | cat-consumer/src/main/java/com/dianping/cat/consumer/transaction/TransactionReportCountFilter.java:112-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-consumer/src/main/java/com/dianping/cat/consumer/event/EventReportCountFilter.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a62f0ba8e835fc6760d956e1206309b3287197ede7d2078cd181fe7ddb9a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 7): cat-home/src/main/java/com/dianping/cat/report/page/cross/service/CrossReportService.java:65-89 | cat-home/src/main/java/com/dianping/cat/report/page/matrix/service/MatrixReportService.java:65-89 | cat-home/src/main/java/com/dianping/cat/report/page/state/service/StateReportService.java:65-89 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/service/HeavyReportService.java:65-89 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/service/ServiceReportService.java:65-89 | cat-home/src/main/java/com/dianping/cat/report/page/statistics/service/UtilizationReportService.java:65-88 | cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportService.java:93-117 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. 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":"cat-home/src/main/java/com/dianping/cat/report/page/cross/service/CrossReportService.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"018920412d4a9a600fdf9b74e2970f3b064706d6a04a2f0f97bdaa85fd6fa218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/service/EventReportService.java:93-117 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/service/TransactionReportService.java:97-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/service/EventReportService.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fbbb058da49eb9df94d8746147b5520564f0e816ab2627fdd11742837eea67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java:186-214 | cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportBuilder.java:199-229 \u2014 before extracting anything, compare \u0060cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java\u0060 and \u0060cat-home/src/main/java/com/dianping/cat/report/page/transaction/task/TransactionReportBuilder.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/event/task/EventReportBuilder.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8691cc427f0e59b7089ecdb8d21e7736fd9042b2b8c75654375b027508ce062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/report/page/state/service/LocalStateService.java:53-76 | cat-home/src/main/java/com/dianping/cat/report/page/top/service/LocalTopService.java:53-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/report/page/state/service/LocalStateService.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29ba55c4181aea5132050d7ce41983fb96627bd4ec3432b65c7f64e902af9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): cat-home/src/main/java/com/dianping/cat/system/page/config/processor/EventConfigProcessor.java:36-58 | cat-home/src/main/java/com/dianping/cat/system/page/config/processor/TransactionConfigProcessor.java:36-58 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/java/com/dianping/cat/system/page/config/processor/EventConfigProcessor.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c91ace5ba5d3160198b10546a9f8de875047f73703a066c6947df409ff069cd"}},{"ruleId":"D9","level":"warning","message":{"text":"Tests outside the analyzed solution: 1 .NET test project(s) exist on disk but aren\u0027t in the .NET solution that was analyzed (e.g. CatStandardClientTest.csproj), so they aren\u0027t built or gated with the production code and can\u0027t be assessed here. If this .NET code is part of the product, add those projects to the solution or point CodeHealth at a solution that includes them; if it is a client/compatibility harness beside a product written in another language, nothing is wrong here and this row can be ignored."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7a0b53e0d18583a1361cd04775cd53329dedef67393349e0c99678c3c468f894"}},{"ruleId":"D11","level":"warning","message":{"text":"Test reliability not measured \u2014 no test run produced results: Test reliability NOT MEASURED: the test run produced no results for any test tier, so no test ever ran and flakiness could not be exercised. The cause could not be attributed, so it is excluded from the score rather than read as an absence of tests."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7d83a505f7fa19aeeece76141ae1e468d77e2a3fea2e88604b8140ebad47a6fe"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f2a64ca12404c9cd5176eec9ccddf7e68257ac0ed3b2b274ddee827616b6e80"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 117 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO need to try multiple servers 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":"lib/csharp/src/CatClient/Configuration/LocalClientConfig.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e91c2e85b00dc47824fdf51c67329073346180643ce931f90e371b2a7e4d066"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO For forked transactions, we should not include their data length into the current main thread\u0027s context. \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":"lib/csharp/src/CatClient/Message/Internals/DefaultTransaction.cs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f7ab46f369ca228005cb5c13f48f50d73e5a574279ad53701daf6a1f2b28e8"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/src/CatClient/Message/Spi/Codec/PlainTextMessageCodec.cs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d58e1bda43a57703e31519b64c00b4f13ef16f00f7b7e8977436efb98112290"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/test/CatClientTest/EstimateByteSizeTest.cs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"11432195522c7c136ae7f68841f8209b8e51159ab6de6a9fd8d178ab6f567e4c"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 4 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/test/CatClientTest/PerformanceTest/MultithreadTest.cs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"805ae2ef0f26a71cf02f9bfe1c3e2200e497b1998e03bd3ddc82bd1827a02c20"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO implement enableLogging(Logger logger) \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":"lib/csharp/src/CatClient/Message/Spi/Internals/DefaultMessageManager.cs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"01611c13a5be970cd7463d78b5e2d110a59b25c394b3d21bf81e3591d829f8e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO tagged transaction binding \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":"lib/csharp/src/CatClient/Message/Spi/Internals/DefaultMessageManager.cs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"696560fd64ff44fb5fb6b315e468804f9e74468c072987a43b53112fded6a7e0"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 7 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/src/CatClient/Message/Spi/Internals/MessageIdFactory.cs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70e1fe8e2c86e5098eb8f49e28b6dabfb61c2c7e72c9bd7765ad5c94937384b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: thread dump is not available \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":"lib/csharp/src/CatClient/Message/Spi/Internals/StatusUpdateTask.cs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7095c743c7b2fa6092307dc10100e984de9fcd7c509412762efd1858d205d04b"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 12 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/test/CatClientTest/PerfCounterReaderTest.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"df95775f8720731181312a98799fbec44313eb2676d9c9c628cbe3e98677fdc2"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/test/CatClientTest/PerformanceTest/EndlessTest.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea57b7066873d8887b4108a23335624691e7186d781a356130d7b6cb8201bfb9"}},{"ruleId":"D19","level":"note","message":{"text":"The \u0027Documentation\u0027 section links only to the API doc (./docs/api.md), but no other Cat reference or usage guide exists in the visible text.: Add a short Usage section covering how to build and run the client, plus an example of calling init/cat::init with the appkey constraint."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cpp/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1728d6b5778c1709561280234bfd47f0f10accb8800a350ca99f04859a1a35e0"}},{"ruleId":"D19","level":"warning","message":{"text":"Low XML-doc coverage: Cat: Cat: 9 % XML-doc coverage (36/422)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/src/CatClient/Cat.csproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c392deb0456d5ef23e86c8e8108c202bba88aae4b732205f1b989bb8a91ba2e"}},{"ruleId":"D19","level":"warning","message":{"text":"Low XML-doc coverage: CatCore: CatCore: 9 % XML-doc coverage (36/395)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/csharp/src/Cat.Net/CatCore.csproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ee530111126481a7b1fe4cbb50957ad55aaf52e3a1a37474232eeb41b6c6a2"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"574f42f35513b7b67471f60e204b6ef5ad82b54f2d4f7fef933d512732bf83d8"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d47102666a2c48d2cf340dc9e168982541bc9e3d5d225e6d9e5ad5fd5f2de364"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"acf581f619fddd8800e7c04409e76696907828fc2548195f1783079c9b1b66d0"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"33c5a1f0f94e8b5388bed3162327e5954c2dd75fb45890bf3b3f7cb96aae6c61"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be82002869094debafd47ffc0021bdb17eacecac471c254f8f1b3bfbd31ecf12"},"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"}}]},{"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":"90c53f31c5c9d2ebcea876297d3603eed0d0074c417281f3bbc5a38692c31591"},"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"}}]},{"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":"146c87dcf52f9650677842aba32da9c9722941da0dfc99bfd645b7e27f698119"},"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"}}]},{"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":"4a5fa102faf4835de965591ee755d54e07496afd25f3394a45fdfbc7026ad08a"},"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"}}]},{"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":"882339057ba5fe4ff67a52d033a17b642e8c0c2a9743138848a0a495d629497c"},"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"}}]},{"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":"41424ee0e1e4f631f82dc8ac3397621760d6f3d55f961b6beeccf8cb7c89d514"},"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"}}]},{"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":"af70af9e9b79b5d6ea52337d7b105bb20030e84bcf08bb783b9847ecc666b8a0"},"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"}}]},{"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":"608263c41946278664dab848565a9b7a616727234d7eaa34178d95a9b7f372f1"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"449c2c9d07fb30d918fc0a89215274d96f83fac05a1123ca1126dcba2c94fc0e"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"47ae60467c1ff30a5119fd76677e2bdbbaa81137377f9490f51964df02edb33e"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"51df12d071eec5f6ad888ae0a986f9fbb42fc62b88d07b806689aea636eba556"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"45dedc52d4f775566fccb827a3945e2c50a68e2c927e1aef00cb682f1aaa946f"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"9dfacc0ff81ad27eadad5a77de9a9c1b70362a65fe349f9848ee14085863238b"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ab442fba3dbb3d47ea222da052bf1a402b49894229089b7ca3a62dad14b6989d"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"823bad0c66c0d5b4d3c7d65c17d727672d980c56767c9dd426e7579252860c6d"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"da235b38e7eabfbacf28bb01447bafb7322a05eb475b97ef9f209ba15996199e"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"e3d462256eb17d4663bd714fe3c94ae17541a2e392b0dcd514fec70334220010"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"4ffe28501cf2364ff1d7e412ae73f79aae566450f80931ebfeb0fc3ea82fcdfd"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"92902321e0aaac33229dd8f6e7ab3e96da8c650976b0e18c6a47169760784086"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"f5212ccb3ca059fd967ff06a8c38fdc216d2189b849ca47e4a8add995ce05ac7"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"baceb1588f06e409a89b753c3baac3d1ee58afca34afbacc5ae83913ead0b07b"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"0e32a22cec221355867675af69b91ab1726fe345fbfb44b1dee4c9d698337c64"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"7334ea6f9ff8319365bf84d484fd6fbc0d5d8397ab9531b7627c529c76e12d62"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"89e76e83433fc7b4455b0cae568c59d467729698659088775722469fc29a775d"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ceef1def078d41334149e942a040edef317e9b7dd6a23b0e8e19e5e07e681373"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"7392a185f18a5de07825342018bdabbd1453c5a519b7edbeeb049e4fa590757b"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"7571f02ba4949b7d00073f44e2867b410e450d445c88716aaa4dce87698c688a"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"a84667ff42c0ae9e20244666c52eaa2c8d6d10cc3ff6bc1e5cccacf96d83b4df"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"a8afe1c5d4eec8be70b642aceef24c3b518a0a137a9bcdb38829151d406a5676"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"2fce57d74ddd31d522eb3d7447775812140558b0ff7b3e0fe62d78e410b2c23e"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"f1522d1afed5247b956da473c03b4cc7207c57502edb5a16ecd2841d3eecad32"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"8c6de40d03d9ed80a4efa6fe02ca000f5c99ad229c1e5bf95549fef1cd249f1a"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"80cbb82afb7a7fe6ab5cca307f1baabe349df0c60953d20654dd09f9de1f4c13"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"c2b279c012eb9689b2210cbd1baf525b73a01998cfe0edc50c723e9fd800e438"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"27bc2fb822d799615a23d3bbaca697f013df6ac28ac7227c1d9a62ca5f34b628"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ac026392be607967343abd2900b0716ac319daf5d7a9514431dcc10b896b1ab8"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"35382cee589664c272d3bbd6deeb82044954e4598520ce3485f1f2a96525883e"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"fb86ac8779c903bbc6881d1cd6d46271aadde271d5022c6df41066a94826d998"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e70a2f1a0e6bf656fb8ef0bf8635684795142b453655b92f870130e3c951360d"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e58401227518164e8d44d65bbcc82d2661670625fd5d1f04425708322b892aed"},"taxa":[{"id":"CWE-113","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cae00dcc26799e5e4b4216dccc65b4cab0629ea3f4d85912eb5eebdf831e4a1"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc16d507872cceff8e6064a0fcc6a5672a7a3bf995b6ffd1023047d8eaf8fbb1"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df11153baa0388829b3d802b3a343e90fd6bacef7ef14a18f266879e5953ef3f"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9a9ee0b31d5ad939dbd00433edd66b876413efeb0cb0b4414645876d0baaa0e8"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4b04adb2c49a69406a4741ba05ff274e1bc0beef483d0107dedbf62ad39ee655"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"093df5ff474643252c24134b411344fd3bf4e63290160e69833dfd92d6f5c853"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"923ef8bb89b317c086a43ffc0126ff82a9c63edb890b9f5c88814f0cbdb399e5"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"29f9d2b54a170d7e7b595d163bcde2b4165a70398d6de99e8d9e1a13ebd05fd4"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"c6f1881ca787da49b3f3a8dba70a5fcde31d920e552ff23f3a156eec6a8ac0d4"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"d0a078fce934a917ef363b992e9d372ae8ed27e931b83d8bdd59a6871f516010"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a0685d3d6fff4ea8b6df5a7dff3d02091e0eae2b8f94921e5a59fb8a9a5f0d1b"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd7d40b73e6765a6a87e2f0ef5220e5631492f73702148132adb81e6ae74d8ab"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1cdd9e017e6f45c5fd080ed637fe19053cc3fddcce7e50826fff147c6597659a"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ddba49aeacb097fab1d375e7593d971b5be6e01ec7625d37658e8dc9c3085b2b"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58c61fd9b239c2505b291f9f0b42d311bc1fbae0ccfea9c8d6841fe9eba0ba49"}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"351e3eb6c773ba583b5e9e5daabc209854f8a286272bdf98823aaccae97056cf"}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fceb832983e3c4b69268189a7a254dcc4f96acfb4ef4ac965d16efebfb5eb7f5"}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cb2123085e28cdcfab9b75cf8bf12d19aee3888d6b67c5df5b4dcf6fe13f505"}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d747792aa24492568f00bc54f27c37841a62628724624950cc33d89a307d553"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f9deb0b3e9568df1171bacf908174d514cb7e71041f1c1975b38340d1bde8fc0"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"900c6240c63b1833c9634b6b6672dba1b877edf43d9ff7a24030656e190274bf"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90cef4a5a7b0cd16ad3f3188663449be91b6ba7001b194e0f4440e1bd34befe7"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98e74957745d0b754e471e182c742b00c3f23920d93e87e612ecd663c308fb87"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"268bc193dbf04af0308b0bc15a3b2b20b6a13bd81532c7740eaf55188d1ba5d6"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a584e4691b160ad9b73c3bb54227649871f760e3db95d8ada83eacd2522cb949"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa33f28e3560bdde9c18276f1a354380cd0b3cd4d49c7325622a9f06259df96d"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"23d03b86f147dbcb9c5a3f39f741701e2cc6af3a05bd2c140c4c9968451419a7"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f4032730dc2dacd009a565af9cb22bbbc9adc5e6e6b59039d0c2760308320dc3"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"813d42ffe6d391babe689afade265ad83fb1901989fc9b2c63afc0469f00fcb8"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6aaa1b1cb89ce42776014ec56af813aef4efef0c5444ba030343e976a13d0bff"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3770ede0bc725241b5959127b5dd42bb1edd74899a769badb3595f9b3288e528"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d802f8763b5d0e8419a765419c0ee513e0fa24055e924ad1ddada6700a22e204"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"968dbe48e3dce4088c3e2c7bf98f3e5a6ebe55b6c21bb855b0e04ed93efcd8f7"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c9160fe99e2144129adfb6509d5710a3c7d64b0fd624c086a582fa0ef09b2c3"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b80b4cc02151746e5c8526a1b62b61d9be545f1ae47d23aa957277c730a41bf6"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ee4459fdd7f529e74f053072b74f40b72b06d346374a185675338934502662c"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b11ed86f32d3c012054df7f752d89652b6b5498a64c694f48a4f416b5276f7ac"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8fa77eb5bd62b225f6fde17dbb78eced20467a1cb7a839dea732be2adbdec0b6"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"70b5a18b4063599b6e7f2cac12227b0c25dadbcc1fffb8b7f6027e79263c674d"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"17e958e8f1656bf3e4c9a1a2df52c6ffb10de7e99bf023accecdc8866fb30139"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dc88f5bce671cd78f3f7401cb32f24d439bf5408644c16ee3e9cb7e49c0dfcb8"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 894 of 894 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 894 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/webapp/assets/js/editor/worker-xquery.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4381b1bbff553e20d88ba332c888993edfddbd784cfad3f8340ce5647b5b8c65"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/webapp/assets/js/editor/ace.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65264b190c38e90b1ffdd72d5ef6a35af9af4ec78f1f9187aad2bc7483fc4284"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cat-home/src/main/webapp/assets/js/uncompressed/jquery-ui.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4350b1e4c673b01be43948f3cc563a0591f0868af8d85e9f5eecfb47be9ef5"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"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":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"ruleId":"D40","level":"note","message":{"text":"No network policy: No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"295828650a2aaa1b03ae9b32ae6843a0c38011e5a70b1926442c4fa7187de5f0"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: Workloads do not set a seccomp profile (RuntimeDefault or a Localhost profile). Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3f418e9f76c3ac90484e0e94a454bfe9b08e914e1cdd218e1fc9e3b261a3bf6e"}},{"ruleId":"D41","level":"note","message":{"text":"No AppArmor/SELinux confinement: Workloads declare no AppArmor or SELinux profile. A mandatory-access-control profile confines what a compromised container can touch on the host, complementing seccomp\u0027s syscall filter."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e83fbc31033373d6c51983ed230eb4ba61f7775ed02afb30f5fc1840bde01d4f"}}],"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-1004","guid":"872195c9-bb07-cf51-8a32-865f4bb753ca","name":"CWE-1004","shortDescription":{"text":"CWE-1004"},"helpUri":"https://cwe.mitre.org/data/definitions/1004.html"},{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-113","guid":"46a3ee41-64ad-4e52-9163-bb469c4a94e3","name":"CWE-113","shortDescription":{"text":"CWE-113"},"helpUri":"https://cwe.mitre.org/data/definitions/113.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"CWE-22","shortDescription":{"text":"CWE-22"},"helpUri":"https://cwe.mitre.org/data/definitions/22.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-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"CWE-345","shortDescription":{"text":"CWE-345"},"helpUri":"https://cwe.mitre.org/data/definitions/345.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"CWE-532","shortDescription":{"text":"CWE-532"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-611","guid":"1afbae66-ea29-2d59-aaa2-134e3ae2e85a","name":"CWE-611","shortDescription":{"text":"CWE-611"},"helpUri":"https://cwe.mitre.org/data/definitions/611.html"},{"id":"CWE-614","guid":"faa8a6a5-7e9d-5d5e-afc9-020ff49d250a","name":"CWE-614","shortDescription":{"text":"CWE-614"},"helpUri":"https://cwe.mitre.org/data/definitions/614.html"},{"id":"CWE-676","guid":"550e6fab-2881-3252-8a05-c688a6b19c14","name":"CWE-676","shortDescription":{"text":"CWE-676"},"helpUri":"https://cwe.mitre.org/data/definitions/676.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":91,"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."]}]}