{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X31","name":"Test-only surface in a production module","shortDescription":{"text":"Test-only surface in a production module"},"helpUri":"https://codehealth.canine.dev/dimensions/X31"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"muc_roomconfig.do_decode (cyclomatic 142): muc_roomconfig.do_decode has cyclomatic complexity 142 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roomconfig.erl"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c16e1b9e89003855cb4528863bada43e7a8a1c0fee513001beecedb0adef505"}},{"ruleId":"D1","level":"warning","message":{"text":"pubsub_node_config.do_decode (cyclomatic 133): pubsub_node_config.do_decode has cyclomatic complexity 133 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_node_config.erl"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7276dd4a87fb5315105e58e1d7c6c46f7b27d653dff199ca8687ccd2ce1b71"}},{"ruleId":"D1","level":"warning","message":{"text":"pubsub_publish_options.do_decode (cyclomatic 133): pubsub_publish_options.do_decode has cyclomatic complexity 133 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_publish_options.erl"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"207a57c35ff5ac34229fd0b5341b800f2b3b740d2652f608cf48b5b038c8256b"}},{"ruleId":"D1","level":"warning","message":{"text":"muc_roominfo.do_decode (cyclomatic 75): muc_roominfo.do_decode has cyclomatic complexity 75 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roominfo.erl"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b859932a16b0d09474bea9a0734a2b0ffbc7f3310c86fc8b5ac6ec5554f29b8"}},{"ruleId":"D1","level":"warning","message":{"text":"captcha_form.do_decode (cyclomatic 68): captcha_form.do_decode has cyclomatic complexity 68 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1623021a1ed292359b21c26f43e7cddc499c8541879086e5bebfe913e05a73"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0054.decode_vcard_temp_els (cyclomatic 64): xep0054.decode_vcard_temp_els has cyclomatic complexity 64 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xep0054.do_decode (cyclomatic 79) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4a990d23cfcab8154969b8759cab2a78b686cc9e84f9ae8327fb8e6cd685dc"}},{"ruleId":"D1","level":"warning","message":{"text":"pubsub_meta_data.do_decode (cyclomatic 56): pubsub_meta_data.do_decode has cyclomatic complexity 56 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_meta_data.erl"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"004781a6d4d3d737426be3fb817539b892c6c28cc4651ef1912283ecff5c3062"}},{"ruleId":"D1","level":"warning","message":{"text":"rfc6120.decode_stream_error_els (cyclomatic 56): rfc6120.decode_stream_error_els has cyclomatic complexity 56 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d16e97050b3fd0a23cd776ecdf034dc9aa733ffba6c9e862b7f1a23f79620aa"}},{"ruleId":"D1","level":"warning","message":{"text":"rfc6120.decode_error_els (cyclomatic 54): rfc6120.decode_error_els has cyclomatic complexity 54 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cbb761011bfd76b003b685ac89d1de9c6336a47cc26d52fd3192e7d1dfb4f9"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0077.decode_register_els (cyclomatic 48): xep0077.decode_register_els has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"002f65fd232ea41d112c2b6073eec960791b8a01d10d281c3d7910299c695886"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0198.decode_sm_failed_els (cyclomatic 48): xep0198.decode_sm_failed_els has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0198.erl"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cdbc581c3f6830aa3c94adb378017af560f135939b6725700b6b941366d18f"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0060.decode_pubsub_els (cyclomatic 45): xep0060.decode_pubsub_els has cyclomatic complexity 45 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xep0060.do_decode (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":1943}}}],"partialFingerprints":{"codehealthFindingId/v1":"83700dac019fddbcadc430b2199b5ccfe5cacd369b6a78ebec8e70ba79337475"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0166.decode_jingle_reason_els (cyclomatic 42): xep0166.decode_jingle_reason_els has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0166.erl"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad004cab325f5f91b557de3dd9692a8e3f0b2b510aeb0b1c3b560f0feb9b3ef"}},{"ruleId":"D1","level":"warning","message":{"text":"xmpp_stream_in.handle_info (cyclomatic 42): xmpp_stream_in.handle_info has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d4193279b05638b7a67574b0632f65523d0b41f8cbb74eca29a0cf1968a5ce"}},{"ruleId":"D1","level":"warning","message":{"text":"pubsub_subscribe_options.do_decode (cyclomatic 35): pubsub_subscribe_options.do_decode has cyclomatic complexity 35 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_subscribe_options.erl"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4e6919dc38a555e3e089a242dd752a3f2174ce5f106ba70c786e58f0eb6b1c"}},{"ruleId":"D1","level":"warning","message":{"text":"xmpp_stream_out.handle_info (cyclomatic 33): xmpp_stream_out.handle_info has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"1265bc47d678beecb42239078bc5a60008b625db2c37cb08531a6688ab775a16"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0388.decode_sasl2_failure_els (cyclomatic 32): xep0388.decode_sasl2_failure_els has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0388.erl"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"5446cc7be4ed61e26d063ae0bbf5e58b276a0c81143a16a6cdcf52ca0d5f16cf"}},{"ruleId":"D1","level":"warning","message":{"text":"mam_query.do_decode (cyclomatic 31): mam_query.do_decode has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mam_query.erl"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71cf47c4b4cc09249d3b7132990d65a55c2025ce466347ff88b0a640ebbaf77"}},{"ruleId":"D1","level":"warning","message":{"text":"muc_register.do_decode (cyclomatic 31): muc_register.do_decode has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_register.erl"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9659c8f9d5718868bda56c7139e4dabd30c46e571385245509fbce717d2a22"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0054.decode_vcard_ADR_els (cyclomatic 30): xep0054.decode_vcard_ADR_els has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (xep0054.decode_vcard_TEL_els) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file\u0027s highest cyclomatic complexity: xep0054.do_decode (cyclomatic 79) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6053}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d322c110e5eb87172811cc24c8092b3773cda21aed7fb37a705ae55f9145fe"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0054.decode_vcard_TEL_els (cyclomatic 30): xep0054.decode_vcard_TEL_els has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (xep0054.decode_vcard_ADR_els) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file\u0027s highest cyclomatic complexity: xep0054.do_decode (cyclomatic 79) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4783}}}],"partialFingerprints":{"codehealthFindingId/v1":"15395c0a8645564c5998b8c0e867285e71de44814a3b615d98a5ad59f863e2f1"}},{"ruleId":"D1","level":"warning","message":{"text":"xmpp_sasl_scram.mech_step (cyclomatic 30): xmpp_sasl_scram.mech_step has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_scram.erl"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ab758cba7c9db8f34a1de667382671ae1e0cd0308f88eed65b838f80b492c0"}},{"ruleId":"D1","level":"warning","message":{"text":"rfc6120.decode_sasl_failure_els (cyclomatic 28): rfc6120.decode_sasl_failure_els has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3034}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1543e5ba94832c6d79b859d390e8fa920dc81a0a84b6ab732e7120e65860165"}},{"ruleId":"D1","level":"warning","message":{"text":"xmpp_stream_in.process_stream (cyclomatic 26): xmpp_stream_in.process_stream has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xmpp_stream_in.process_element (cyclomatic 35) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b516e4dc738c0d26b942fa57669daa17d317140fc4cf470e21f71671811191"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0060.decode_pubsub_event_els (cyclomatic 22): xep0060.decode_pubsub_event_els has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xep0060.do_decode (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":4534}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9e6b65e1e5ea010c3d11773e6d49869900beeda98a845b81fdbf354d25009b"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0060.decode_pubsub_owner_els (cyclomatic 21): xep0060.decode_pubsub_owner_els has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xep0060.do_decode (cyclomatic 64) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b360b656ee9b55a1f6ff1c975c2fea9aa0c255a47ca4b824bbdacf2563d0e1"}},{"ruleId":"D1","level":"warning","message":{"text":"muc_request.do_decode (cyclomatic 20): muc_request.do_decode has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_request.erl"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"45248340053d889435d13f7f5406c74e178691fa7673b93f97755c3d3ed5391b"}},{"ruleId":"D1","level":"warning","message":{"text":"pubsub_subscribe_authorization.do_decode (cyclomatic 20): pubsub_subscribe_authorization.do_decode has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_subscribe_authorization.erl"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58907e4fe38a686c2d8495755496fa9548637807c1dd7cf1672279faaf058f7"}},{"ruleId":"D1","level":"warning","message":{"text":"push_summary.do_decode (cyclomatic 20): push_summary.do_decode has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/push_summary.erl"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6774d193627872b8620ddb7d82a556158e64b3092442d442120cce86b997750"}},{"ruleId":"D1","level":"warning","message":{"text":"rfc6120.decode_message_els (cyclomatic 18): rfc6120.decode_message_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (rfc6120.decode_presence_els) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file\u0027s highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":6089}}}],"partialFingerprints":{"codehealthFindingId/v1":"454b0311aee4c2eb82145130fd60e5688fc3a905942548a6a95d59403577d0d1"}},{"ruleId":"D1","level":"warning","message":{"text":"rfc6120.decode_presence_els (cyclomatic 18): rfc6120.decode_presence_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (rfc6120.decode_message_els) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This is NOT this file\u0027s highest cyclomatic complexity: rfc6120.do_decode (cyclomatic 119) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5473}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e390a1f745d1069d1aa932617065841957e2dea7bf40504e746d814dd06ce5"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0045.decode_muc_user_els (cyclomatic 18): xep0045.decode_muc_user_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xep0045.do_decode (cyclomatic 26) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"f062ce6ed969a4997b0d9e2d29268ae0477131dd49fec7678f3bdad688f1e886"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0054.decode_vcard_LABEL_els (cyclomatic 18): xep0054.decode_vcard_LABEL_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xep0054.do_decode (cyclomatic 79) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5627}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d55c5a2a05c9d1fdcb8f64f87f12273ea694bf3ed19bd8eb63409262bf6365"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0234.decode_jingle_ft_file_els (cyclomatic 18): xep0234.decode_jingle_ft_file_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd02f57a1f144f38dbd880ed89d7d72535c4ee393a8554efe333a455bb58d2b9"}},{"ruleId":"D1","level":"warning","message":{"text":"xepXXXX.decode_received_report_els (cyclomatic 18): xepXXXX.decode_received_report_els has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xepXXXX.erl"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba64000571733a019352a5fb0577904b15990d0b54beaea81602afbaf90cd9a9"}},{"ruleId":"D1","level":"warning","message":{"text":"xmpp_stream_out.handle_cast (cyclomatic 18): xmpp_stream_out.handle_cast has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"710946e48f67c059073d0844cd95ccca3dc8399231d10697da5ce957f0998c2e"}},{"ruleId":"D1","level":"warning","message":{"text":"xmpp_stream_in.handle_cast (cyclomatic 17): xmpp_stream_in.handle_cast has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xmpp_stream_in.process_element (cyclomatic 35) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d6c4e49c9d35ce053e0b77730e3af54e9efc3b024bdbedb937de4fee4a3bf8"}},{"ruleId":"D1","level":"warning","message":{"text":"xdata_codec.get_dec_fun (cyclomatic 16): xdata_codec.get_dec_fun has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xdata_codec.erl"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d7aa70183c660d46146f3df5f55aba74ad7589d93419f0d49217875aece2e2"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0055.decode_search_els (cyclomatic 16): xep0055.decode_search_els has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca019b666457b700c68e9efcc073dfa886267d33ca34d3901e678f0bf72a3a2"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0059.decode_rsm_set_els (cyclomatic 16): xep0059.decode_rsm_set_els has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0059.erl"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5896e129adf3055a626550005c31d4ec0eeeb32a8caff4fd341dee49f2c93a6"}},{"ruleId":"D1","level":"warning","message":{"text":"xep0313.decode_mam_query_els (cyclomatic 16): xep0313.decode_mam_query_els has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: xep0313.do_decode (cyclomatic 38) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb23a295e7f9fa935dadc01ba53431b6a5319e7c5e0f69efb50191b3d09e2b3"}},{"ruleId":"D1","level":"warning","message":{"text":"xmpp_sasl_digest.mech_step (cyclomatic 16): xmpp_sasl_digest.mech_step has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_digest.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aea3716114f12752b02fdb1f81b0e04448dd53d3103ab53cd700fab775078e1"}},{"ruleId":"D2","level":"warning","message":{"text":"muc_roomconfig.do_decode (cognitive 117): muc_roomconfig.do_decode has cognitive complexity 117 (threshold 15). Drivers by points: match/switch 71, error handling 35, loops 5 (10 pts), if/else 1 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roomconfig.erl"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6f9853b855052a223b53cc2b3810ec9ca2f6be8211896d399157117b5bec35"}},{"ruleId":"D2","level":"warning","message":{"text":"pubsub_node_config.do_decode (cognitive 111): pubsub_node_config.do_decode has cognitive complexity 111 (threshold 15). Drivers by points: match/switch 67, error handling 33, loops 5 (10 pts), if/else 1 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_node_config.erl"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d24cbeb56bdc882b90e57188469a7dc791ee83f337e4364c41fa10a99eaf4c"}},{"ruleId":"D2","level":"warning","message":{"text":"pubsub_publish_options.do_decode (cognitive 111): pubsub_publish_options.do_decode has cognitive complexity 111 (threshold 15). Drivers by points: match/switch 67, error handling 33, loops 5 (10 pts), if/else 1 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_publish_options.erl"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"8583c75af6b1892cb7e68f4764e3b16be857b969db9739be74ffc166f552b662"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_sasl_scram.mech_step (cognitive 70): xmpp_sasl_scram.mech_step has cognitive complexity 70 (threshold 15). Drivers by points: match/switch 23 (61 pts), error handling 2 (6 pts), if/else 3 (nesting depth added 42). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_scram.erl"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27760a8ef3d0e04ada8a318d59aa9f3b78250907d1c86169f93243d4c09e801"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0054.decode_vcard_temp_els (cognitive 62): xep0054.decode_vcard_temp_els has cognitive complexity 62 (threshold 15). Drivers by points: match/switch 61 (62 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f77e8efd62acc290848de7d8f92dc9230d82f05754845b871e3161ecd2da72d"}},{"ruleId":"D2","level":"warning","message":{"text":"muc_roominfo.do_decode (cognitive 60): muc_roominfo.do_decode has cognitive complexity 60 (threshold 15). Drivers by points: match/switch 37, error handling 18, loops 2 (4 pts), if/else 1 (nesting depth added 2). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roominfo.erl"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"712394142f7f080e9470979c0211073a2b1dde4b27e20d7d5d2251fe3c551a46"}},{"ruleId":"D2","level":"warning","message":{"text":"rfc6120.decode_stream_error_els (cognitive 54): rfc6120.decode_stream_error_els has cognitive complexity 54 (threshold 15). Drivers by points: match/switch 54. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d1e075da1cbe7ceaf3b228f7644fd34fde7c1a04ef7d7e945b457d5bfc9bcd"}},{"ruleId":"D2","level":"warning","message":{"text":"rfc6120.decode_error_els (cognitive 52): rfc6120.decode_error_els has cognitive complexity 52 (threshold 15). Drivers by points: match/switch 51 (52 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4145}}}],"partialFingerprints":{"codehealthFindingId/v1":"6952f8e4668c17bec2e2fdf10d48a48f5cd67264baf6964fe30ac64dfec0c00f"}},{"ruleId":"D2","level":"warning","message":{"text":"captcha_form.do_decode (cognitive 50): captcha_form.do_decode has cognitive complexity 50 (threshold 15). Drivers by points: match/switch 33, error handling 16, if/else 1. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"28af764e2309fc40141762809bfadee4d150f1944677d4027a8029ae6e63769d"}},{"ruleId":"D2","level":"warning","message":{"text":"pubsub_meta_data.do_decode (cognitive 47): pubsub_meta_data.do_decode has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 27, error handling 13, loops 3 (6 pts), if/else 1 (nesting depth added 3). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_meta_data.erl"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"054c793c9c667b5265755254d010f325e018ee88691e8a8d8cca0547d8a4486a"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0077.decode_register_els (cognitive 46): xep0077.decode_register_els has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 45 (46 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"835f91732cfb5f1f6f463f11cf62576d2d16bed2092d37493bb118d91bd9dd96"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0198.decode_sm_failed_els (cognitive 46): xep0198.decode_sm_failed_els has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 46. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0198.erl"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad723d1c23fede0384d50f1330f02e9a8f5eea34eb7d75d3b5beab331d84e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0166.decode_jingle_reason_els (cognitive 40): xep0166.decode_jingle_reason_els has cognitive complexity 40 (threshold 15). Drivers by points: match/switch 39 (40 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0166.erl"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"507f7901c81bacffe5e2b83e2b9ec05fc5345f00ceb3f5972dc274ea4bf61568"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0060.decode_pubsub_els (cognitive 32): xep0060.decode_pubsub_els has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 32. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":1943}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5379dce4ebc6663f7a8b806a10f299c54a6f33eb4c168d2a5d55a295449f015"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0388.decode_sasl2_failure_els (cognitive 30): xep0388.decode_sasl2_failure_els has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 29 (30 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0388.erl"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"223ddd7ca11811cf8f296ac4b686584b9aa64e9483eea7917e56b116827a743f"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_stream_in.handle_info (cognitive 29): xmpp_stream_in.handle_info has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 13 (19 pts), error handling 8 (10 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"4517c6a5902d4acf3ff78371bec2d4f56f8feada53caf04ecf3a9504fa25a42f"}},{"ruleId":"D2","level":"warning","message":{"text":"pubsub_subscribe_options.do_decode (cognitive 28): pubsub_subscribe_options.do_decode has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 17, error handling 8, loops 1 (2 pts), if/else 1 (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_subscribe_options.erl"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaff5b1ec97e95ccf809795d54324414f0ee6ef176ea365b50e6273908202b6"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0054.decode_vcard_ADR_els (cognitive 28): xep0054.decode_vcard_ADR_els has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 28. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (xep0054.decode_vcard_TEL_els) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6053}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3bbbf6173e0bfbb206302684f8d3fad8b8819c3a17a74d2d8fc2c012afb7da"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0054.decode_vcard_TEL_els (cognitive 28): xep0054.decode_vcard_TEL_els has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 28. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (xep0054.decode_vcard_ADR_els) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4783}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf90809c8e61881683ce567c1e0fd3d494c8f894165c9ecddbf163b5ad58d31"}},{"ruleId":"D2","level":"warning","message":{"text":"rfc6120.decode_sasl_failure_els (cognitive 26): rfc6120.decode_sasl_failure_els has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 26. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3034}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab6f7b9ef1acd297728c71a5e2e9ed8bf5dc9bd2ccfcc9193e3fa2a283fe88f"}},{"ruleId":"D2","level":"warning","message":{"text":"mam_query.do_decode (cognitive 25): mam_query.do_decode has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 15, error handling 7, loops 1 (2 pts), if/else 1 (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mam_query.erl"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"661a6b72d81d0addafa24a3af770f2dd97933308ee2a05f299d79e5b5615b494"}},{"ruleId":"D2","level":"warning","message":{"text":"muc_register.do_decode (cognitive 25): muc_register.do_decode has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 15, error handling 7, loops 1 (2 pts), if/else 1 (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_register.erl"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a670378a33b65a2da576af8242b6c5e391b7f2f2be022a6284ee4a8e624c0e"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_stream_out.handle_info (cognitive 22): xmpp_stream_out.handle_info has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 9 (12 pts), error handling 8 (10 pts) (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd777c0f03dcd233d97032d5150fb66e1498abae51345e3bd6e808cdee40368"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_stream_in.process_stream (cognitive 20): xmpp_stream_in.process_stream has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 7 (10 pts), boolean chains 5, if/else 3, error handling 2 (nesting depth added 3). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b6312908b892fad97516c18f4b7a23e27d6bd3eabc84e9e61ed1b180f2f21e"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_stream_in.process_sasl2_request (cognitive 19): xmpp_stream_in.process_sasl2_request has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 11 (15 pts), error handling 3 (4 pts) (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac3eb6eaa050c2afb22878b28fc2d98ed5c57ed22bcc89138182fc19576274c"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_sasl_digest.mech_step (cognitive 18): xmpp_sasl_digest.mech_step has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 9 (18 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_digest.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bd8c1243e749df3ac10f0b4185f7e3de59a4224b9ba76843124ba80b1a7529"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_socket.get_tls_cert_hash (cognitive 18): xmpp_socket.get_tls_cert_hash has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (13 pts), error handling 2 (5 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_socket.erl"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c5eed2e54345c021b1ae31a9a7496f3827a46d6bf40c6f89aa80179580cd4d"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_stream_out.handle_cast (cognitive 17): xmpp_stream_out.handle_cast has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (12 pts), error handling 2 (5 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1239f1d9c632b5a48cf0b917de922908a99b5a2145883994452c060af4526cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0054.decode_vcard_LABEL_els (cognitive 16): xep0054.decode_vcard_LABEL_els has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5627}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d2b21e8307e8cea508b71dcba3e92dfc846181e3e4be63b538768afe272397"}},{"ruleId":"D2","level":"warning","message":{"text":"xep0234.decode_jingle_ft_file_els (cognitive 16): xep0234.decode_jingle_ft_file_els has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 16. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d758d2b3a07e33f71e58c1eb0ba1a44546f9f8222dc3d72d08bff06d0fd540"}},{"ruleId":"D2","level":"warning","message":{"text":"xmpp_stream_in.process_bind2 (cognitive 16): xmpp_stream_in.process_bind2 has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8 (12 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"be323000c9a9871cc7ebfc8a8636ae2efa6199403bc8a11ce4141c598619f9b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0054.erl: FileTooLong \u2014 8397 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 393 functions. The bar is 500 significant lines; this is 7897 over it, 16.79\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aee0819c81bc46d5a154def0bcc63ce766f79860caeec47c8beaf7e42b708dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rfc6120.erl: FileTooLong \u2014 6420 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 368 functions. The bar is 500 significant lines; this is 5920 over it, 12.84\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff9704c9ddaf780b82411dc780a8e2af959ec58bf6c3de394a65ce683856c98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0060.erl: FileTooLong \u2014 5521 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 275 functions. The bar is 500 significant lines; this is 5021 over it, 11.04\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"700a63407fcccfad33dfc450219a2837b08f0029f0a196449a3e309f73b65210"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0077.erl: FileTooLong \u2014 2714 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 129 functions. The bar is 500 significant lines; this is 2214 over it, 5.43\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce4cac513a854645024025d3563843ea6bcd488eb934cc06107cb122b927dc8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0045.erl: FileTooLong \u2014 2676 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 165 functions. The bar is 500 significant lines; this is 2176 over it, 5.35\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d529cd9b4155928efb5859bef827ccb6b7eb2305051d4b21464b946d61520cd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0388.erl: FileTooLong \u2014 2217 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 116 functions. The bar is 500 significant lines; this is 1717 over it, 4.43\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0388.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e9590da991fdf2a99b64e7da13d395f97ca3150122590f149bc087dac70180"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xmpp_codec.erl: FileTooLong \u2014 2197 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1697 over it, 4.39\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_codec.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd54b1599f7dbbc3e328ccddda3186fda53ce422f7705a987223ec400f4ce162"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/muc_roomconfig.erl: FileTooLong \u2014 2161 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 58 functions. The bar is 500 significant lines; this is 1661 over it, 4.32\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roomconfig.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db74e33777157d99717225b6c30fdfa9ff74176908a49d6406d4a7175380f5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pubsub_publish_options.erl: FileTooLong \u2014 2105 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 1605 over it, 4.21\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_publish_options.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c0e791509cfe9e12070a759210614d54202d82f5b3e7b246093e9965b3612f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pubsub_node_config.erl: FileTooLong \u2014 2103 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 1603 over it, 4.21\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_node_config.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2acc44d393e6bdd25b223316aad605c9658e9fb8ec3fcf841b73aabeac08f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0166.erl: FileTooLong \u2014 1754 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 94 functions. The bar is 500 significant lines; this is 1254 over it, 3.51\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0166.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fef599883af9414cb10baa2ab7e6b05925e05d739be62b6b001b13939c3a23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xmpp_stream_in.erl: FileTooLong \u2014 1675 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 105 functions. The bar is 500 significant lines; this is 1175 over it, 3.35\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e5a64d1a85cd0653d3299fbec2f4192c7d573da3d9dec73c46156480939e7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0313.erl: FileTooLong \u2014 1669 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 120 functions. The bar is 500 significant lines; this is 1169 over it, 3.34\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db300fdb150d09e067928e036709c74ce8dd1a21ad856ac6e4734d5a49be624"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: include/xmpp_codec.hrl: FileTooLong \u2014 1497 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 997 over it, 2.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"include/xmpp_codec.hrl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee170b4396d0696e73c8861a01ba15822d299c79a0c96b89f610055e9d4d7e45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0363.erl: FileTooLong \u2014 1384 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 105 functions. The bar is 500 significant lines; this is 884 over it, 2.77\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0363.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30454d762e42fa7007e04227191c94f3d538375bdca908cf7aacc856c3b86cb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xmpp_stream_out.erl: FileTooLong \u2014 1377 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 92 functions. The bar is 500 significant lines; this is 877 over it, 2.75\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f054a9ec0d38a39c4f913531ed910d6626d4438cacab9c2e87bb3e92ce9cef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0198.erl: FileTooLong \u2014 1314 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 70 functions. The bar is 500 significant lines; this is 814 over it, 2.63\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0198.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f4062ed4bca4cac09cab5370e8e525f6f029ca5a8872b6e15213c67bd3e045"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0369.erl: FileTooLong \u2014 1249 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 88 functions. The bar is 500 significant lines; this is 749 over it, 2.50\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0369.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"903af147b597bd5896c8650bc53b39908eb4bea1a2f25988753aba92c9063b9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0234.erl: FileTooLong \u2014 1238 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 85 functions. The bar is 500 significant lines; this is 738 over it, 2.48\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"621674df31ed687a11608bf1be3c1b9f7b9d34c25a1c5e63a633acd0680dd24c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/muc_roominfo.erl: FileTooLong \u2014 1158 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 41 functions. The bar is 500 significant lines; this is 658 over it, 2.32\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roominfo.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12cde44b2fe7c57f74b17f3f08cbcaf784dacea8c919830d9c0c9639139cf138"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0004.erl: FileTooLong \u2014 1025 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 73 functions. The bar is 500 significant lines; this is 525 over it, 2.05\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7129c7ec3a6513ba0b5ac5c6051920ca92d2d1d6608b4b7d8090d6e39821c132"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/captcha_form.erl: FileTooLong \u2014 922 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 39 functions. The bar is 500 significant lines; this is 422 over it, 1.84\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7b5373bf501b99948b2810eab367cc4267b6996a843297c1845bb44ae003df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xmpp.erl: FileTooLong \u2014 912 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 179 functions. The bar is 500 significant lines; this is 412 over it, 1.82\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b6d1d4fb7411fd2c0151c83c5215e24b9cac37bc3d43d53ce590c4e66e1c7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pubsub_meta_data.erl: FileTooLong \u2014 877 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 36 functions. The bar is 500 significant lines; this is 377 over it, 1.75\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_meta_data.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55961d855cbb2ecd506de27827950dcacb72be9507995962943cc524d58503b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0260.erl: FileTooLong \u2014 781 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 281 over it, 1.56\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0260.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcfbaf572ded0549303f0ce55c14902611b082bbccdea9e39ed9e2b593f0aff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0417.erl: FileTooLong \u2014 778 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 63 functions. The bar is 500 significant lines; this is 278 over it, 1.56\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0417.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c77fd5bb0f77d0cb13cb105342584a13b9044c5266c8247632293764c4271b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xepXXXX.erl: FileTooLong \u2014 768 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 61 functions. The bar is 500 significant lines; this is 268 over it, 1.54\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xepXXXX.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d9d82054c029c4240b060e1c6dbbe6bafff98d98a4093b437f537fc723a54e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0055.erl: FileTooLong \u2014 745 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 52 functions. The bar is 500 significant lines; this is 245 over it, 1.49\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b3f880767e327239292061fd3c9a207a712de342d8bbe45dd0c7e27f546895"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xdata_codec.erl: FileTooLong \u2014 739 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 47 functions. The bar is 500 significant lines; this is 239 over it, 1.48\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xdata_codec.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd59c574f97c654c12d5e65c3ffc73ea603b1bc1d8d6be42da41e6977815cd5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0220: TooManyFunctions \u2014 44 functions. The bar is 30 functions; this is 14 over it, 1.47\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0220.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8f000dc7360d2e65f17eec8a484c507b8c3aba0e560d928fa6c62df96860ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: p1_mucsub: TooManyFunctions \u2014 43 functions. The bar is 30 functions; this is 13 over it, 1.43\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/p1_mucsub.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e5a16732be8d4702f29f5ce4596fa42074f29311bba3e1bb128909fb6f495a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0048: TooManyFunctions \u2014 43 functions. The bar is 30 functions; this is 13 over it, 1.43\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92b8c362e5d99bbd4a9dbb6c70502aef9d5fea69d73e0f87f4696b135bd9d9a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0065: TooManyFunctions \u2014 43 functions. The bar is 30 functions; this is 13 over it, 1.43\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0065.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e21b8fd92287cfe880db010cbcdb399a508fe98524d227b0a9b1f65ab112cfc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0016.erl: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 58 functions. The bar is 500 significant lines; this is 207 over it, 1.41\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db14aea8bc4a14a65a954e9d35f3fc6e132c5a4783fb23508c2c4d24fbc1a9a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0484: TooManyFunctions \u2014 42 functions. The bar is 30 functions; this is 12 over it, 1.40\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0484.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd70315a6db54dbcf26c1ee5f07b2a13789509a577b6bc9e68949a39438638f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0425.erl: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 47 functions. The bar is 500 significant lines; this is 197 over it, 1.39\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0425.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edf2007e29fe5ddd0deb9813750a8eed29ec2c81453289a1110acacbbb21272"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xmpp_socket: TooManyFunctions \u2014 40 functions. The bar is 30 functions; this is 10 over it, 1.33\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_socket.erl"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"783eb0067549fa58958c74616058cd924f6a1128db0ec33b6c71dacf2d781b1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0059.erl: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 57 functions. The bar is 500 significant lines; this is 163 over it, 1.33\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0059.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76eb04bc963c2c6363ba914eb523913217db51550795e1708a5669f78dfec433"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0050.erl: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 49 functions. The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0050.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7990985137446f3de0f561f50adee906d8c54da0371a5f96a1e9913f39d1181"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pubsub_subscribe_options.erl: FileTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 31 functions. The bar is 500 significant lines; this is 159 over it, 1.32\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_subscribe_options.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc19270622efa84ad71acaffd3f5c21bb473707f2a3948c5bfe8fc2b3c5a31a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0215.erl: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 55 functions. The bar is 500 significant lines; this is 134 over it, 1.27\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0215.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65fdb075007ab286d34703254ffb7e5907b22ac72cd0feaf28c87f391da5967"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0356: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0356.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"957fa959ef98ec42d097a5262a1284fb791a3600f286470c3209a8aa9d7457c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0138: TooManyFunctions \u2014 37 functions. The bar is 30 functions; this is 7 over it, 1.23\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0138.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e55ea5373ada6b3b58fdc162dac5b173d199adac8b967791df3873499d5ee34"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0039: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0039.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bba27982344e4c8a50889f9e95e5f7ac4eb8739ff7ec4bb48f271002d9285f4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0078: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0078.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"20db33c45e6471e5333869c26e16caf317c70d0bc0e4d43fab058085ab8fffda"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0355: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0355.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"67211a60ca3aaf7546fe3885efced9ace8094c84ef0a1dfee1ebe74470b61425"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0485: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0485.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cbc7a13972f2ad11e0ccb24949954c7f9d7d4e5d48dc590b94807fb304115c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0084.erl: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 50 functions. The bar is 500 significant lines; this is 90 over it, 1.18\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ef0d7b052c33c60ca71c2597838c7fe180c7e2833abaf2aeb34a27e50edf96"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0047: TooManyFunctions \u2014 35 functions. The bar is 30 functions; this is 5 over it, 1.17\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0047.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03877c290391709da9bdc84ca4f7ae8f7efc77cf037944dda9bb05eba1d0e1d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0513: TooManyFunctions \u2014 35 functions. The bar is 30 functions; this is 5 over it, 1.17\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0513.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93da8ddc51319d53f2d2377fac81388718aaef25fe53b7dcf0e14176026bb04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0030.erl: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 49 functions. The bar is 500 significant lines; this is 73 over it, 1.15\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41473386361a3dfd8093c3aefbe1c9169064da1599afc82b982a114ff6bd119d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: unifiedpush: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/unifiedpush.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5872944c0beb20c8e0c54500a799a11598d51b49c5e795bc4509bc1f242897"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0402: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0402.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1dba86759a9bd7cb6b72eef27767bb6a62f65123c5a0b6028ffdafb5f37fc2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0430: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0430.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d0f49e0c4d004118db5c99c28d7d35643d9e135e92f8a22744f6f29d540dd3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/xep0424.erl: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 43 functions. The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0424.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2de23905bd0119473098cda7924a52690c4d8aab17521678472275dde4e87e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0033: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0033.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a9d26fdbf17a37e4383145becdfe89bef3fb55dd30f4af437affa80feeb959"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: xep0377: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0377.erl"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef257345881a82bbb19b4ed890fa78f84a65223ff39f71c0442d0dcadaa50b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rfc6121.erl: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 44 functions. The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ecd321a9cbbb6c78e44c0ee66dc65e60eaeb642385279dc5e01e888abb4a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): src/xmpp_stream_in.erl:370-484 | src/xmpp_stream_out.erl:397-489 \u2014 These two members are variants of one another: 54 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"802c8c61188cdac6e9638785776ca8e357e6cfc7dd7239710d85431923d9a73e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (23 members, 50\u002B identical tokens): src/muc_request.erl:360-377 | src/muc_roomconfig.erl:1673-1699 | src/muc_roomconfig.erl:1727-1752 | src/muc_roomconfig.erl:2233-2253 | src/muc_roominfo.erl:989-1015 | src/pubsub_meta_data.erl:883-922 | src/pubsub_meta_data.erl:928-954 | src/pubsub_node_config.erl:1514-1554 | src/pubsub_node_config.erl:1582-1616 | src/pubsub_node_config.erl:1797-1825 | src/pubsub_node_config.erl:1886-1911 | src/pubsub_node_config.erl:1918-1942 | src/pubsub_node_config.erl:2050-2077 | src/pubsub_node_config.erl:2125-2154 | src/pubsub_publish_options.erl:1516-1556 | src/pubsub_publish_options.erl:1584-1618 | src/pubsub_publish_options.erl:1799-1827 | src/pubsub_publish_options.erl:1888-1913 | src/pubsub_publish_options.erl:1920-1944 | src/pubsub_publish_options.erl:2052-2079 | src/pubsub_publish_options.erl:2127-2156 | src/pubsub_subscribe_options.erl:668-691 | src/pubsub_subscribe_options.erl:698-723 \u2014 These 23 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 23 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 23 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_request.erl"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"773d503bdee1e5c51eda967348886221aaeb6c319d8eae4586248fe27bcc5b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): src/captcha_form.erl:137-153 | src/flex_offline.erl:122-138 | src/http_upload.erl:123-139 | src/mam_query.erl:128-144 | src/muc_register.erl:128-144 | src/muc_request.erl:125-141 | src/muc_roomconfig.erl:156-172 | src/muc_roominfo.erl:139-155 | src/pubsub_get_pending.erl:122-138 | src/pubsub_meta_data.erl:134-150 | src/pubsub_node_config.erl:154-170 | src/pubsub_publish_options.erl:154-170 | src/pubsub_subscribe_authorization.erl:125-141 | src/pubsub_subscribe_options.erl:129-145 | src/push_summary.erl:125-141 | src/xdata_codec.erl:185-196 \u2014 These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c885f73f9b85a7dc0c79bbfa843b19928c44f277dafc5f3ac64a6fab5c3af5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): src/captcha_form.erl:155-173 | src/flex_offline.erl:140-158 | src/http_upload.erl:141-159 | src/mam_query.erl:146-164 | src/muc_register.erl:146-164 | src/muc_request.erl:143-161 | src/muc_roomconfig.erl:174-192 | src/muc_roominfo.erl:157-175 | src/pubsub_get_pending.erl:140-158 | src/pubsub_meta_data.erl:152-170 | src/pubsub_node_config.erl:172-190 | src/pubsub_publish_options.erl:172-190 | src/pubsub_subscribe_authorization.erl:143-161 | src/pubsub_subscribe_options.erl:147-165 | src/push_summary.erl:143-161 \u2014 These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"654cbe2dce5b5a996f63ee1cdbb07f2f0e55a5e74251cdd8c1f605cbd796c12c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): src/captcha_form.erl:183-195 | src/flex_offline.erl:171-183 | src/http_upload.erl:174-186 | src/mam_query.erl:174-186 | src/muc_register.erl:181-193 | src/muc_request.erl:175-187 | src/muc_roomconfig.erl:205-217 | src/muc_roominfo.erl:188-200 | src/pubsub_get_pending.erl:173-185 | src/pubsub_meta_data.erl:183-195 | src/pubsub_node_config.erl:203-215 | src/pubsub_publish_options.erl:204-216 | src/pubsub_subscribe_authorization.erl:183-195 | src/pubsub_subscribe_options.erl:179-191 | src/push_summary.erl:171-183 \u2014 These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13b65b4ecff8c703745c2d71e800eb770320f28054555dec3207e9a9ed2c236"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): src/captcha_form.erl:268-762 | src/flex_offline.erl:205-245 | src/http_upload.erl:207-246 | src/mam_query.erl:231-433 | src/muc_register.erl:234-449 | src/muc_request.erl:224-354 | src/muc_roomconfig.erl:423-1650 | src/muc_roominfo.erl:293-932 | src/pubsub_get_pending.erl:213-252 | src/pubsub_meta_data.erl:281-696 | src/pubsub_node_config.erl:430-1508 | src/pubsub_publish_options.erl:432-1510 | src/pubsub_subscribe_authorization.erl:230-364 | src/pubsub_subscribe_options.erl:264-530 | src/push_summary.erl:219-339 \u2014 These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2890626227580b1abe4410808ce8a22ddae415d543b80a18d9fe61413959b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/mam_query.erl:526-547 | src/muc_roomconfig.erl:1935-1952 | src/pubsub_node_config.erl:2100-2116 | src/pubsub_publish_options.erl:2102-2118 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mam_query.erl"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c96efceb62a57a31a8927414122f81921a0e8fe915a83bf97d6408039d8b419"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/pubsub_get_pending.erl:257-272 | src/pubsub_meta_data.erl:765-780 | src/pubsub_node_config.erl:1831-1846 | src/pubsub_publish_options.erl:1833-1848 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_get_pending.erl"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cf7f8e82ab14069270c53e0a0fea1edbfb3aa17504829231c8436b08d7e557"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/rfc6120.erl:4793-4817 | src/rfc6120.erl:5736-5770 | src/rfc6120.erl:6355-6389 | src/rfc6120.erl:6806-6822 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4793}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c72ee9bed002e706b5173509812b9b8358d3ad9d3a06e9fc6983f3d06be46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/xep0054.erl:340-414 | src/xep0054.erl:416-491 | src/xep0054.erl:493-524 | src/xmpp_codec.erl:1825-2228 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d2076cc4db528edb9df90ef10f53f7b6fc9f0d346b9c8257b0343437baf108"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (695 corresponding lines): src/xep0054.erl:4783-5477 | src/xep0054.erl:6053-6747 \u2014 These two members are one piece of code written twice and then edited apart: 695 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4783}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91cf6a6e5badb6fef8f43d86225f1faf8b38ff91339b34da5f7589244bbf667"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 529\u002B corresponding lines): src/rfc6120.erl:1400-2020 | src/rfc6120.erl:4145-4778 | src/xep0198.erl:159-687 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 529 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f54fc3afad394d740c81388d8f49621a25cb9fb3710bc337463f37ce9a3335"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (369 corresponding lines): src/xep0166.erl:826-1315 | src/xep0388.erl:833-1201 \u2014 These two members are one piece of code written twice and then edited apart: 369 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0166.erl"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17d9349087f71e9ae8c51cdf990d5b8c93e62f1b366200c27644d0ff47f9cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 239\u002B corresponding lines): src/xep0054.erl:5627-5922 | src/xep0055.erl:90-335 | src/xep0059.erl:115-353 | src/xep0234.erl:551-857 | src/xep0313.erl:1279-1517 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 239 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5627}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08460b68cb99c8c97d61054c41500e0238ec8d2006dc7634f44a499f4a95171"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 248\u002B corresponding lines): src/xep0045.erl:1405-1652 | src/xep0060.erl:1522-1812 | src/xep0060.erl:4534-4831 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 248 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3ba48a0199aa1668757e979de03db0727ac5244835faacc71faa96ab0bf9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (195 corresponding lines): src/rfc6120.erl:5473-5667 | src/rfc6120.erl:6089-6286 \u2014 These two members are one piece of code written twice and then edited apart: 195 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5473}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c5b5f3435e5e67ba58d485b5fae3343f34a00d1639dde4973af7535c0dd86e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 153\u002B corresponding lines): src/xep0004.erl:152-311 | src/xep0004.erl:619-791 | src/xep0022.erl:64-216 | src/xep0054.erl:6892-7044 | src/xepXXXX.erl:160-342 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 153 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f78d9e342ecdbe0257eca184c318015b27e01e12a8d108962ddcaf787bff00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): src/xep0060.erl:667-751 | src/xep0060.erl:753-837 \u2014 These two members are one piece of code written twice and then edited apart: 85 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e1cc897752e891ce5ce7ec641639e620086e01923188d4aae3cb4e77dc6d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (104 corresponding lines): src/rfc6120.erl:1124-1252 | src/xep0513.erl:219-322 \u2014 These two members are one piece of code written twice and then edited apart: 104 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a906041b99b72754a992d6bcc8845d5028b113321b91c8842aba66a39ae6af8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 116\u002B corresponding lines): src/xep0016.erl:440-555 | src/xep0055.erl:424-539 | src/xep0078.erl:98-213 | src/xep0260.erl:157-308 | src/xep0377.erl:86-206 | src/xep0388.erl:608-737 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 116 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e5fd2c415af2553edf80800be506e68f0fbe90a37cd97197abf3bb2570d8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): src/muc_roominfo.erl:206-291 | src/pubsub_meta_data.erl:201-279 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roominfo.erl"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2427470b2119965211c588ecf6698bdd676cdefd35ea7f7a880401d29ddb1f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (96 corresponding lines): src/xep0066.erl:53-148 | src/xep0363.erl:1198-1323 \u2014 These two members are one piece of code written twice and then edited apart: 96 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0066.erl"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02b157c9272e836c9a92e96c28e69204ff16802e4313774bd26d90504d4b1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/rfc6120.erl:774-802 | src/rfc6120.erl:804-845 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c24f9ef5246af9437728e1b430176bcffe157daeee5c51b7ed9976f19c3073"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 83\u002B corresponding lines): src/xep0054.erl:3852-3934 | src/xep0054.erl:4081-4163 | src/xep0054.erl:4214-4296 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 83 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":3852}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc6073ada3258db0d565a36f6c8bc841ba509ff8d2b3f71c6243766dd7b98ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 84\u002B corresponding lines): src/xep0016.erl:126-209 | src/xep0030.erl:309-396 | src/xep0065.erl:109-193 | src/xep0166.erl:346-441 | src/xep0388.erl:2241-2339 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 84 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ada5e672b7908af521ca8f5b3469df291a1bc4e834ba2a167a02fd2c91e7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 84\u002B corresponding lines): src/xep0013.erl:78-161 | src/xep0045.erl:1206-1298 | src/xep0050.erl:131-214 | src/xep0386.erl:263-357 | src/xep0388.erl:1961-2058 | src/xep0425.erl:233-328 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 84 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0013.erl"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"29793626b54e1d31fce4bc18c0c83a5e536821031eaa49a6ebba117b1683151b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 67\u002B corresponding lines): src/rfc6121.erl:334-400 | src/xep0060.erl:5648-5736 | src/xep0249.erl:55-121 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 67 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0c282866722d0e70d566eea28b2fff4b629eb52c0d5621e1e2ff0ce48a784a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 64\u002B corresponding lines): src/rfc6120.erl:5669-5734 | src/rfc6120.erl:6288-6353 | src/rfc6120.erl:6741-6804 | src/xep0033.erl:194-259 | src/xep0084.erl:241-306 | src/xep0084.erl:422-505 | src/xep0260.erl:567-653 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 64 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5669}}}],"partialFingerprints":{"codehealthFindingId/v1":"540bcf73188df725e44df59c3187e42ee6e6bbcb9bdcb4500c10693b4242d84b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 86\u002B corresponding lines): src/xep0045.erl:624-724 | src/xep0045.erl:922-1022 | src/xep0045.erl:1754-1854 | src/xep0045.erl:2376-2461 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 86 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8aaaa74669beb89a610b1fd43c9034f12916ce5f9714e14d79cff983cf15ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 76\u002B corresponding lines): src/xep0369.erl:524-609 | src/xep0369.erl:684-763 | src/xep0369.erl:881-956 | src/xep0403.erl:44-129 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 76 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0369.erl"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"475ff6def0203cd935114e1f8117050322ef2511374b15da398fade96f2b8082"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): src/xep0045.erl:337-406 | src/xep0402.erl:90-175 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a15ba8d0a5016fea9085dba3c9819f83101e7ca554db804220da9cbe7254f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): src/xep0054.erl:3321-3421 | src/xep0077.erl:1892-1968 \u2014 These two members are one piece of code written twice and then edited apart: 77 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":3321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b0e2163b9d22184f5dc344ed547930122f88cc667949330716b5a833b94409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 61\u002B corresponding lines): src/xep0363.erl:554-620 | src/xep0417.erl:293-359 | src/xepXXXX.erl:596-656 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 61 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0363.erl"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"2974299b242f0418f2204692a8ebf3fe9dfc76e472e27207b47989063387e8a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 51\u002B corresponding lines): src/xep0045.erl:726-776 | src/xep0045.erl:1024-1074 | src/xep0045.erl:1856-1906 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df0f5b76da22a1683625263f04d3feee7b39380db98ad7294d889091ad1db61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 50\u002B corresponding lines): src/xep0016.erl:557-606 | src/xep0050.erl:216-281 | src/xep0166.erl:443-492 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 50 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"0027ce3282ff0ca4ea77539de0b60259b0167dd509a25bd6efa1aa2b66af0196"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): src/xep0030.erl:511-561 | src/xep0166.erl:676-728 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e23493bae7f48b235582a3961741b5abe18b8c9cdf988e5aa5d87e262bc6481"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 50\u002B corresponding lines): src/xep0060.erl:4994-5044 | src/xep0060.erl:5158-5208 | src/xep0198.erl:1120-1185 | src/xep0313.erl:549-598 | src/xep0363.erl:837-888 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 50 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":4994}}}],"partialFingerprints":{"codehealthFindingId/v1":"592266e5e03a5886266cf5a2a17803d45d26383daab5beda6dc4f825919647ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/xep0220.erl:224-269 | src/xep0424.erl:343-392 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0220.erl"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2cba4fa8c3563df4eace1b310aae1ac0ac11af796a777c8e1ee664a4fb9eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): src/xep0355.erl:212-266 | src/xep0356.erl:164-218 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0355.erl"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b49d064e7a3795c0933622e24e5fecbea7e55560de2161476beac1a89a8a7c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 55\u002B corresponding lines): src/rfc6121.erl:142-196 | src/xep0030.erl:104-158 | src/xep0060.erl:4928-4992 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 55 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"256b640846af91603e990430f241d751b12a2e4e9f13726a398a5a404a6686c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): src/xep0048.erl:94-150 | src/xep0048.erl:271-325 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a962e69fa52c43451fc4131b7e1cb6cc92ec11c7b4e3291af9a4f10db81f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/rfc6120.erl:3970-4015 | src/xepXXXX.erl:484-523 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3970}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ce4deaee5325c92338457e446925ebdbe665d7512a49e8bbf434cf21b2a964"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 54\u002B corresponding lines): src/xep0045.erl:2198-2267 | src/xep0424.erl:488-541 | src/xep0425.erl:412-465 | src/xep0425.erl:653-706 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 54 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":2198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded2d26e3e4e93fc8cece32f51dd95824d582f52715049316f0cf9edf2404869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/xep0313.erl:875-920 | src/xep0313.erl:951-996 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"add63ab819c9fa5dcb4d7bb4e0f9c7a24c48e52114689e4e2e1a066629330222"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 55\u002B corresponding lines): src/xep0054.erl:3987-4041 | src/xep0388.erl:285-349 | src/xep0422.erl:110-174 | src/xep0425.erl:514-579 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 55 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":3987}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cacbd5b336a7b089d733b2f68802d5b877c43b6edce3ac9f8e4540e789030c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/xep0220.erl:180-222 | src/xep0220.erl:380-422 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0220.erl"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7820e19d12b5b98d60769ffa35caab76116ee3997f2d633d51bf80d7f677e683"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/muc_roomconfig.erl:2099-2125 | src/pubsub_subscribe_options.erl:623-661 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roomconfig.erl"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0a1b9f6d99555fb4cf8fdecee149d3be5b41674f969be9a53d9e0dfeef88cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/muc_register.erl:199-232 | src/muc_request.erl:193-222 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_register.erl"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ca4ad6ef9a7ed4acedbc1cc920d4aac9144feea4724617c12395107a280317"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 43\u002B corresponding lines): src/xep0369.erl:1070-1112 | src/xep0405.erl:162-204 | src/xep0405.erl:294-336 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 43 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0369.erl"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebf7b2f9618befca57913e2c5e7e6213ed075b1a3960c023cbfef2d2112c1b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 52\u002B corresponding lines): src/xep0054.erl:5479-5530 | src/xep0054.erl:6749-6800 | src/xep0060.erl:3074-3131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 52 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5479}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf4c8602037eb5d9b34785cf09014541af73b75f1abfceeb17ca52245eb5f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/xep0039.erl:166-197 | src/xep0048.erl:327-363 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0039.erl"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b83e58878dfb0176873256b3d76954d22b335ef9b6b442301b66f516ee10fa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): src/xep0054.erl:679-774 | src/xep0077.erl:324-395 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba49619c08d56450cbfec8c2381fb5986a03ec9b3d82dcdac9469f47c8fef114"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/xep0065.erl:195-228 | src/xep0260.erl:310-347 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0065.erl"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"51231773627cb7b63a09f6917bf43fcd0bff7462725f34c9a794d3eacadea4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 33\u002B corresponding lines): src/xep0004.erl:793-825 | src/xep0220.erl:424-456 | src/xep0231.erl:62-95 | src/xep0356.erl:297-332 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"36419792d09fabaf1a65a0b8460183617d767ef4dc706bf79b5bd4fbad1c2354"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): src/xep0030.erl:216-248 | src/xep0060.erl:3818-3851 | src/xep0060.erl:4022-4057 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"389ec664fc11e02badb71ab0ce3e2341f44c957f294d90f23ddf150806557294"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 32\u002B corresponding lines): src/xep0060.erl:5409-5447 | src/xep0060.erl:5530-5566 | src/xep0198.erl:945-977 | src/xep0198.erl:1031-1063 | src/xep0198.erl:1275-1307 | src/xep0313.erl:1115-1148 | src/xep0369.erl:765-796 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":5409}}}],"partialFingerprints":{"codehealthFindingId/v1":"307a433a09e2d24444070d3455c09d2d7bbb0a3ea153463d0368480de594be82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/xep0430.erl:95-131 | src/xep0430.erl:220-252 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0430.erl"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"669fc6cb345df4e72a07b55bfb1809c6679656e7480cad5b102be6b771afcf4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/xmpp_stream_out.erl:1269-1283 | src/xmpp_stream_out.erl:1328-1349 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f129be2239fab9cf3418885dcc1ff247b9008e787201f8ed1256ca6c05734de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/xep0166.erl:205-220 | src/xep0166.erl:222-238 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0166.erl"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eabc8274ab391aa4ca591e1495a7fb52304edba735f2c840138f926ae176abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0313.erl:175-183 | src/xep0313.erl:185-196 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2caf65705154c4e64f104ee6cdb535faca5f58400e5226aaab6cd277125cf1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/xep0004.erl:406-428 | src/xep0004.erl:459-488 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad110922ae823d8b52c1a5fe0ca9c23d356679e4501e480c332e2b9e94672b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/xep0215.erl:130-159 | src/xep0215.erl:195-216 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0215.erl"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2473815c6e07774d0917238acee4c1a7cafa08985ccbe6f79eb58b0a8e36af63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/xmpp_stream_in.erl:1074-1092 | src/xmpp_stream_in.erl:1325-1344 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4053758e6f1ed4b90ddbd577556ae2632f7526a333cd2095ce559e7bdbb3cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): src/p1_mucsub.erl:174-203 | src/p1_mucsub.erl:365-395 | src/p1_mucsub.erl:433-462 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/p1_mucsub.erl"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"882a0f3e00eacef17ec11a75c14594d76a8b4816002e5c72bc5d07a9bad5a60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/xep0355.erl:80-109 | src/xep0355.erl:312-334 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0355.erl"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbcab682561d7c7f46fb89362ee81341c0cca7b910d86a1ea4a4acf10165220"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/xmpp_stream_out.erl:1287-1308 | src/xmpp_stream_out.erl:1353-1375 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5151f8d54ec6f90715c9ae0e67b366601f9d86d778b2ce6f7d10118051b48a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/rfc6120.erl:2930-2959 | src/xep0484.erl:246-267 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2930}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cf5c4c7ee9f7d2b4d7bb3e09162f1a4b69185c3fce7cdcdf5f5cb7b8e614ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 21\u002B corresponding lines): src/xep0016.erl:346-371 | src/xep0045.erl:440-461 | src/xep0060.erl:3659-3696 | src/xep0060.erl:3930-3967 | src/xep0191.erl:71-92 | src/xep0191.erl:122-142 | src/xep0191.erl:168-188 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c1fe36388dee77fb93afd44b0ca6507f997332693fadb1a0483571f6243b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/xep0060.erl:4209-4240 | src/xep0060.erl:4311-4341 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":4209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2180fc06cd69d2015baf778ac1d6022f09f41cb7c074bf270246d13247e7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/xep0138.erl:121-150 | src/xep0138.erl:241-263 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0138.erl"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db7bee69e03fe498664db789c18d3a368b06e74f45e863c921188f0f99bac72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/xep0054.erl:5924-5957 | src/xep0234.erl:859-893 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5924}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de8977f89125fa7a99685c8672016c5faa834e7233a385954f859f9d86b670d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): src/xep0280.erl:92-126 | src/xep0280.erl:155-189 | src/xepXXXX.erl:429-451 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0280.erl"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06b80d52e42d934296e97ecd2096fb6253ac0c19bc6921f6f194482a12af342"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 20\u002B corresponding lines): src/xep0060.erl:3403-3430 | src/xep0060.erl:3480-3508 | src/xep0060.erl:3541-3569 | src/xep0060.erl:3789-3816 | src/xep0060.erl:5314-5344 | src/xep0215.erl:305-324 | src/xep0357.erl:67-95 | src/xep0357.erl:199-219 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":3403}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1b6f8398ce0f8ff9e0e659f8b7a4fe2b8297276642d88db32e85e3679868cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): src/xep0313.erl:529-547 | src/xep0430.erl:74-93 | src/xep0430.erl:317-337 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"922b3ba58fc18cac2b9ef18b543066f0e1c6a8c855bf7a41ecb661ba2652beb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/xep0234.erl:130-143 | src/xep0234.erl:145-160 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"246a0a04e6efb7006213fb48a0dbc3d8f529ca58f6f883137f6416d253e0cd68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): src/xep0417.erl:173-208 | src/xep0417.erl:620-646 | src/xep0417.erl:680-709 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0417.erl"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"75de78463c4157ff00d42bfcd6ed79f8779054a0efd80fe900c097f5287d4194"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/xep0234.erl:261-295 | src/xep0234.erl:468-496 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c067df7d718cd5f028e91766e320ddbb6d21e903ed183c177ea53a10ddcebc9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/xep0039.erl:76-96 | src/xep0039.erl:145-164 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0039.erl"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d74f97079cd8d1b1f0a33e7d4f813a8fa77018d720c92351ac5e0742b66993"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 30\u002B corresponding lines): src/xep0485.erl:166-201 | src/xep0485.erl:273-308 | src/xep0485.erl:348-377 | src/xep0485.erl:439-468 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0485.erl"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd81de2c36550df0671b506293ebbbed656ed2a23fe9ac898642aa940bcab1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/xep0055.erl:337-367 | src/xep0059.erl:355-385 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"345684b49006479093fa7a890bf650c391ee41dec239128f31444573854901b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/unifiedpush.erl:107-132 | src/unifiedpush.erl:288-313 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/unifiedpush.erl"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c22fcb0d0ef0211348e91d895b4c2e75375eddf7f09459d023529b49b91fdd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/xep0198.erl:689-700 | src/xep0198.erl:867-877 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0198.erl"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0d6f5971caf4210de5f67607eb2298f2758579759a5c576f2a582614ac56a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): src/xep0369.erl:389-410 | src/xep0369.erl:458-479 | src/xep0405.erl:206-230 | src/xep0405.erl:338-361 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0369.erl"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a91080d899dced75dead0bde042ea69a52629c37c771afcff68e349d134e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/xep0045.erl:2269-2290 | src/xep0045.erl:2594-2615 | src/xep0203.erl:55-66 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":2269}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc236f76cd041f4ffa9c1a11e67a77514f5d20811f46585515c0e643ec6d3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): src/xep0313.erl:357-380 | src/xep0313.erl:440-463 | src/xep0313.erl:1199-1210 | src/xep0359.erl:65-86 | src/xep0359.erl:176-187 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e75569f021a985c2944a3d5304eb487d58b622a1ecc35901c2f9af3adedfbce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): src/p1_mucsub.erl:94-115 | src/p1_mucsub.erl:464-485 | src/xep0045.erl:536-557 | src/xep0045.erl:2123-2144 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/p1_mucsub.erl"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b540e407d81125ed90087090a59fe0c144666ab195c4460d77cf1b3b0d8665"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/rfc6120.erl:4780-4791 | src/xep0356.erl:435-456 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4780}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b5575b44c7536ff7e716745c0f355fd2a65183f44c96f8a6af3e6ae5abe2bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 15\u002B corresponding lines): src/xep0013.erl:205-226 | src/xep0060.erl:3698-3719 | src/xep0060.erl:4128-4149 | src/xep0357.erl:126-146 | src/xep0357.erl:221-235 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0013.erl"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"23707f15863c6022455b02877805a45b4e330d1c2dae2707f1b727d26fd85854"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): src/xep0048.erl:199-219 | src/xep0234.erl:297-321 | src/xep0234.erl:387-411 | src/xep0402.erl:177-202 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8137cc1107b50a0ce71e980f57d6fc189fa6457ad718b97057f38b753077b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): src/xep0016.erl:608-638 | src/xep0045.erl:778-805 | src/xep0045.erl:1076-1103 | src/xep0045.erl:1908-1935 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"37016c128888b9d7cdcd146c372d03e3cc96e6c49732d2d6d9f997ae745e0a68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 29\u002B corresponding lines): src/xep0045.erl:1654-1682 | src/xep0054.erl:4670-4698 | src/xep0060.erl:1814-1842 | src/xep0060.erl:4833-4861 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":1654}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b544347a62c12ad3925377d3262c75663e25c422c6ecf1f1428d58af5c499e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 48\u002B corresponding lines): src/xep0054.erl:4734-4781 | src/xep0054.erl:6004-6051 | src/xep0060.erl:1888-1941 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 48 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4734}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9aed7dbe6736b0e0ee323fedd5063f781cc2873100e730790e9829326a34b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/xmpp.erl:309-314 | src/xmpp.erl:319-324 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp.erl"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fb67a130145b302fd4b276a53f051f73e99e79d2dfeefead6ca781ac59e481"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/xmpp_stream_in.erl:1724-1739 | src/xmpp_stream_out.erl:983-996 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7185cdd3a3572a1add875ecd2206f4854fd62b8206e610e29ac04d40f8f035"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/rfc6120.erl:5443-5471 | src/rfc6120.erl:6059-6087 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5443}}}],"partialFingerprints":{"codehealthFindingId/v1":"4451d8177bf65cb0d37fb04d1d4ee53e56ec936f15772706350501e77155bd68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/xep0004.erl:321-347 | src/xep0004.erl:827-858 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ed9737333258703b8402fe999d738fe2172bf1dca436b0a0d04e96ed7dbd99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/xep0022.erl:218-242 | src/xep0054.erl:7046-7070 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0022.erl"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ace8cc7cabdbdea2d226f8d624859c42f1b55184a1abaf9694d12509e32f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/rfc6120.erl:1254-1279 | src/xep0513.erl:324-353 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab580f646be74fe029e6629cc7df5d01f7f81002586017895be5614b06bb2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/xep0220.erl:271-292 | src/xep0220.erl:458-477 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0220.erl"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8d8d66b14a52a7ab7f251ef92a07c915fabc94f2ec8e40a9f45e9285439db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/xep0425.erl:343-364 | src/xep0425.erl:592-610 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0425.erl"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e0b093b86e9487a191180a7ce61dfb45ea920d32caa140ffe1479625aac94d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/xmpp_stream_in.erl:1211-1222 | src/xmpp_stream_in.erl:1224-1236 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a8eda466a346c792b31db73bd223b08b1bd7d811d305805720721ccc5cd300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/pubsub_meta_data.erl:802-814 | src/pubsub_meta_data.erl:819-831 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_meta_data.erl"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6ee2e6af78b2b2b04939e4ad0aced119b914643fb51284d55c6610b2fbc5a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/xep0050.erl:283-312 | src/xep0050.erl:614-636 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0050.erl"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd8c51c26f7a6396b5c6454e62a961a6f450fcc1b054ab66fd10e9b0c146d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/xep0084.erl:507-528 | src/xep0260.erl:655-676 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5fd9c8ab5dfe476a55c08305af599e85512f6951cf514b6a5a4241f0009fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xmpp_sasl_oauth.erl:40-52 | src/xmpp_sasl_plain.erl:41-56 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_oauth.erl"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"04706bb27b74aea50a6bc0f82077ac210b05f871a226d0a3634cfcaed856c640"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/xmpp_sasl_oauth.erl:76-82 | src/xmpp_sasl_oauth.erl:86-91 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_oauth.erl"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a00a5623f422df479295e0975f5f2dbb01acfe58ec6a06be19da7d865f523b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/pubsub_meta_data.erl:866-877 | src/pubsub_node_config.erl:1851-1864 | src/pubsub_publish_options.erl:1853-1866 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_meta_data.erl"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0bbc7808c8d0b4d1db143698200f4b82f920751f3566493e7dd1c34186e790"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): src/xep0388.erl:351-365 | src/xep0388.erl:739-761 | src/xep0388.erl:1203-1222 | src/xep0388.erl:1542-1561 | src/xep0388.erl:2076-2098 | src/xep0388.erl:2341-2360 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0388.erl"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"880ee352f4e91dcc44d9a98f8ceccb253e45e68e75d3f98294a631ee46f0fde0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): src/xep0016.erl:211-226 | src/xep0045.erl:1300-1315 | src/xep0078.erl:215-237 | src/xep0092.erl:138-152 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b79fe3910ff1a09225ab8aa92d408b9ed1a62850d94aacaa33480c3d675a624"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): src/xep0313.erl:600-620 | src/xep0313.erl:811-831 | src/xep0313.erl:1150-1168 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"f902e2dd131953b560806e1214a5b034e968505d0a25d708ddc974029341c9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): src/captcha_form.erl:811-823 | src/mam_query.erl:438-447 | src/muc_request.erl:382-391 | src/pubsub_meta_data.erl:734-744 | src/pubsub_subscribe_authorization.erl:400-409 | src/push_summary.erl:383-394 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc65f606547f05d2658b76a260b415cc58482a32b3039d4bdb109c5939ca810"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/muc_register.erl:454-466 | src/pubsub_subscribe_authorization.erl:369-381 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_register.erl"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"6681d0308fbf7487e8b9769a8ce05103f507a2ac7725648c4fff3f1eacff6d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/muc_roomconfig.erl:1873-1884 | src/muc_roominfo.erl:971-983 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roomconfig.erl"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"c978c181c6ba764675905eef563e8985d15d5cad00094ffeae1111cfd1305dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): src/xep0060.erl:5046-5068 | src/xep0060.erl:5210-5228 | src/xep0060.erl:5738-5759 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":5046}}}],"partialFingerprints":{"codehealthFindingId/v1":"16775909b30fc3828e9cfcd1c2cdb552e8efebc1f992bb2d22c5191c6bcf443f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/xep0363.erl:1077-1090 | src/xep0363.erl:1334-1354 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0363.erl"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8ff335f9939a17783498e06f7859e826914b3cf0e7ab9c3d1389bf1777e48e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xmpp.erl:448-460 | src/xmpp.erl:470-482 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp.erl"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"620729e6e21407bb84f3f97485a1da62dee5e80a2e7cddc21d3a93ef6d58168f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/muc_register.erl:527-536 | src/muc_request.erl:396-405 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_register.erl"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"67563b4868bf8f51de7264ff59d3ebc77c3b609f21d9750f761145fd7720667b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/muc_roomconfig.erl:1655-1667 | src/muc_roominfo.erl:938-950 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roomconfig.erl"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"866ecd011377a2cae76ad797b3e518d85c1b2b8ad24ee946118eb6910ef08457"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/pubsub_meta_data.erl:850-861 | src/pubsub_node_config.erl:2206-2219 | src/pubsub_publish_options.erl:2208-2221 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_meta_data.erl"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a9c40a9a0f4010e328affae6772b6a2dcfe63e5f280f683360ca2044a57748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/muc_roomconfig.erl:2175-2184 | src/muc_roominfo.erl:1037-1046 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roomconfig.erl"},"region":{"startLine":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a425e242635a1c573f60894b2be1fe99e4a431037a7ba9b81cad7230882ea79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/xep0234.erl:1124-1134 | src/xep0363.erl:1450-1460 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfc321647f959edd7f39b7d9c72617c490a31bc56c261fa78a7afd9afaec93d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/xep0405.erl:232-248 | src/xep0405.erl:363-379 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0405.erl"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"332e21b48333971f3a36f8c4df96702157cbc441e8f4d317836b7a5fde79db74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): src/rfc6120.erl:4917-4932 | src/rfc6120.erl:6832-6842 | src/xep0004.erl:383-393 | src/xep0033.erl:284-299 | src/xep0215.erl:677-690 | src/xep0356.erl:483-501 | src/xep0485.erl:125-143 | src/xepXXXX.erl:726-736 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4917}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e44485c8897fa17734a78ae1724b5e0ad303a8c121e319bcaf79a505507b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 24\u002B corresponding lines): src/rfc6121.erl:253-276 | src/xep0016.erl:413-438 | src/xep0045.erl:599-622 | src/xep0045.erl:897-920 | src/xep0045.erl:1729-1752 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"480d93ce82c0c1b6286cc3e7b040e16adbf7d95ce232df833b19c7df0f586b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): src/rfc6121.erl:448-458 | src/xep0030.erl:264-274 | src/xep0055.erl:599-609 | src/xep0191.erl:281-291 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f09c05ce3d463690bc7e16e08ea8211051af9a46d189a1fe9dd3e5803ec8f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/xep0045.erl:2292-2312 | src/xep0045.erl:2617-2631 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":2292}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa22524948a9c0039d3e4aad8610c20c41e0ee664a5c2d0eaeed356a2ca1871a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/xep0047.erl:266-283 | src/xep0261.erl:134-152 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0047.erl"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8444b42a786063dd49a24077087f147b16a5d831f4a5cdbfab57b43dea7c1930"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/xep0166.erl:494-521 | src/xep0166.erl:730-749 | src/xep0166.erl:1317-1336 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0166.erl"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28edca8d01146fb025257394b09f9529bd2a1cfe3cf2bc1ac457ab209e7ace7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/xep0198.erl:890-900 | src/xep0198.erl:992-1002 | src/xep0198.erl:1078-1088 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0198.erl"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"9249c7ce8f6ed3f4832f11d9d16e10f0fd4f5f27d6aa6d96d7c2df7f8ec9fa0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): src/mam_query.erl:452-461 | src/mam_query.erl:466-475 | src/muc_roomconfig.erl:1957-1968 | src/muc_roomconfig.erl:1973-1985 | src/muc_roominfo.erl:1051-1062 | src/muc_roominfo.erl:1181-1193 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mam_query.erl"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2dce248421e0f8912617b8e8e03721433d0e0d5beb8b726f3c82a4257c2e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0313.erl:922-934 | src/xep0313.erl:998-1010 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d3069d639473bb75c11d19a5da980e3c0bacc81f111607f7dc49ac0acbf844"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/xep0313.erl:1051-1061 | src/xep0328.erl:60-70 | src/xep0369.erl:1220-1230 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71f39d1594c62fcbbef48067ffa9a81b319a4a41786fbabf061dc45fe6ec827"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/captcha_form.erl:767-777 | src/captcha_form.erl:797-806 | src/captcha_form.erl:904-912 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4c8ed0b795beed1f378e6b99060da87c4a95c0ef0a13c867b0808db579ffdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/muc_register.erl:485-494 | src/muc_roominfo.erl:1214-1226 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_register.erl"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"3455bbbe047b647d018eebcd8b3cd352fbf1555e1b2f38edb953655fd952fe14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/rfc6120.erl:5968-5979 | src/rfc6120.erl:6588-6598 | src/rfc6120.erl:6663-6674 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5968}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3521739ad290d34148da9d1b489510847017e5826920f9bae01b4f220ea2361"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/rfc6120.erl:6704-6714 | src/xep0033.erl:143-157 | src/xep0084.erl:209-223 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":6704}}}],"partialFingerprints":{"codehealthFindingId/v1":"80749eed6d0cad3c68077ef70cbb3f3c7cec5066f4ccb289f0b80e22e4036b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/xep0060.erl:5496-5514 | src/xep0060.erl:5605-5623 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":5496}}}],"partialFingerprints":{"codehealthFindingId/v1":"f221580de04809ead6b8e04f82e813a8ffd30a578224044cb551af59269d6956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/xep0313.erl:1233-1246 | src/xep0359.erl:209-222 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2947f9eb8ba0c554f109c65ebc7b7564f82526e43fce1e4a15686ffe79553f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 11\u002B corresponding lines): src/xep0084.erl:638-648 | src/xep0417.erl:591-607 | src/xep0417.erl:804-814 | src/xep0417.erl:849-859 | src/xep0480.erl:105-115 | src/xep0480.erl:201-211 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"8310aeed1ac354b288ea940e84d299175a5c16045d53d5929f71336fb361ff3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/rfc6120.erl:4017-4029 | src/xep0386.erl:359-375 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4017}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f30575ab78f770afc1fba71702ac9861880b7e7c8ae92b6c289c649c42636be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/xep0048.erl:152-168 | src/xep0048.erl:365-388 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f17971387d2867b6b71aac434a5f9e13c56c8c60059387d0e83e1766332266"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): src/xep0055.erl:68-88 | src/xep0059.erl:93-113 | src/xep0313.erl:1251-1277 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9a9c8736dd9caa568bc43776b7e7f0a4cb6b782155a12c0f65ab7cf06acf11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0084.erl:178-192 | src/xep0313.erl:322-334 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"78da7b4c3ceccf7a2cf2293f1e877081ec81fdd4390621cde03654c60fdc329f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/xep0313.erl:408-426 | src/xep0313.erl:491-509 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a837d8dde33c128b1c1565eccffb80538b77b048f3cf01ca929ad1668054a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/rfc6120.erl:4131-4143 | src/xep0166.erl:322-344 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4131}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b49a73bb5f9c31085af9b8afecb2ebdcf40dc9eef4339dd9c1400dc53953c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0220.erl:164-178 | src/xep0220.erl:366-378 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0220.erl"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1266f8ea4ce0623e263de4f18df254f2b46d0387064363eb1edfa150749f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): src/xep0369.erl:346-361 | src/xep0369.erl:798-818 | src/xep0369.erl:985-1004 | src/xep0369.erl:1123-1134 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0369.erl"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce4f4eb05b9e2b77be86ccb1c124a85f41c1bb4a54d0dba8ff868a9f0905960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): src/rfc6121.erl:207-225 | src/xep0030.erl:169-183 | src/xep0030.erl:407-427 | src/xep0039.erl:106-117 | src/xep0355.erl:120-135 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3680551adff5528cfcc746896c79ec73da0916ecd01a879f78962a55dddb8d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): src/xep0220.erl:294-310 | src/xep0220.erl:315-328 | src/xep0220.erl:479-495 | src/xep0220.erl:500-513 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0220.erl"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b5652792d057a67e39ff51663313259a4c8c76816df3e4019930e79be9273e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): src/rfc6120.erl:1094-1122 | src/xep0054.erl:5603-5625 | src/xep0234.erl:520-549 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06851eeb19965b9f558e837fc9d3d43ee9e0e4e433ecbe18106fbddd12e4b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/xep0060.erl:5449-5464 | src/xep0060.erl:5568-5583 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":5449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0875e508f2dc0f5a0b1b4b1d526fe8bde050f400c3f6e53ff391365b4adeeea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0430.erl:133-151 | src/xep0430.erl:254-266 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0430.erl"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a3e8f23d27ebf15f2de97e6853f13d5fce69edfbaf81e6ecfb062662c08a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/xep0060.erl:5131-5144 | src/xep0166.erl:617-635 | src/xep0424.erl:289-302 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":5131}}}],"partialFingerprints":{"codehealthFindingId/v1":"167ae6bbe2ceadd0122da5380d9079d3a773bc98a6bbbaeb221cf7114c40bd72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/xep0424.erl:394-413 | src/xep0424.erl:552-570 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0424.erl"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"70209933ca7494560bd1b822116e7f3cdbc6f18593d6ddcd8ec3198735af269f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/xep0039.erl:286-299 | src/xep0363.erl:521-537 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0039.erl"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb4459ba165f7750ee8f2399aa32588543824b61b1f9f445b781195ceb5380f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/xep0260.erl:692-710 | src/xep0279.erl:223-233 | src/xepXXXX.erl:741-751 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0260.erl"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa10537a5d1081f0ebb30857ffea2aefd73d557f4fe2516d43986b17f3ab9f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/xep0313.erl:514-527 | src/xep0363.erl:727-745 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"126771f3a9c45ab6342bbf9236d9f4aa1025a1bf044514476e2f6008dd67b3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/xep0363.erl:454-469 | src/xep0363.erl:631-643 | src/xep0363.erl:890-910 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0363.erl"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"854924505e1716296b9b36049b9316df1c4fd6a7a7b8ba4fe9f57ff2e16f85ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/xep0048.erl:250-269 | src/xep0402.erl:69-88 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bb09181d8af39dfd44d14afa9a4e226d1adcaa91c71b5ca2a394a6713a484a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/xep0355.erl:268-282 | src/xep0355.erl:344-355 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0355.erl"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"908f2cd0ce734fdddc2ad72c335a4a38e9e8f0ac925df3b49a0af7c6deb71f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/xmpp_stream_in.erl:872-882 | src/xmpp_stream_out.erl:645-654 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"861566ecf325b4bba3f54129803ee14032c8d32912e50611812f6edcd672320d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/xep0045.erl:829-845 | src/xep0045.erl:1127-1143 | src/xep0045.erl:1958-1974 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde09d234a182efed2c366f5c9a770b3dc871c0b8cfad5c429b7c5ecfdd9b02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/xep0047.erl:146-157 | src/xep0047.erl:244-256 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0047.erl"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"549cdee6f610d8d5582e01fcaa120ac85aaebb57b5d5d577fe33d0d76b5626cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/xep0388.erl:428-439 | src/xep0388.erl:1845-1863 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0388.erl"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9700dfd48def1998819d11c25ce8a33f401bce55f0b0c568ae07e6a37db3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xmpp_stream_out.erl:176-179 | src/xmpp_stream_out.erl:181-184 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"190a0b49f8ebf0cb91e118a361456395ff0b80cda26bea124bdc025b8094aec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/p1_mucsub.erl:243-262 | src/p1_mucsub.erl:397-409 | src/p1_mucsub.erl:487-504 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/p1_mucsub.erl"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fc7b52f812500e529fb243d0234fbd7d1b871f0f2290f9b6baec350e645fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): src/rfc6120.erl:2727-2737 | src/rfc6120.erl:3692-3702 | src/rfc6120.erl:4984-4993 | src/xep0166.erl:1473-1483 | src/xep0377.erl:354-363 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2727}}}],"partialFingerprints":{"codehealthFindingId/v1":"626f8ecbae63b9efdbe5c938be09418ffede40abfe7222dabbcbe5c8a5f0a46f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/rfc6120.erl:5905-5914 | src/rfc6120.erl:6033-6042 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5905}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d1cfb6af896c3318f12c957bb5b89f5262159293bcd9602171a6fb0cd29229"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/xep0045.erl:408-420 | src/xep0153.erl:75-86 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11043ed2ba1ef464ad83ab9a1cc644af2883cc934496e8257df30a86d54cf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/xep0045.erl:559-570 | src/xep0045.erl:2146-2157 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbbfcb88f75d6b94b8603aa2373a52d7818815f244fbb03c86069a1d53c8d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/xep0138.erl:265-275 | src/xep0138.erl:408-420 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0138.erl"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e58fd0fe76306ecfdb544bceb9b3e0e4ab8ab30b013f4e16e3d5d3eebe2e41d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): src/xep0191.erl:94-104 | src/xep0191.erl:144-154 | src/xep0191.erl:190-200 | src/xep0191.erl:259-272 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0191.erl"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3976539fb3fc8fd1bb0263f93006668da36b828003b71e57fa7564a782381b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): src/xep0198.erl:879-888 | src/xep0198.erl:979-990 | src/xep0198.erl:1065-1076 | src/xep0198.erl:1187-1205 | src/xep0198.erl:1309-1320 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0198.erl"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ebe4994fc56deec6599ed600f38c1f49825841f1176dc256b24d6aec0cab01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/xep0215.erl:161-173 | src/xep0215.erl:226-237 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0215.erl"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde8619876cab4f444b1fcd1a98a62098c64ab9d5ca57af08431780d64983acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0280.erl:128-140 | src/xep0280.erl:191-203 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0280.erl"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b630b2e219d7af18a2e4104ccab471c12d2f8539382e0fe218f4213b0b17be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/xep0356.erl:137-147 | src/xep0356.erl:220-234 | src/xep0356.erl:334-353 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0356.erl"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9cca372e18561e7062ff67334cf02957802341c9460681e217793841341a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0357.erl:97-109 | src/xep0357.erl:237-250 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0357.erl"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb0196527f988b82916254f8992e4f97f40c356557b287ed7352fb2ca6f59e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): src/unifiedpush.erl:134-149 | src/unifiedpush.erl:224-238 | src/unifiedpush.erl:315-329 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/unifiedpush.erl"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"961056bce8c2e1371e982701697a3d2f1f3ce927f71e22a16c6588d70fe9dbe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/xep0039.erl:199-213 | src/xep0039.erl:274-284 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0039.erl"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0a2d28ca60c1fe0d047e661c753fbe4ee8c033951733b39dfd9f3164341125"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/xep0045.erl:853-865 | src/xep0045.erl:1151-1163 | src/xep0045.erl:1982-1993 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d342ad223a08f749bbf0c53a4c2afa5985405ea64a9d3da5a29ba62f94452f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/xep0221.erl:95-107 | src/xep0221.erl:183-192 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0221.erl"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0bbd133433704e1153d4f2569f8464b95fc6837c40df5890db136b3c9ee7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/xep0313.erl:382-396 | src/xep0313.erl:465-479 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"184b437227b59a067c8432f056d5c7bc7c927940451fe152e618b38d0a1d21f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/xep0359.erl:88-99 | src/xep0359.erl:189-199 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0359.erl"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c16cf82e62274b996b24c93cf8ae6a63bc2e2c34522a70849d02ffb86f49a0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/xep0484.erl:112-123 | src/xep0484.erl:306-320 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0484.erl"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"46756ca33b692c4b43a557049ec6d068e760eec67095cdc8e8f5a79bd37b3bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/xmpp.erl:430-438 | src/xmpp.erl:510-518 | src/xmpp.erl:529-537 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp.erl"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e8ded7d154125e1cfe0e62fbf0cfc6d77b825705e4da795ff58dd72a72e38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 10\u002B corresponding lines): src/rfc6120.erl:2816-2826 | src/xep0049.erl:54-63 | src/xep0386.erl:146-155 | src/xep0386.erl:242-251 | src/xep0388.erl:496-506 | src/xep0388.erl:2178-2187 | src/xep0402.erl:314-323 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2816}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6af9a69f2dc9a05297c7d8ae59429a09cb0adf0f866a25cbf02310a02d5015"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/xep0004.erl:430-440 | src/xep0004.erl:490-501 | src/xep0004.erl:998-1011 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99ec877a39e4b3df99c2ea6eec12eeb8aa4c9c452b1095f1f843537e04c223d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0030.erl:295-307 | src/xep0065.erl:86-107 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f29e17d48e027d221a599d1d0c0da0f68b9ac7382d8242736a7fca1a790b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/xep0054.erl:3665-3675 | src/xep0054.erl:3729-3740 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":3665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d256a3d9fd3c14bc1e3bba41a192b04c1e4ed0aab7906efb89bc5f75af9be091"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): src/xep0485.erl:219-235 | src/xep0485.erl:310-322 | src/xep0485.erl:394-409 | src/xep0485.erl:470-482 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0485.erl"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7e779d56f0ee11bf64b61a0256f1d2c2824e52a1dab3125a64497c4440afe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0004.erl:63-66 | src/xep0004.erl:68-72 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dcf425941c88e813d52879e1cf29a0a3f9a83d1194ab630286c37e1fe427c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 12\u002B corresponding lines): src/xep0045.erl:1380-1403 | src/xep0054.erl:4461-4473 | src/xep0060.erl:1497-1520 | src/xep0060.erl:4509-4532 | src/xep0060.erl:5629-5646 | src/xep0084.erl:409-420 | src/xep0260.erl:548-565 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adecf97e86c2cd6e906c30cc4031500cdebc81223e2f115057888a6c9e89798"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 11\u002B corresponding lines): src/xep0060.erl:3249-3259 | src/xep0060.erl:3326-3338 | src/xep0060.erl:3370-3380 | src/xep0060.erl:3441-3453 | src/xep0060.erl:3580-3592 | src/xep0060.erl:4470-4483 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":3249}}}],"partialFingerprints":{"codehealthFindingId/v1":"421005281ee8eb5afc5998437349346cbb96c770b9b3f11690f886c4d30cb89e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): src/xep0363.erl:1128-1136 | src/xep0363.erl:1166-1174 | src/xep0363.erl:1401-1409 | src/xep0363.erl:1440-1448 | src/xep0363.erl:1489-1497 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0363.erl"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e45f9edb5c068367e9a687f504a898cadcac55fd8efeebf3d0132c8779d2774"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/xep0077.erl:141-168 | src/xep0077.erl:170-194 | src/xep0077.erl:196-221 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6053516bbef3e054dfa27b044b145d4bd40f96cfeff8972769c3024767ffe21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src/xep0234.erl:323-340 | src/xep0234.erl:413-426 | src/xep0234.erl:1023-1040 | src/xep0234.erl:1260-1269 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab24eaebe1d3c569f44add9e43ef64da6f9e4c2f5d0356d52bd61068890a5bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/xmpp_stream_in.erl:249-257 | src/xmpp_stream_out.erl:248-255 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"68216ef115e325b587d5ee946393ea57a359e117905997ccb56738cab4886499"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/rfc6121.erl:471-485 | src/xep0060.erl:5814-5830 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfea9d9d8ad6e99b2f6cceb6c38a56a964ce0b112e10ed6853cf948da1911a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0047.erl:288-300 | src/xep0261.erl:158-172 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0047.erl"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d945e71c4cff45833d2ca763808bbfbc0d10402d2659bf2fd116fafc80e9adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/xep0050.erl:398-413 | src/xep0050.erl:660-674 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0050.erl"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6efea453ab064120b442286321940702b338e3fbe7a7049586df89a5a44af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): src/xep0060.erl:3721-3735 | src/xep0060.erl:3853-3872 | src/xep0060.erl:3978-3991 | src/xep0060.erl:4151-4162 | src/xep0060.erl:4357-4370 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":3721}}}],"partialFingerprints":{"codehealthFindingId/v1":"9736d5685f9dd63b1a225984723ae64ce9631957a05f5c683d260f520b87c21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src/xep0369.erl:412-422 | src/xep0369.erl:481-491 | src/xep0369.erl:1290-1299 | src/xep0369.erl:1330-1339 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0369.erl"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb91aa3c384a888094f967542154788bbc597eda05a879cc8b0d5390ef10c5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/rfc6120.erl:2961-2973 | src/rfc6120.erl:3341-3355 | src/rfc6120.erl:3922-3932 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2961}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee26fa4800f4ecab5f9d61c20b522e0e379139235d73d2229c46299ccc767c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/rfc6120.erl:3802-3811 | src/xep0388.erl:1600-1609 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3802}}}],"partialFingerprints":{"codehealthFindingId/v1":"915d3aa9c51103bc93dcdc3f3755caf611efd1a06ebba2de23afad3c78477cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/rfc6120.erl:3851-3860 | src/xep0388.erl:1649-1658 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3851}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bbdb7d784e482973c67598298f707fc93bb3b1de59a45121800755700c7077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): src/rfc6120.erl:5799-5820 | src/xep0050.erl:472-483 | src/xep0220.erl:341-353 | src/xep0220.erl:518-530 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5799}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc61349030860628cebe605f11b1e22a3dd8233855d7d8bb0fa8ea04d98b49bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/rfc6121.erl:49-53 | src/rfc6121.erl:55-62 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c21cd0a0c6ecaae929f98b5808a74f5e0748f439c5f55c9b615928fa3f6818"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/xep0131.erl:79-90 | src/xep0131.erl:133-142 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0131.erl"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4c1bc70e30979d08810d23b71929c3b7d2253f013a3a7e06f18fceb4cdb41b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/xep0184.erl:62-72 | src/xep0333.erl:170-179 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0184.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"70844320dc11ecb634ca17878a4caa2896cfd56c6cba14ec975a2cbeb91e0c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0215.erl:554-566 | src/xep0013.erl:249-262 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0215.erl"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"3628ab1d99a12dee2c446e8fe8f591b9a14ed50f45315a0f47c5d4fb43a140b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/xep0231.erl:37-48 | src/xep0047.erl:109-119 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0231.erl"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"334cc8fefc3039ae0d708e6eec15032186b498a36d1f541a48cf0a7ad3608202"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/xep0369.erl:207-216 | src/xep0403.erl:32-42 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0369.erl"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba185f13ced830185236b8bef38dc9e106487e4e2f78e2a6fedbb622c82f68d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): src/xep0417.erl:235-252 | src/xep0417.erl:361-375 | src/xep0417.erl:648-659 | src/xep0417.erl:720-733 | src/xep0417.erl:785-794 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0417.erl"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c712402460c2b352bb5169b3150982c08cfdef541bd52cf77fac8a634986536"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xmpp_stream_in.erl:597-609 | src/xmpp_stream_out.erl:531-539 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbd8cfc8f01a78621153bf967d7cce4a6e7986f6c6eccf404c410cd476e955a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/rfc6121.erl:129-140 | src/xep0030.erl:92-102 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6121.erl"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"176275f67d9aa9af8163e3151547b8c748971bb32b720b059a42d43073d3b052"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): src/xep0004.erl:130-150 | src/xep0022.erl:51-62 | src/xep0054.erl:6879-6890 | src/xep0249.erl:43-53 | src/xepXXXX.erl:134-158 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85e2b0234eb960e3c44f0d2291120700c869d7c6719238895f056675d34ef47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0012.erl:80-92 | src/xep0045.erl:2840-2853 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0012.erl"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1aeda3f8d700e0c514364fd8e03fb99225424a8171e1584ba13570b992c282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/xep0050.erl:65-69 | src/xep0050.erl:71-76 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0050.erl"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ef8cc3ea92978a4f105e5cdd9fa000d339bacd59f6d0cf002deb7cd8b42a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/xep0065.erl:300-312 | src/xep0215.erl:659-671 | src/xep0260.erl:448-462 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0065.erl"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"6312019fcba8d390028d2bd1d34f25b800029ba39db2a39f25b02cdf8526d4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/xep0084.erl:369-382 | src/xep0221.erl:115-127 | src/xep0264.erl:161-173 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"740153355efc28702ba10eb7e00cfc5edb2f48b3f26f6f680b4130abebc2933b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/xep0084.erl:389-402 | src/xep0221.erl:133-145 | src/xep0264.erl:143-155 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e56f409d9ccbab5b37bc38d4decc4ef069c39902207da4c09c9bbba764fb6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/xep0166.erl:795-809 | src/xep0234.erl:346-360 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0166.erl"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb48541dc039c190e10bc92107a0d25ffa332aa59541016f96443a74ddce0c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0198.erl:923-931 | src/xep0369.erl:656-664 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0198.erl"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"588ac697a37ef55a958befa565fb418886eb3191d5934b2061eeca8b6b04bccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/xep0215.erl:36-50 | src/xep0215.erl:52-57 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0215.erl"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c0b2216baf4dd4a4e125cc25b91bd9edfb1d12319e6a212d3c3a06f943a474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/rfc6120.erl:3764-3772 | src/xep0388.erl:1404-1416 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3764}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c24bda099865f2d66d32c2114b08925958f09fbb52a04abcfacf6dda1bad83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/rfc6120.erl:3947-3955 | src/xep0388.erl:1925-1937 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3947}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed5dd2a7ef61e5db1acf48fe55325b6f0032f0826927928fa359d16c2f53f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/xmpp.erl:422-428 | src/xmpp.erl:521-527 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp.erl"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e8a3508c95841381182e7e20ace97a799335714ceca4d70d4cccb85f36b2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/xmpp_stream_in.erl:487-499 | src/xmpp_stream_out.erl:492-502 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f69daca80d069f46cf4c2cfd627a00e61b918d004aba563cb159801e436afbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/rfc6120.erl:3008-3016 | src/xep0388.erl:2213-2221 | src/xep0484.erl:218-226 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3008}}}],"partialFingerprints":{"codehealthFindingId/v1":"0754aa43c29ab559ff9ef784b3145ffe82f3dea375802cdaf3b01c7339a6504b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/rfc6120.erl:4063-4071 | src/xep0078.erl:294-302 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4063}}}],"partialFingerprints":{"codehealthFindingId/v1":"73780eb8d459ac377925fe5c72452a4e7b87749fcf6f68be8a64fc74a857e420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): src/rfc6120.erl:4107-4115 | src/xep0313.erl:1039-1049 | src/xep0369.erl:1209-1218 | src/xepXXXX.erl:776-784 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48f6777b6a7063e4d9041f42ed78f58d7d8f39a799f3be98d19aeb99c8e694b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src/rfc6120.erl:4937-4946 | src/xep0359.erl:114-127 | src/xep0424.erl:220-233 | src/xep0425.erl:382-395 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4937}}}],"partialFingerprints":{"codehealthFindingId/v1":"923cb1d02551b03a7672c48135230b9a6f8ff39fe554e2360abb48cc1315fbe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/xep0004.erl:573-581 | src/xep0055.erl:794-802 | src/xep0077.erl:2811-2819 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15079954d347e47df7d080d2917641742366ba1c877546a7aba617e3272e7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0004.erl:1096-1104 | src/xep0066.erl:211-219 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac07160256fe25cb051f2107a22bcb35a1b2c22fe41ca01b4cc7b20b8820f3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0022.erl:292-300 | src/xepXXXX.erl:569-577 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0022.erl"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef018ee8792f6bef0d3bbe6ce3e3349b98b5783c8bdf569da604b7a0dd093da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/xep0030.erl:481-490 | src/xep0386.erl:83-93 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e23c56f1d538ecc09d4492ca8539f1bacc5ba4aa11e9c81c73a0487e2b451c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): src/xep0045.erl:1362-1371 | src/xep0048.erl:484-492 | src/xep0077.erl:2684-2692 | src/xep0078.erl:380-388 | src/xep0402.erl:349-357 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"e505bb07a887b59e73fd408b2e090d06348a47026c019752be5ab57a0039ac6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): src/xep0045.erl:2050-2063 | src/xep0065.erl:534-548 | src/xep0215.erl:623-635 | src/xep0260.erl:738-752 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":2050}}}],"partialFingerprints":{"codehealthFindingId/v1":"0670494b3e9b82f011dc94681aaf5016db7227ef9a66f4723692dbc8d5bc6024"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/xep0045.erl:2700-2709 | src/xep0425.erl:150-159 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":2700}}}],"partialFingerprints":{"codehealthFindingId/v1":"348e43aca4fe17361d71c399d88b7cd88ce637b3221db9467a8a52f35ed0067e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): src/xep0048.erl:527-535 | src/xep0055.erl:675-683 | src/xep0077.erl:2727-2735 | src/xep0369.erl:1255-1264 | src/xep0402.erl:395-403 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"159b02026047ef21b8bad2041fb5d3068abd2bece1d352f09abca6fbf47fd83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0055.erl:638-646 | src/xep0077.erl:2520-2528 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ee3500de57d414370fefdc0fcaef665d925f2fa3c5b7e8b151632ef9b68035"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/xep0055.erl:712-720 | src/xep0059.erl:643-651 | src/xep0077.erl:2561-2569 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b001aee7a3299917b9bc198999699997de1927e2a9422b6dffa5a3696d73b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0055.erl:753-761 | src/xep0077.erl:2602-2610 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da0d1b0e207561fe8eb1b613bd3352f5be9d6e234341059a6208642da8fd660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0066.erl:248-256 | src/xep0077.erl:2274-2282 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0066.erl"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d713a79aaeb921dab448d56bf5be5b27159c17bd768fe5af53332d4582c6ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0077.erl:2151-2159 | src/xep0388.erl:805-813 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faf7d0ef8e76137c00560232ece6da98c7434758c4444e1fa6e76f94ddecc0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0077.erl:2233-2241 | src/xep0234.erl:1323-1331 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2233}}}],"partialFingerprints":{"codehealthFindingId/v1":"268a09e19b0af03d54df28b2b785769d915c23ceb2ba08e68e2ada8c9861d8f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/xep0077.erl:2643-2651 | src/xep0092.erl:269-277 | src/xep0234.erl:1163-1171 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2643}}}],"partialFingerprints":{"codehealthFindingId/v1":"1129beb720ddd73e8d7bb2ad0fea80786d4b8496d5e9c859bae75f33c5b36d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0077.erl:2768-2776 | src/xep0078.erl:423-431 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2768}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74a440fcde944e07307210b44f322ebd665d9f0900ff5e3ad247e8c3a6938b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/xep0424.erl:425-438 | src/xep0425.erl:620-633 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0424.erl"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"6811f8568a4dd309519c2527d3d87237ada0c1cf7b7173e4622e4dd9ccc149b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): src/xepXXXX.erl:453-464 | src/xepXXXX.erl:525-537 | src/xepXXXX.erl:658-671 | src/xepXXXX.erl:714-724 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xepXXXX.erl"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83f8f986684b38d6804fc0c85960645726417a7c860e504b488058a1955a376"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0085.erl:108-117 | src/xep0352.erl:51-59 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0085.erl"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efa03ee489b3bac76ce87b6fa69996922e1ea9187051fe30b53588dfd0919a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/jid.erl:73-79 | src/xmpp_lang.erl:37-43 | src/xmpp_uri.erl:37-43 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jid.erl"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6047cebd6b2b5943c1b354e9b9a10fc6ed180395444e5368a565057eb29eeea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0060.erl:5839-5853 | src/xep0484.erl:125-137 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":5839}}}],"partialFingerprints":{"codehealthFindingId/v1":"453a9c9926d48f5184c43b08274015ad3d843fdaf1fa6cd85dfbd83c51e3ae6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/xep0363.erl:364-376 | src/xep0424.erl:252-266 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0363.erl"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dc0cd123e0f8cc91df11a2efdcd21b0f61f6d5b0aa3b6eb8fe78c47ef8690e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/xep0077.erl:2862-2871 | src/xep0445.erl:40-49 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d0021992275ca97069025e6f8f67959af460588a302e5a6efdde85cf74861e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/rfc6120.erl:2912-2920 | src/xep0004.erl:1117-1125 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9510ab6ac5ec264b31ab4b581a45c4a9790dfd09df447cf0f26bb69f84945a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/rfc6120.erl:5366-5374 | src/xep0085.erl:123-131 | src/xep0166.erl:1637-1645 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5366}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edb37ac1b802b29e8d48eadd446dd92fc48a0fa21d9604c27180db378a813f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/rfc6120.erl:3754-3762 | src/xep0166.erl:1571-1579 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3754}}}],"partialFingerprints":{"codehealthFindingId/v1":"40aec60fb545b9d6bf6d26d6b1862483788b3cd518e7952c402e70d2194b1e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0016.erl:115-124 | src/xep0092.erl:44-52 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"37423ec752d9b49d4254ce37283281a06e95c6630d252594605bd0b156ddb941"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0016.erl:775-783 | src/xep0363.erl:326-334 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1612b38adf298bf20c28138411b70bc257403cf91df438b981d2d1e4452729c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/xep0022.erl:313-321 | src/xep0085.erl:137-146 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0022.erl"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"79af6dc50db65032821de157d1532cea5eb417c6d649ed8ecb6f1ac469be7f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/xep0085.erl:152-161 | src/xep0352.erl:65-73 | src/xep0513.erl:126-134 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0085.erl"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6742f69b65c5cf2fc4ef2cf59a7e2ea67340d55298197281bb9015f069320e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/xep0084.erl:113-120 | src/xep0313.erl:258-265 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd1b458fdac7dc30288039a2c1f31df6498e2eda336b108716e82daf289aa35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/p1_mucsub.erl:86-92 | src/xep0060.erl:4012-4020 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/p1_mucsub.erl"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbe45be490c82ab662cdc1e4391a14e1541c99214c3ba5504452c3abe05b54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/xep0013.erl:197-203 | src/xep0030.erl:207-214 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0013.erl"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b9af682a8a6df457b16e9ecdf2f6e2a13edbf9efcaba60ead6c6c19f8ea474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/xep0023.erl:37-43 | src/xep0045.erl:328-335 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0023.erl"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a2af87efe770e500b03f4bc6d0f158016b85af2ae69c9c7b0a4d625a8e0ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0030.erl:492-495 | src/xep0386.erl:95-98 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"293e492d45d4a9943875fe7e2514bd2c445d01cb6954e76e6d4ae08da143f617"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/xep0055.erl:52-54 | src/xep0065.erl:54-56 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdadebb7691c5cea32f6093068033f6254b348f13d394e22781449ee8a02a408"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0092.erl:279-282 | src/xep0234.erl:1173-1176 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0092.erl"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b43f08daad67cf50c8df2454b7365d4781c11b017438f60ac64346640baa05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/xep0172.erl:60-63 | src/xep0369.erl:1266-1269 | src/xep0402.erl:405-409 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0172.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c542c7414c209402efeee452d8f8645177d987ed6ecde73ce4cb9b567b93d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0184.erl:74-79 | src/xep0333.erl:181-184 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0184.erl"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3bd8d6ad5f8b76cfa2b23521e60a8b86c1e12f9818949f5a777c2d4fc5d6c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/p1_mucsub.erl:357-363 | src/xep0060.erl:4396-4406 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/p1_mucsub.erl"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"892f967d74e933842ab9e57d8952c6bddcccaaacd6a529f2df5ee003436902cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/rfc6120.erl:3934-3942 | src/xep0388.erl:2117-2126 | src/xep0484.erl:184-193 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3934}}}],"partialFingerprints":{"codehealthFindingId/v1":"93696e20c65b510d2ea0a934c158406388a5db4a5f96e819aed16aa25535e4a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0047.erl:101-104 | src/xep0166.erl:573-576 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0047.erl"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17fb54f4df1fd83ea69236eb280f45abdaf1628c6fe90a48ac15062e9b534d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0048.erl:242-245 | src/xep0363.erl:684-687 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a678f7e9f190d740548f6bdeb60b7aabf25010112e56728e1d23dc7270d087"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/xep0060.erl:3382-3387 | src/xep0264.erl:122-128 | src/xep0317.erl:103-106 | src/xep0417.erl:272-279 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":3382}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5a431d643b788f5ff7d1dcbeefd00ad5309170b989f043afc3c18f87398e82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0231.erl:111-114 | src/xep0260.erl:534-543 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0231.erl"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53fa7825706f59a14e9e6a8cca27e6c622ddaab779d49795a2140b462ca3966"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xmpp_stream_in.erl:364-367 | src/xmpp_stream_out.erl:337-340 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bdd06344900cac27ed7190b8c2999e73c8015955feb3ecc8a02eb2c0a92f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/rfc6120.erl:1295-1297 | src/xep0045.erl:2358-2361 | src/xep0203.erl:112-114 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"890f16d760c9740b9f77f17bc2305045df991d755901664c0819b12cc031dba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/rfc6120.erl:1313-1315 | src/xep0045.erl:2339-2341 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"9767a84961952d23de70b1dc42aa155a93be3519d687915dc64a62d578789311"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): src/rfc6120.erl:4948-4950 | src/xep0359.erl:129-132 | src/xep0424.erl:235-238 | src/xep0425.erl:397-400 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4948}}}],"partialFingerprints":{"codehealthFindingId/v1":"358f7e75a2b883a4a515a6d3a58a3b0ffe57966c5c48f2fb682cfc0df3ca7b5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/rfc6120.erl:5840-5842 | src/xep0045.erl:2675-2678 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5840}}}],"partialFingerprints":{"codehealthFindingId/v1":"d410b6c54d74cd8c048e4a83da839d37a9efcdd06ddde0d1a097433d9d4e6081"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/rfc6120.erl:5858-5860 | src/xep0045.erl:2655-2658 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5858}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6acbd5d895ccfeae855581d6bc0c5b47fb3e47c3f5ad544a19da23a1f4519d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/xep0030.erl:193-197 | src/xep0060.erl:3228-3231 | src/xep0313.erl:622-625 | src/xep0430.erl:153-156 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"105e8b8318a90544aeb7d41b407d76b63bcc280d812c791ebe7d6b010ebc85a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0313.erl:1592-1595 | src/xep0430.erl:351-355 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25d71de7e6efc54925fd92a66a51c816b89e5101cb9b891b6c7ed3f200bc8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/xep0355.erl:293-299 | src/xep0356.erl:244-250 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0355.erl"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"48964f398414e30d64995c5a11e603f6ba52b037aafcc70a354daf058a95b8a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0424.erl:440-443 | src/xep0425.erl:635-638 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0424.erl"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd399d3a3120985e2d7d556aa0385250eb9fda167ca50e8c76234eadccec2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/xep0030.erl:465-470 | src/xep0386.erl:67-72 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1a94f33ffd20951fe36fe6ff919b271fb5b363734dc9aa5987afbb341a7a4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/rfc6120.erl:4127-4129 | src/xep0065.erl:363-366 | src/xepXXXX.erl:796-798 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db005d9cd2653b8d4b3aee49e27a636b40a05b909e1b05b318b6fc033b67931"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/rfc6120.erl:5165-5171 | src/xep0060.erl:3354-3359 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5165}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ebced9e2d0df1b785c709846e147af800cabfca6b7c86d884500fbe48a7c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/xep0012.erl:94-96 | src/xep0045.erl:2855-2858 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0012.erl"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a2f45b73abb9018afc5851c8271b97d04bd2955a3841501e5437250ae9798d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/xep0047.erl:302-304 | src/xep0261.erl:174-177 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0047.erl"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"00456d1762b84236a0e8bc8a84777cfdd5bb35887919ddeb535c3efe880e8437"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/xep0048.erl:455-458 | src/xep0402.erl:282-287 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d261e7d872e9605fd5210bec3963fd8d452c3148256db23fb7002b608dcdac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/xep0060.erl:5855-5859 | src/xep0484.erl:139-141 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":5855}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdc0cf76d093238d10650e0c9013963e5c3b50d45dabbb9ea99515039e5edae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/xep0065.erl:314-316 | src/xep0260.erl:464-467 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0065.erl"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74514ca19a69a88c807a4a11161c026417b5b7c7e956835095f9bca46d6eb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/xep0084.erl:384-387 | src/xep0221.erl:129-131 | src/xep0264.erl:175-177 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f568ee64c67eb738036db3c1e35ef529e551fb0f3fd5975a32c6ad619bf7dea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/xep0084.erl:404-407 | src/xep0221.erl:147-149 | src/xep0264.erl:157-159 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0084.erl"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fd5ae655d23a2320514572841f80331914136d04f11c4aa708b4b7a8b7cdbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/xep0363.erl:378-380 | src/xep0424.erl:268-272 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0363.erl"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4824ca1a17205988840dcdf65f3a9be1b734322bd216458ab26731386ab26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/xep0013.erl:264-267 | src/xep0050.erl:415-417 | src/xep0215.erl:568-570 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0013.erl"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e46031cee219cc170adc45d8f2f185f858b688a842d39ac37cd5409253064ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): src/xep0065.erl:550-553 | src/xep0215.erl:637-639 | src/xep0260.erl:754-758 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0065.erl"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22fe2295468c0922ac18be242237e7729cc82a2b96b8793f3fb8297d9e65a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (992 lines \u00D7 2): src/pubsub_node_config.erl:456-1447 | src/pubsub_publish_options.erl:458-1449 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:456\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":"src/pubsub_node_config.erl"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"432da5058481003c0268b53fff822b7462a40b23a55fe7275442aa8eb4616d22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (206 lines \u00D7 2): src/pubsub_node_config.erl:221-426 | src/pubsub_publish_options.erl:222-427 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_node_config.erl"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"11939cbae16fd126007ab68c8b23d1f717c2f46f72ef9b4bff3b2c37dea73c06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 3): src/pubsub_meta_data.erl:527-586 | src/pubsub_node_config.erl:1439-1498 | src/pubsub_publish_options.erl:1441-1500 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:527\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":"src/pubsub_meta_data.erl"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad23e1e4656c35259b859f62bf815b1812deecde41f22c0e788c5b0473e8f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): src/muc_roomconfig.erl:879-920 | src/muc_roominfo.erl:835-875 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:879\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":"src/muc_roomconfig.erl"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"673ddcf1d4dd31e52863ba61ba944b7660a29fefe3184b603da7d2fdc363a2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201341 lines \u00D7 2): src/muc_roomconfig.erl:455-494 | src/muc_roominfo.erl:404-444 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:455\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":"src/muc_roomconfig.erl"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4d96eec027a9105fa377fcdff6f9461eb9513167763c58a303e3341112f69f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/muc_roomconfig.erl:840-880 | src/muc_roominfo.erl:325-365 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:840\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":"src/muc_roomconfig.erl"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a1fc0bec074c8545fb0034e1471d5175f091bbc4877380f6459302fb81f7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201341 lines \u00D7 2): src/muc_roomconfig.erl:1436-1476 | src/muc_roominfo.erl:614-653 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:1436\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":"src/muc_roomconfig.erl"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"da23e2880ce7232604fb15061bba7c3a047bec774dcf9660e4ee9adf71918770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 3): src/pubsub_meta_data.erl:883-921 | src/pubsub_node_config.erl:1514-1553 | src/pubsub_publish_options.erl:1516-1555 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:883\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":"src/pubsub_meta_data.erl"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"e190807d5ba4a8d058208be69b23a31e9b9fafdc25dfe195e329c5c9270e0d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 28): src/xep0054.erl:853-890 | src/xep0054.erl:935-972 | src/xep0054.erl:1017-1054 | src/xep0054.erl:1099-1136 | src/xep0054.erl:1181-1218 | src/xep0054.erl:1262-1299 | src/xep0054.erl:1343-1380 | src/xep0054.erl:1424-1461 | src/xep0054.erl:1505-1542 | src/xep0054.erl:1586-1623 | src/xep0054.erl:1667-1704 | src/xep0054.erl:1748-1785 | src/xep0054.erl:1829-1866 | src/xep0054.erl:1910-1947 | src/xep0054.erl:1991-2028 | src/xep0054.erl:2072-2109 | src/xep0054.erl:2153-2190 | src/xep0054.erl:2234-2271 | src/xep0054.erl:2315-2352 | src/xep0054.erl:2396-2433 | src/xep0054.erl:2477-2514 | src/xep0054.erl:2558-2595 | src/xep0054.erl:2639-2676 | src/xep0054.erl:2720-2757 | src/xep0054.erl:2801-2838 | src/xep0054.erl:2882-2919 | src/xep0054.erl:2963-3000 | src/xep0054.erl:3044-3081 \u2014 all 28 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 \u0060src/xep0054.erl:853\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:3041\u0060 calls \u0060decode_vcard_CATEGORIES\u0060 and \u0060src/xep0054.erl:852\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae34b05386c7a6e74042c4be647069642d055d6fe57dd952a0f1817661876ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 29): src/xep0054.erl:854-890 | src/xep0054.erl:936-972 | src/xep0054.erl:1018-1054 | src/xep0054.erl:1100-1136 | src/xep0054.erl:1182-1218 | src/xep0054.erl:1263-1299 | src/xep0054.erl:1344-1380 | src/xep0054.erl:1425-1461 | src/xep0054.erl:1506-1542 | src/xep0054.erl:1587-1623 | src/xep0054.erl:1668-1704 | src/xep0054.erl:1749-1785 | src/xep0054.erl:1830-1866 | src/xep0054.erl:1911-1947 | src/xep0054.erl:1992-2028 | src/xep0054.erl:2073-2109 | src/xep0054.erl:2154-2190 | src/xep0054.erl:2235-2271 | src/xep0054.erl:2316-2352 | src/xep0054.erl:2397-2433 | src/xep0054.erl:2478-2514 | src/xep0054.erl:2559-2595 | src/xep0054.erl:2640-2676 | src/xep0054.erl:2721-2757 | src/xep0054.erl:2802-2838 | src/xep0054.erl:2883-2919 | src/xep0054.erl:2964-3000 | src/xep0054.erl:3045-3081 | src/xep0054.erl:3126-3162 \u2014 all 29 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 \u0060src/xep0054.erl:854\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:3123\u0060 calls \u0060decode_vcard_CLASS\u0060 and \u0060src/xep0054.erl:853\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02e103edbf0ee5fe828743d8af41f42fad54dd6d4e80c269d7a863203a74ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 3): src/pubsub_meta_data.erl:652-686 | src/pubsub_node_config.erl:1245-1281 | src/pubsub_publish_options.erl:1247-1283 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:652\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":"src/pubsub_meta_data.erl"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"142e69ebde57ab5d2aaab719375932a564a2eef4078c96639ce22e452ba95271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 3): src/pubsub_meta_data.erl:618-652 | src/pubsub_node_config.erl:430-463 | src/pubsub_publish_options.erl:432-465 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:618\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":"src/pubsub_meta_data.erl"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2d489373d57b17320a53b8c3b0c0a6da0ee6ebaa639691ac7e324e44c178a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/pubsub_node_config.erl:1582-1616 | src/pubsub_publish_options.erl:1584-1618 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1582\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":"src/pubsub_node_config.erl"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5534c521820a1305ab8ae8b5c9401fd92d7f4e1418b614705079d3f8954a9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 3): src/pubsub_meta_data.erl:374-404 | src/pubsub_node_config.erl:770-801 | src/pubsub_publish_options.erl:772-803 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:374\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":"src/pubsub_meta_data.erl"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1abe1817e294e5d9722717a75718265fbba51b592229829d5044512a2cee082"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 3): src/pubsub_meta_data.erl:405-436 | src/pubsub_node_config.erl:864-894 | src/pubsub_publish_options.erl:866-896 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:405\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":"src/pubsub_meta_data.erl"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bb487ce6db933a22468a5ece40db7abc6263dbad8d678cf2cf6380319d43ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 3): src/pubsub_meta_data.erl:587-617 | src/pubsub_node_config.erl:895-926 | src/pubsub_publish_options.erl:897-928 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:587\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":"src/pubsub_meta_data.erl"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"037cd9b0a930ee153dfa3576def03b3f687fe2cb7b2908cc99697b5bffd3efaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): src/pubsub_get_pending.erl:213-242 | src/pubsub_subscribe_authorization.erl:260-290 \u2014 before extracting anything, compare \u0060src/pubsub_get_pending.erl\u0060 and \u0060src/pubsub_subscribe_authorization.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_get_pending.erl: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. 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":"src/pubsub_get_pending.erl"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"80124e3ed05886433e5963997239d1a4fb7834bc782f15beba5a02d0f5f2e784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/xep0054.erl:558-588 | src/xep0054.erl:744-774 \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":"src/xep0054.erl"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab9953bf13d180b7e925a8bcbd04f3f03fa47babeb3c505f9b955375599b19d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): src/xep0054.erl:3178-3208 | src/xep0077.erl:1775-1804 \u2014 before extracting anything, compare \u0060src/xep0054.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:3178\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":"src/xep0054.erl"},"region":{"startLine":3178}}}],"partialFingerprints":{"codehealthFindingId/v1":"79389d94110f9e8f4c1f102f9118b89e33799e8132cc1a6a05fd4218e232cc21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): src/xep0054.erl:3251-3281 | src/xep0077.erl:1832-1861 \u2014 before extracting anything, compare \u0060src/xep0054.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:3251\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0077.erl:1831\u0060 calls \u0060decode_register_els\u0060 and \u0060src/xep0054.erl:3250\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":3251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f104155b603b7707eacf8a23a85e846a13261bea99761138c4c87dd84e02668e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 20): src/xep0077.erl:458-487 | src/xep0077.erl:522-551 | src/xep0077.erl:586-615 | src/xep0077.erl:650-679 | src/xep0077.erl:714-743 | src/xep0077.erl:778-807 | src/xep0077.erl:842-871 | src/xep0077.erl:906-935 | src/xep0077.erl:970-999 | src/xep0077.erl:1034-1063 | src/xep0077.erl:1098-1127 | src/xep0077.erl:1162-1191 | src/xep0077.erl:1226-1255 | src/xep0077.erl:1290-1319 | src/xep0077.erl:1354-1383 | src/xep0077.erl:1418-1447 | src/xep0077.erl:1482-1511 | src/xep0077.erl:1546-1575 | src/xep0077.erl:1610-1639 | src/xep0077.erl:1674-1703 \u2014 all 20 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0077.erl:458\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0077.erl:1671\u0060 calls \u0060decode_register_text\u0060 and \u0060src/xep0077.erl:457\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cc32381d8974a293e65b0fe303900cfa454ce76e9ab1aaefdf58f84bc907e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/pubsub_node_config.erl:2125-2154 | src/pubsub_publish_options.erl:2127-2156 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:2125\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":"src/pubsub_node_config.erl"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fe83f4698723111992e90e19068e731f377f7a0de0ed0c0d1be3fdb3b0a4dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/xep0054.erl:528-557 | src/xep0054.erl:3323-3352 \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 \u0060src/xep0054.erl:528\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae52674efbaf31c185539ce553cc4d2246e05478404b4e73e56a1a4f4be83748"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 36): src/xep0054.erl:856-884 | src/xep0054.erl:938-966 | src/xep0054.erl:1020-1048 | src/xep0054.erl:1102-1130 | src/xep0054.erl:1184-1212 | src/xep0054.erl:1265-1293 | src/xep0054.erl:1346-1374 | src/xep0054.erl:1427-1455 | src/xep0054.erl:1508-1536 | src/xep0054.erl:1589-1617 | src/xep0054.erl:1670-1698 | src/xep0054.erl:1751-1779 | src/xep0054.erl:1832-1860 | src/xep0054.erl:1913-1941 | src/xep0054.erl:1994-2022 | src/xep0054.erl:2075-2103 | src/xep0054.erl:2156-2184 | src/xep0054.erl:2237-2265 | src/xep0054.erl:2318-2346 | src/xep0054.erl:2399-2427 | src/xep0054.erl:2480-2508 | src/xep0054.erl:2561-2589 | src/xep0054.erl:2642-2670 | src/xep0054.erl:2723-2751 | src/xep0054.erl:2804-2832 | src/xep0054.erl:2885-2913 | src/xep0054.erl:2930-2958 | src/xep0054.erl:2966-2994 | src/xep0054.erl:3011-3039 | src/xep0054.erl:3047-3075 | src/xep0054.erl:3092-3120 | src/xep0054.erl:3128-3156 | src/xep0054.erl:3170-3198 | src/xep0054.erl:3209-3237 | src/xep0054.erl:3243-3271 | src/xep0054.erl:3287-3315 \u2014 all 36 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 \u0060src/xep0054.erl:856\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:2959\u0060 calls \u0060decode_vcard_DESC\u0060 and \u0060src/xep0054.erl:885\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ab364406a695a679bda050fee9e638b1be3e505fc148fbb1c1c553f16eb97a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 21): src/xep0077.erl:459-487 | src/xep0077.erl:523-551 | src/xep0077.erl:587-615 | src/xep0077.erl:651-679 | src/xep0077.erl:715-743 | src/xep0077.erl:779-807 | src/xep0077.erl:843-871 | src/xep0077.erl:907-935 | src/xep0077.erl:971-999 | src/xep0077.erl:1035-1063 | src/xep0077.erl:1099-1127 | src/xep0077.erl:1163-1191 | src/xep0077.erl:1227-1255 | src/xep0077.erl:1291-1319 | src/xep0077.erl:1355-1383 | src/xep0077.erl:1419-1447 | src/xep0077.erl:1483-1511 | src/xep0077.erl:1547-1575 | src/xep0077.erl:1611-1639 | src/xep0077.erl:1675-1703 | src/xep0077.erl:1739-1767 \u2014 all 21 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 \u0060src/xep0077.erl:459\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0077.erl:1736\u0060 calls \u0060decode_register_key\u0060 and \u0060src/xep0077.erl:458\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"331c2e59f73874f042a386172c6865a57efa4445145e33b056068b54b642d2a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 7): src/xep0054.erl:2602-2630 | src/xep0054.erl:2683-2711 | src/xep0054.erl:2764-2792 | src/xep0054.erl:2845-2873 | src/xep0054.erl:2926-2954 | src/xep0054.erl:3007-3035 | src/xep0054.erl:3088-3116 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:2602\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:2631\u0060 calls \u0060decode_vcard_REV\u0060 and \u0060src/xep0054.erl:2793\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":2602}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e288770e5947d81f8d56f9eb6b64a433f2d7c7cfc3dc0c91cd0b084bf16915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): src/xep0054.erl:385-413 | src/xep0054.erl:462-490 | src/xep0054.erl:495-523 | src/xmpp_codec.erl:1990-2018 \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 \u0060src/xep0054.erl:385\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"2427fa123287932c571f7cf5d979b89dfc5b7209ca064ff57f675ff1b0af4e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/pubsub_node_config.erl:1797-1825 | src/pubsub_publish_options.erl:1799-1827 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1797\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":"src/pubsub_node_config.erl"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"84faf36ccdbb69128a160cb29d8fb6c2f98f40a19bccc400585119d043bb3846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/xep0054.erl:307-335 | src/xep0054.erl:682-710 \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 \u0060src/xep0054.erl:307\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3410763f8126dd7a4fcb342c47e7363dde51cee7a0c3a0b8c78aa349a59627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/xep0054.erl:906-934 | src/xep0054.erl:989-1017 \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 \u0060src/xep0054.erl:906\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":"src/xep0054.erl"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d8b162a6c2d566a4997720a16743255cba537a3d1a9dc8644f1c4b09e1ad2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 9): src/xep0060.erl:2009-2036 | src/xep0060.erl:2084-2111 | src/xep0060.erl:2137-2164 | src/xep0060.erl:2234-2261 | src/xep0060.erl:2287-2314 | src/xep0060.erl:2340-2367 | src/xep0060.erl:2394-2421 | src/xep0060.erl:2447-2474 | src/xep0060.erl:2522-2549 \u2014 all 9 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 \u0060src/xep0060.erl:2009\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0060.erl:2519\u0060 calls \u0060decode_pubsub_default\u0060 and \u0060src/xep0060.erl:2008\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0bf743a3089eb856a657c63b0aadec93280e9d713445aaeabb364589e65f27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 8): src/xep0054.erl:2521-2548 | src/xep0054.erl:2602-2629 | src/xep0054.erl:2683-2710 | src/xep0054.erl:2764-2791 | src/xep0054.erl:2845-2872 | src/xep0054.erl:2926-2953 | src/xep0054.erl:3007-3034 | src/xep0054.erl:3088-3115 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:2521\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:2549\u0060 calls \u0060decode_vcard_PRODID\u0060 and \u0060src/xep0054.erl:2711\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e6b24754fc433473db961d1eb5d5617d48d4d6912fa3880f1725f550d134c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 5): src/xep0054.erl:4819-4846 | src/xep0054.erl:4866-4893 | src/xep0054.erl:4913-4940 | src/xep0054.erl:4960-4987 | src/xep0054.erl:5007-5034 \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 \u0060src/xep0054.erl:4819\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5004\u0060 calls \u0060decode_vcard_PAGER\u0060 and \u0060src/xep0054.erl:4818\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4819}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a10f1e001cafa255a76e8f815a1a29b3a5204cd8247cc59fe98b16dea36111a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 5): src/xep0054.erl:6089-6116 | src/xep0054.erl:6136-6163 | src/xep0054.erl:6183-6210 | src/xep0054.erl:6230-6257 | src/xep0054.erl:6277-6304 \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 \u0060src/xep0054.erl:6089\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:6274\u0060 calls \u0060decode_vcard_DOM\u0060 and \u0060src/xep0054.erl:6088\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6089}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e7ace471980e8f813efa118fd37a6a1524484abf49e458fbc1ca5ef211ad94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): src/pubsub_meta_data.erl:281-308 | src/pubsub_node_config.erl:630-657 | src/pubsub_publish_options.erl:632-659 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:281\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":"src/pubsub_meta_data.erl"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"7552da50340c09aa6bf9144aace90c4d0d8118d0f24aa314c9e62305f1740e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): src/xep0054.erl:906-933 | src/xep0054.erl:989-1016 | src/xep0054.erl:1072-1099 \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 \u0060src/xep0054.erl:906\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":"src/xep0054.erl"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9615d99f86eb6de2ff1f258c8b1333cb37ef67f665ee04a3f103a5da35fde8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/muc_roomconfig.erl:428-455 | src/muc_roominfo.erl:298-325 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:428\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":"src/muc_roomconfig.erl"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"049cdd55c809b895a21546ad9408775d1a0097f96bd9758eb8421b191427a51b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 10): src/xep0060.erl:2010-2036 | src/xep0060.erl:2085-2111 | src/xep0060.erl:2138-2164 | src/xep0060.erl:2235-2261 | src/xep0060.erl:2288-2314 | src/xep0060.erl:2341-2367 | src/xep0060.erl:2395-2421 | src/xep0060.erl:2448-2474 | src/xep0060.erl:2523-2549 | src/xep0060.erl:2597-2623 \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 \u0060src/xep0060.erl:2010\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0060.erl:2594\u0060 calls \u0060decode_pubsub_items\u0060 and \u0060src/xep0060.erl:2009\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4c46d33d32a992373f60b57a4b27559d13df87b1ee338aca9e3c79883a02d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 9): src/xep0054.erl:2440-2466 | src/xep0054.erl:2521-2547 | src/xep0054.erl:2602-2628 | src/xep0054.erl:2683-2709 | src/xep0054.erl:2764-2790 | src/xep0054.erl:2845-2871 | src/xep0054.erl:2926-2952 | src/xep0054.erl:3007-3033 | src/xep0054.erl:3088-3114 \u2014 all 9 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 \u0060src/xep0054.erl:2440\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:2467\u0060 calls \u0060decode_vcard_NOTE\u0060 and \u0060src/xep0054.erl:2629\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":2440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b5c2e013c684f85788220be176685343f07cdf7ad5d823435b3657d9360c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 6): src/xep0054.erl:4820-4846 | src/xep0054.erl:4867-4893 | src/xep0054.erl:4914-4940 | src/xep0054.erl:4961-4987 | src/xep0054.erl:5008-5034 | src/xep0054.erl:5055-5081 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:4820\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5052\u0060 calls \u0060decode_vcard_MSG\u0060 and \u0060src/xep0054.erl:4819\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4820}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d26b561c0606c9ce0f328d09d9c3b1be9b93cb3413914a63f483ade59d5812d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 6): src/xep0054.erl:6090-6116 | src/xep0054.erl:6137-6163 | src/xep0054.erl:6184-6210 | src/xep0054.erl:6231-6257 | src/xep0054.erl:6278-6304 | src/xep0054.erl:6325-6351 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:6090\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:6322\u0060 calls \u0060decode_vcard_INTL\u0060 and \u0060src/xep0054.erl:6089\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6090}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ab3fe439db3f9dc1064e0afbe92a9971f748c61ca8b9b7a6d385b3acc15738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): src/xep0054.erl:906-932 | src/xep0054.erl:989-1015 | src/xep0054.erl:1072-1098 | src/xep0054.erl:1155-1181 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:906\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":"src/xep0054.erl"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb26425719ccbb048d5b164c08c15517901456718121ceabb083fe1159a8d64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 3): src/pubsub_meta_data.erl:928-953 | src/pubsub_node_config.erl:2050-2076 | src/pubsub_publish_options.erl:2052-2078 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:928\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":"src/pubsub_meta_data.erl"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea94480b41fc3520ac6fe95a92b21a4550976324d34eb3259d02544707a52180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/muc_roomconfig.erl:1673-1699 | src/muc_roominfo.erl:989-1015 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:1673\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":"src/muc_roomconfig.erl"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a341c1ad7e746d1c41f58b71956e9d5ebba36c7380b77c9609168ccbdadea13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): src/xmpp_stream_in.erl:427-453 | src/xmpp_stream_out.erl:426-451 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xmpp_stream_in.erl:427\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":"src/xmpp_stream_in.erl"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"e378ebd1f22fc921091577467786d5071b2909b2e9474086caf3ff19899190e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 12): src/xep0060.erl:2012-2037 | src/xep0060.erl:2087-2112 | src/xep0060.erl:2140-2165 | src/xep0060.erl:2237-2262 | src/xep0060.erl:2290-2315 | src/xep0060.erl:2343-2368 | src/xep0060.erl:2397-2422 | src/xep0060.erl:2450-2475 | src/xep0060.erl:2525-2550 | src/xep0060.erl:2599-2624 | src/xep0060.erl:2652-2677 | src/xep0060.erl:2727-2752 \u2014 all 12 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 \u0060src/xep0060.erl:2012\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0060.erl:2724\u0060 calls \u0060decode_pubsub_subscriptions\u0060 and \u0060src/xep0060.erl:2011\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0953f163749d525e81f15583e93fab77bcac0771e77375a57b9e57347ead491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 10): src/xep0054.erl:2359-2384 | src/xep0054.erl:2440-2465 | src/xep0054.erl:2521-2546 | src/xep0054.erl:2602-2627 | src/xep0054.erl:2683-2708 | src/xep0054.erl:2764-2789 | src/xep0054.erl:2845-2870 | src/xep0054.erl:2926-2951 | src/xep0054.erl:3007-3032 | src/xep0054.erl:3088-3113 \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 \u0060src/xep0054.erl:2359\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:2385\u0060 calls \u0060decode_vcard_ROLE\u0060 and \u0060src/xep0054.erl:2547\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4a1a34b0532d1d8d971140dae64816c8bb4aa5a97bee3d2fe8d7c9e4bf08dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 8): src/xep0054.erl:4822-4847 | src/xep0054.erl:4869-4894 | src/xep0054.erl:4916-4941 | src/xep0054.erl:4963-4988 | src/xep0054.erl:5010-5035 | src/xep0054.erl:5057-5082 | src/xep0054.erl:5104-5129 | src/xep0054.erl:5151-5176 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:4822\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5148\u0060 calls \u0060decode_vcard_VIDEO\u0060 and \u0060src/xep0054.erl:4821\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4822}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9386d250e521eaac16d1ef4bd19157cf9f0924dc729f3b995a9b860dfb6476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 8): src/xep0054.erl:6092-6117 | src/xep0054.erl:6139-6164 | src/xep0054.erl:6186-6211 | src/xep0054.erl:6233-6258 | src/xep0054.erl:6280-6305 | src/xep0054.erl:6327-6352 | src/xep0054.erl:6374-6399 | src/xep0054.erl:6421-6446 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:6092\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:6418\u0060 calls \u0060decode_vcard_POBOX\u0060 and \u0060src/xep0054.erl:6091\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6092}}}],"partialFingerprints":{"codehealthFindingId/v1":"395b9b23da0ff83622b1d1d0d5012fad02cbba0699f7320fe8690194d80d88c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/pubsub_node_config.erl:1886-1911 | src/pubsub_publish_options.erl:1888-1913 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1886\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":"src/pubsub_node_config.erl"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cb74435f85f7b710e91b6fc5dda4dfaa86ca09b1e73ae40897c644fa75232e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/xep0077.erl:1645-1670 | src/xep0077.erl:1709-1734 \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 \u0060src/xep0077.erl:1645\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":"src/xep0077.erl"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d095083f8e20f542383ad69f1d335eed5c5984233f1d783f0750bb75af26f6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 13): src/xep0060.erl:2013-2037 | src/xep0060.erl:2088-2112 | src/xep0060.erl:2141-2165 | src/xep0060.erl:2238-2262 | src/xep0060.erl:2291-2315 | src/xep0060.erl:2344-2368 | src/xep0060.erl:2398-2422 | src/xep0060.erl:2451-2475 | src/xep0060.erl:2526-2550 | src/xep0060.erl:2600-2624 | src/xep0060.erl:2653-2677 | src/xep0060.erl:2728-2752 | src/xep0060.erl:2781-2805 \u2014 all 13 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 \u0060src/xep0060.erl:2013\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0060.erl:2778\u0060 calls \u0060decode_pubsub_unsubscribe\u0060 and \u0060src/xep0060.erl:2012\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"1058da33171a58d337ed7e2acc9e04fa898974149302925ef596994b29e2dd49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 12): src/xep0054.erl:2196-2220 | src/xep0054.erl:2277-2301 | src/xep0054.erl:2358-2382 | src/xep0054.erl:2439-2463 | src/xep0054.erl:2520-2544 | src/xep0054.erl:2601-2625 | src/xep0054.erl:2682-2706 | src/xep0054.erl:2763-2787 | src/xep0054.erl:2844-2868 | src/xep0054.erl:2925-2949 | src/xep0054.erl:3006-3030 | src/xep0054.erl:3087-3111 \u2014 all 12 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 \u0060src/xep0054.erl:2196\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:2221\u0060 calls \u0060decode_vcard_TZ\u0060 and \u0060src/xep0054.erl:2383\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":2196}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e4cca424366e8e1a9b26b9f006fcde6ebd8fec52b0c4fef3159a032429c5f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 9): src/xep0054.erl:4823-4847 | src/xep0054.erl:4870-4894 | src/xep0054.erl:4917-4941 | src/xep0054.erl:4964-4988 | src/xep0054.erl:5011-5035 | src/xep0054.erl:5058-5082 | src/xep0054.erl:5105-5129 | src/xep0054.erl:5152-5176 | src/xep0054.erl:5199-5223 \u2014 all 9 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 \u0060src/xep0054.erl:4823\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5196\u0060 calls \u0060decode_vcard_BBS\u0060 and \u0060src/xep0054.erl:4822\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4823}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ebbd06a97884bbb62ba7f9ac0550f0936ec98f89bd8997743b8d4785b1211a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 9): src/xep0054.erl:6093-6117 | src/xep0054.erl:6140-6164 | src/xep0054.erl:6187-6211 | src/xep0054.erl:6234-6258 | src/xep0054.erl:6281-6305 | src/xep0054.erl:6328-6352 | src/xep0054.erl:6375-6399 | src/xep0054.erl:6422-6446 | src/xep0054.erl:6469-6493 \u2014 all 9 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 \u0060src/xep0054.erl:6093\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:6466\u0060 calls \u0060decode_vcard_EXTADD\u0060 and \u0060src/xep0054.erl:6092\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6093}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cc3878b7d587eab6dc6771707ff1e30fda8383bf2e2b5e5f777529a4cdf7d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4): src/xep0077.erl:1516-1540 | src/xep0077.erl:1580-1604 | src/xep0077.erl:1644-1668 | src/xep0077.erl:1708-1732 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0077.erl:1516\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:1541\u0060 calls \u0060decode_register_date\u0060 and \u0060src/xep0077.erl:1669\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"04febf3269a75e42f93b68cbae9cf1456ee1fa88759ac947d0852d5067b6dd8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/pubsub_node_config.erl:1918-1942 | src/pubsub_publish_options.erl:1920-1944 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1918\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":"src/pubsub_node_config.erl"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"705cd9780854bdc036d58e6f4cd7c95f6568fc387739d98c88147572f32c5997"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 14): src/xep0060.erl:2014-2037 | src/xep0060.erl:2089-2112 | src/xep0060.erl:2142-2165 | src/xep0060.erl:2239-2262 | src/xep0060.erl:2292-2315 | src/xep0060.erl:2345-2368 | src/xep0060.erl:2399-2422 | src/xep0060.erl:2452-2475 | src/xep0060.erl:2527-2550 | src/xep0060.erl:2601-2624 | src/xep0060.erl:2654-2677 | src/xep0060.erl:2729-2752 | src/xep0060.erl:2782-2805 | src/xep0060.erl:2878-2901 \u2014 all 14 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 \u0060src/xep0060.erl:2014\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0060.erl:2875\u0060 calls \u0060decode_pubsub_delete\u0060 and \u0060src/xep0060.erl:2013\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef87fe7ea0a1909ed0ffbec45e29a724eff330f83dbf6581acf84f1bd6c267e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 13): src/xep0054.erl:2115-2138 | src/xep0054.erl:2196-2219 | src/xep0054.erl:2277-2300 | src/xep0054.erl:2358-2381 | src/xep0054.erl:2439-2462 | src/xep0054.erl:2520-2543 | src/xep0054.erl:2601-2624 | src/xep0054.erl:2682-2705 | src/xep0054.erl:2763-2786 | src/xep0054.erl:2844-2867 | src/xep0054.erl:2925-2948 | src/xep0054.erl:3006-3029 | src/xep0054.erl:3087-3110 \u2014 all 13 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 \u0060src/xep0054.erl:2115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:2139\u0060 calls \u0060decode_vcard_MAILER\u0060 and \u0060src/xep0054.erl:2301\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3701ff6b749ec7c032c5d557b99514f7f8ef173db60fac35f4a96ff4c3613d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 10): src/xep0054.erl:4824-4847 | src/xep0054.erl:4871-4894 | src/xep0054.erl:4918-4941 | src/xep0054.erl:4965-4988 | src/xep0054.erl:5012-5035 | src/xep0054.erl:5059-5082 | src/xep0054.erl:5106-5129 | src/xep0054.erl:5153-5176 | src/xep0054.erl:5200-5223 | src/xep0054.erl:5247-5270 \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 \u0060src/xep0054.erl:4824\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5244\u0060 calls \u0060decode_vcard_MODEM\u0060 and \u0060src/xep0054.erl:4823\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4824}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1cf3d6379cf483b7871d10a5a7af0e7a77be8fdb3509eaf0e014262785765a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 10): src/xep0054.erl:6094-6117 | src/xep0054.erl:6141-6164 | src/xep0054.erl:6188-6211 | src/xep0054.erl:6235-6258 | src/xep0054.erl:6282-6305 | src/xep0054.erl:6329-6352 | src/xep0054.erl:6376-6399 | src/xep0054.erl:6423-6446 | src/xep0054.erl:6470-6493 | src/xep0054.erl:6517-6540 \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 \u0060src/xep0054.erl:6094\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:6514\u0060 calls \u0060decode_vcard_STREET\u0060 and \u0060src/xep0054.erl:6093\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6094}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ef7d63735c4e5745c23e2827b04896dcc2d0bd74f029b2400b3424c3316c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): src/xep0077.erl:1452-1475 | src/xep0077.erl:1516-1539 | src/xep0077.erl:1580-1603 | src/xep0077.erl:1644-1667 | src/xep0077.erl:1708-1731 \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 \u0060src/xep0077.erl:1452\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:1476\u0060 calls \u0060decode_register_url\u0060 and \u0060src/xep0077.erl:1604\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d14b445a9fd9dad5d7306c8e484df8f22bafc6b98608c8cd311b0339e79a0fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 14): src/xep0054.erl:2034-2056 | src/xep0054.erl:2115-2137 | src/xep0054.erl:2196-2218 | src/xep0054.erl:2277-2299 | src/xep0054.erl:2358-2380 | src/xep0054.erl:2439-2461 | src/xep0054.erl:2520-2542 | src/xep0054.erl:2601-2623 | src/xep0054.erl:2682-2704 | src/xep0054.erl:2763-2785 | src/xep0054.erl:2844-2866 | src/xep0054.erl:2925-2947 | src/xep0054.erl:3006-3028 | src/xep0054.erl:3087-3109 \u2014 all 14 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 \u0060src/xep0054.erl:2034\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:2057\u0060 calls \u0060decode_vcard_JABBERID\u0060 and \u0060src/xep0054.erl:2219\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcbb141114b3b04a7a6f5ae2798b16beaa6760338655a059c0298b1deb42e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 6): src/xep0077.erl:1388-1410 | src/xep0077.erl:1452-1474 | src/xep0077.erl:1516-1538 | src/xep0077.erl:1580-1602 | src/xep0077.erl:1644-1666 | src/xep0077.erl:1708-1730 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0077.erl:1388\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:1411\u0060 calls \u0060decode_register_phone\u0060 and \u0060src/xep0077.erl:1539\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"886ffe788008f64adafee4c5c3f5e7c6aee1ca1b4ec96061eec297433f562b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 16): src/xep0054.erl:1871-1892 | src/xep0054.erl:1952-1973 | src/xep0054.erl:2033-2054 | src/xep0054.erl:2114-2135 | src/xep0054.erl:2195-2216 | src/xep0054.erl:2276-2297 | src/xep0054.erl:2357-2378 | src/xep0054.erl:2438-2459 | src/xep0054.erl:2519-2540 | src/xep0054.erl:2600-2621 | src/xep0054.erl:2681-2702 | src/xep0054.erl:2762-2783 | src/xep0054.erl:2843-2864 | src/xep0054.erl:2924-2945 | src/xep0054.erl:3005-3026 | src/xep0054.erl:3086-3107 \u2014 all 16 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:1871\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:1893\u0060 calls \u0060decode_vcard_NICKNAME\u0060 and \u0060src/xep0054.erl:2055\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22ae68a5aa7d091136f6aec779a999bdb5fdaf158ba07380efa33b3f1bc4c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): src/xep0077.erl:1324-1345 | src/xep0077.erl:1388-1409 | src/xep0077.erl:1452-1473 | src/xep0077.erl:1516-1537 | src/xep0077.erl:1580-1601 | src/xep0077.erl:1644-1665 | src/xep0077.erl:1708-1729 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0077.erl:1324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:1346\u0060 calls \u0060decode_register_zip\u0060 and \u0060src/xep0077.erl:1474\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc43ecbd3e12504e502a9aaf4efa72f8b1709221b09466e2d97d1d778ca94421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 17): src/xep0054.erl:1790-1810 | src/xep0054.erl:1871-1891 | src/xep0054.erl:1952-1972 | src/xep0054.erl:2033-2053 | src/xep0054.erl:2114-2134 | src/xep0054.erl:2195-2215 | src/xep0054.erl:2276-2296 | src/xep0054.erl:2357-2377 | src/xep0054.erl:2438-2458 | src/xep0054.erl:2519-2539 | src/xep0054.erl:2600-2620 | src/xep0054.erl:2681-2701 | src/xep0054.erl:2762-2782 | src/xep0054.erl:2843-2863 | src/xep0054.erl:2924-2944 | src/xep0054.erl:3005-3025 | src/xep0054.erl:3086-3106 \u2014 all 17 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 \u0060src/xep0054.erl:1790\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:1811\u0060 calls \u0060decode_vcard_FN\u0060 and \u0060src/xep0054.erl:1973\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"b795852a3e66488cbd35498725a04cb53c1fc5a642c6654ded1ac5a586f41d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 8): src/xep0077.erl:1260-1280 | src/xep0077.erl:1324-1344 | src/xep0077.erl:1388-1408 | src/xep0077.erl:1452-1472 | src/xep0077.erl:1516-1536 | src/xep0077.erl:1580-1600 | src/xep0077.erl:1644-1664 | src/xep0077.erl:1708-1728 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0077.erl:1260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:1281\u0060 calls \u0060decode_register_state\u0060 and \u0060src/xep0077.erl:1409\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d319dca924f150fa4926677dd20ff009d2f9dba7b3d90bcb4e56c044aac04e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): src/xep0060.erl:2681-2701 | src/xep0060.erl:2756-2776 | src/xep0060.erl:2809-2828 | src/xep0060.erl:2905-2924 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0060.erl:2681\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0060.erl:2702\u0060 calls \u0060decode_pubsub_subscriptions\u0060 and \u0060src/xep0060.erl:2829\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2681}}}],"partialFingerprints":{"codehealthFindingId/v1":"825702a3ad4381996818c7fd1a96999b8bd671198ac33631d55acb405c84450d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/xep0054.erl:5367-5387 | src/xep0054.erl:5414-5434 \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 \u0060src/xep0054.erl:5367\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":"src/xep0054.erl"},"region":{"startLine":5367}}}],"partialFingerprints":{"codehealthFindingId/v1":"be587dcb4b3033cdcb38092453ebe1c0658831910e3b29d93ab18e9178db0565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/xep0054.erl:6637-6657 | src/xep0054.erl:6684-6704 \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 \u0060src/xep0054.erl:6637\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":"src/xep0054.erl"},"region":{"startLine":6637}}}],"partialFingerprints":{"codehealthFindingId/v1":"510bae41fa2c6edd6eecded165f79c697f6759e7abb21ef7b474c075187f64ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 18): src/xep0054.erl:1709-1728 | src/xep0054.erl:1790-1809 | src/xep0054.erl:1871-1890 | src/xep0054.erl:1952-1971 | src/xep0054.erl:2033-2052 | src/xep0054.erl:2114-2133 | src/xep0054.erl:2195-2214 | src/xep0054.erl:2276-2295 | src/xep0054.erl:2357-2376 | src/xep0054.erl:2438-2457 | src/xep0054.erl:2519-2538 | src/xep0054.erl:2600-2619 | src/xep0054.erl:2681-2700 | src/xep0054.erl:2762-2781 | src/xep0054.erl:2843-2862 | src/xep0054.erl:2924-2943 | src/xep0054.erl:3005-3024 | src/xep0054.erl:3086-3105 \u2014 all 18 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:1709\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:1729\u0060 calls \u0060decode_vcard_VERSION\u0060 and \u0060src/xep0054.erl:1891\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67ecefacdf8e2b6ca4cabc7a8860fde71ae958ecd4a7caa20433fdfd0fef537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 9): src/xep0077.erl:1196-1215 | src/xep0077.erl:1260-1279 | src/xep0077.erl:1324-1343 | src/xep0077.erl:1388-1407 | src/xep0077.erl:1452-1471 | src/xep0077.erl:1516-1535 | src/xep0077.erl:1580-1599 | src/xep0077.erl:1644-1663 | src/xep0077.erl:1708-1727 \u2014 all 9 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 \u0060src/xep0077.erl:1196\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:1216\u0060 calls \u0060decode_register_city\u0060 and \u0060src/xep0077.erl:1344\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"40088fd159a79da4d47c4ec5ed36d81e001abce3e0c99cc7cf8889832bfcd9d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/xep0054.erl:5320-5339 | src/xep0054.erl:5367-5386 | src/xep0054.erl:5414-5433 \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 \u0060src/xep0054.erl:5320\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":"src/xep0054.erl"},"region":{"startLine":5320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fca1a95763b1b74f97a8fcb59697719e6a2a9d5dffeacbf269d403e140d9d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/xep0054.erl:6590-6609 | src/xep0054.erl:6637-6656 | src/xep0054.erl:6684-6703 \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 \u0060src/xep0054.erl:6590\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":"src/xep0054.erl"},"region":{"startLine":6590}}}],"partialFingerprints":{"codehealthFindingId/v1":"31396673067a9e70ea602ef033adafab978789ff0f6c3c677125647e0e95e12f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 19): src/xep0054.erl:1628-1646 | src/xep0054.erl:1709-1727 | src/xep0054.erl:1790-1808 | src/xep0054.erl:1871-1889 | src/xep0054.erl:1952-1970 | src/xep0054.erl:2033-2051 | src/xep0054.erl:2114-2132 | src/xep0054.erl:2195-2213 | src/xep0054.erl:2276-2294 | src/xep0054.erl:2357-2375 | src/xep0054.erl:2438-2456 | src/xep0054.erl:2519-2537 | src/xep0054.erl:2600-2618 | src/xep0054.erl:2681-2699 | src/xep0054.erl:2762-2780 | src/xep0054.erl:2843-2861 | src/xep0054.erl:2924-2942 | src/xep0054.erl:3005-3023 | src/xep0054.erl:3086-3104 \u2014 all 19 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 \u0060src/xep0054.erl:1628\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:1647\u0060 calls \u0060decode_vcard_KEY\u0060 and \u0060src/xep0054.erl:1809\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"515171c63dc0e6cb9524873436176f9a5476c41d91e73f334a7f1012b8ee8c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 15): src/captcha_form.erl:155-173 | src/flex_offline.erl:140-158 | src/http_upload.erl:141-159 | src/mam_query.erl:146-164 | src/muc_register.erl:146-164 | src/muc_request.erl:143-161 | src/muc_roomconfig.erl:174-192 | src/muc_roominfo.erl:157-175 | src/pubsub_get_pending.erl:140-158 | src/pubsub_meta_data.erl:152-170 | src/pubsub_node_config.erl:172-190 | src/pubsub_publish_options.erl:172-190 | src/pubsub_subscribe_authorization.erl:143-161 | src/pubsub_subscribe_options.erl:147-165 | src/push_summary.erl:143-161 \u2014 before extracting anything, compare \u0060src/captcha_form.erl\u0060 and \u0060src/flex_offline.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b70ecc54c420a63165280c250e52bf22b3b3f8dca9e28d7efd1f96aac80c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 10): src/xep0077.erl:1132-1150 | src/xep0077.erl:1196-1214 | src/xep0077.erl:1260-1278 | src/xep0077.erl:1324-1342 | src/xep0077.erl:1388-1406 | src/xep0077.erl:1452-1470 | src/xep0077.erl:1516-1534 | src/xep0077.erl:1580-1598 | src/xep0077.erl:1644-1662 | src/xep0077.erl:1708-1726 \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 \u0060src/xep0077.erl:1132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:1151\u0060 calls \u0060decode_register_address\u0060 and \u0060src/xep0077.erl:1279\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee842dad9084d665a0e4443ee8af495264ef2ad5fa17263c3abca7c1b41f273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): src/xep0060.erl:2628-2647 | src/xep0060.erl:2681-2700 | src/xep0060.erl:2756-2775 | src/xep0060.erl:2809-2827 | src/xep0060.erl:2905-2923 \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 \u0060src/xep0060.erl:2628\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0060.erl:2648\u0060 calls \u0060decode_pubsub_retract\u0060 and \u0060src/xep0060.erl:2776\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"a711830239d19b97e450a20ad7696679c015006a944bbab12badf2d0430d2439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/xep0054.erl:5273-5291 | src/xep0054.erl:5320-5338 | src/xep0054.erl:5367-5385 | src/xep0054.erl:5414-5432 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5273\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5292\u0060 calls \u0060decode_vcard_ISDN\u0060 and \u0060src/xep0054.erl:5386\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9792e8561d07ea7aa7087f41a06e79400e2b45b09896990c4367cd23003d0477"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): src/xep0054.erl:6543-6561 | src/xep0054.erl:6590-6608 | src/xep0054.erl:6637-6655 | src/xep0054.erl:6684-6702 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:6543\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6562\u0060 calls \u0060decode_vcard_LOCALITY\u0060 and \u0060src/xep0054.erl:6656\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6543}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ead2ea75465459329bcfcc4ca9a08ce4bf471a0e3c0b2347ef4ad2d61cc09fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/rfc6120.erl:5737-5755 | src/rfc6120.erl:6356-6374 \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 \u0060src/rfc6120.erl:5737\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":"src/rfc6120.erl"},"region":{"startLine":5737}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e5e8d98c34b0266fb4a11b31ba9fc1cc02e99a9ba8776416673ec11441c857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 20): src/xep0054.erl:1547-1564 | src/xep0054.erl:1628-1645 | src/xep0054.erl:1709-1726 | src/xep0054.erl:1790-1807 | src/xep0054.erl:1871-1888 | src/xep0054.erl:1952-1969 | src/xep0054.erl:2033-2050 | src/xep0054.erl:2114-2131 | src/xep0054.erl:2195-2212 | src/xep0054.erl:2276-2293 | src/xep0054.erl:2357-2374 | src/xep0054.erl:2438-2455 | src/xep0054.erl:2519-2536 | src/xep0054.erl:2600-2617 | src/xep0054.erl:2681-2698 | src/xep0054.erl:2762-2779 | src/xep0054.erl:2843-2860 | src/xep0054.erl:2924-2941 | src/xep0054.erl:3005-3022 | src/xep0054.erl:3086-3103 \u2014 all 20 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:1547\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:1565\u0060 calls \u0060decode_vcard_SOUND\u0060 and \u0060src/xep0054.erl:1727\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1a1ff27845058a7fe78f543417f272fec50ca9220256737e00e112542f40f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 11): src/xep0077.erl:1068-1085 | src/xep0077.erl:1132-1149 | src/xep0077.erl:1196-1213 | src/xep0077.erl:1260-1277 | src/xep0077.erl:1324-1341 | src/xep0077.erl:1388-1405 | src/xep0077.erl:1452-1469 | src/xep0077.erl:1516-1533 | src/xep0077.erl:1580-1597 | src/xep0077.erl:1644-1661 | src/xep0077.erl:1708-1725 \u2014 all 11 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 \u0060src/xep0077.erl:1068\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:1086\u0060 calls \u0060decode_register_email\u0060 and \u0060src/xep0077.erl:1214\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ea4ac7d1822acf8d8902db5cb57214342022c2a1d381e477d73f53c57e541c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): src/xep0060.erl:2554-2571 | src/xep0060.erl:2628-2646 | src/xep0060.erl:2681-2699 | src/xep0060.erl:2756-2774 | src/xep0060.erl:2809-2826 | src/xep0060.erl:2905-2922 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0060.erl:2554\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0060.erl:2572\u0060 calls \u0060decode_pubsub_items\u0060 and \u0060src/xep0060.erl:2700\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2554}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c84d001829816e937e7aeb507110305dc6b90c94cab35334f2b11a5d0efd1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): src/xep0054.erl:5226-5243 | src/xep0054.erl:5273-5290 | src/xep0054.erl:5320-5337 | src/xep0054.erl:5367-5384 | src/xep0054.erl:5414-5431 \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 \u0060src/xep0054.erl:5226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5244\u0060 calls \u0060decode_vcard_MODEM\u0060 and \u0060src/xep0054.erl:5338\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5226}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a503782ca173f00d6409b302e9c5d87635563096c1910b1a517d44cc38733d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): src/xep0054.erl:6496-6513 | src/xep0054.erl:6543-6560 | src/xep0054.erl:6590-6607 | src/xep0054.erl:6637-6654 | src/xep0054.erl:6684-6701 \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 \u0060src/xep0054.erl:6496\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6514\u0060 calls \u0060decode_vcard_STREET\u0060 and \u0060src/xep0054.erl:6608\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6496}}}],"partialFingerprints":{"codehealthFindingId/v1":"7164bffdf447611c689248b3e29ee7d4ef315adf9faef3aa574c66b7f57dc98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/xep0060.erl:1944-1961 | src/xep0077.erl:399-415 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0060.erl:1944\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":"src/xep0060.erl"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5ebecce684aed16d9ae8c40ee156b11a178ce6ac8d6cb656826f3e13b58f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 21): src/xep0054.erl:1466-1482 | src/xep0054.erl:1547-1563 | src/xep0054.erl:1628-1644 | src/xep0054.erl:1709-1725 | src/xep0054.erl:1790-1806 | src/xep0054.erl:1871-1887 | src/xep0054.erl:1952-1968 | src/xep0054.erl:2033-2049 | src/xep0054.erl:2114-2130 | src/xep0054.erl:2195-2211 | src/xep0054.erl:2276-2292 | src/xep0054.erl:2357-2373 | src/xep0054.erl:2438-2454 | src/xep0054.erl:2519-2535 | src/xep0054.erl:2600-2616 | src/xep0054.erl:2681-2697 | src/xep0054.erl:2762-2778 | src/xep0054.erl:2843-2859 | src/xep0054.erl:2924-2940 | src/xep0054.erl:3005-3021 | src/xep0054.erl:3086-3102 \u2014 all 21 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 \u0060src/xep0054.erl:1466\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:1483\u0060 calls \u0060decode_vcard_ORG\u0060 and \u0060src/xep0054.erl:1645\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b0fea45b27c1d5743e2611d70434e452f0a75fa75d0275d4ffa79236d930e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 13): src/xep0077.erl:939-955 | src/xep0077.erl:1003-1019 | src/xep0077.erl:1067-1083 | src/xep0077.erl:1131-1147 | src/xep0077.erl:1195-1211 | src/xep0077.erl:1259-1275 | src/xep0077.erl:1323-1339 | src/xep0077.erl:1387-1403 | src/xep0077.erl:1451-1467 | src/xep0077.erl:1515-1531 | src/xep0077.erl:1579-1595 | src/xep0077.erl:1643-1659 | src/xep0077.erl:1707-1723 \u2014 all 13 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 \u0060src/xep0077.erl:939\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:956\u0060 calls \u0060decode_register_first\u0060 and \u0060src/xep0077.erl:1084\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d854bc148f8496c02d00d8db8542cf20876fd7c4a6da0f28ad104efc95dd76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 9): src/xep0060.erl:2372-2388 | src/xep0060.erl:2425-2441 | src/xep0060.erl:2478-2494 | src/xep0060.erl:2553-2568 | src/xep0060.erl:2627-2643 | src/xep0060.erl:2680-2696 | src/xep0060.erl:2755-2771 | src/xep0060.erl:2808-2823 | src/xep0060.erl:2904-2919 \u2014 all 9 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 \u0060src/xep0060.erl:2372\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0060.erl:2389\u0060 calls \u0060decode_pubsub_publish_options\u0060 and \u0060src/xep0060.erl:2495\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b23dbaa5b049e05ed9cc48f5ebcafd15310abb34324f0aecba6a56334d99165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): src/xep0054.erl:5179-5195 | src/xep0054.erl:5226-5242 | src/xep0054.erl:5273-5289 | src/xep0054.erl:5320-5336 | src/xep0054.erl:5367-5383 | src/xep0054.erl:5414-5430 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5196\u0060 calls \u0060decode_vcard_BBS\u0060 and \u0060src/xep0054.erl:5290\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3939145199556a6eea8ed8b29cfc3f74a36c3da99aa13dc035cac90e8275789c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): src/xep0054.erl:6449-6465 | src/xep0054.erl:6496-6512 | src/xep0054.erl:6543-6559 | src/xep0054.erl:6590-6606 | src/xep0054.erl:6637-6653 | src/xep0054.erl:6684-6700 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:6449\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6466\u0060 calls \u0060decode_vcard_EXTADD\u0060 and \u0060src/xep0054.erl:6560\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6449}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9aee76ddef401582ebfac639b6581100bf3d964ad52095b151ead5d67b40af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/pubsub_node_config.erl:1710-1726 | src/pubsub_publish_options.erl:1712-1728 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1710\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":"src/pubsub_node_config.erl"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c546e2e71357c427d26ca6b50716c07fdf7986ecfec08becc022bf96c36f2f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/pubsub_node_config.erl:2100-2116 | src/pubsub_publish_options.erl:2102-2118 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:2100\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":"src/pubsub_node_config.erl"},"region":{"startLine":2100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7cc60339bf3fdf845a67aa2c54fb0259efff8ad54bf11627449a392a2f6935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/xmpp_stream_in.erl:1682-1698 | src/xmpp_stream_out.erl:947-963 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a9a955d2edebb6b83fe65ce4f614bb17f18076ab720706074ee188b506ddbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 22): src/xep0054.erl:1385-1400 | src/xep0054.erl:1466-1481 | src/xep0054.erl:1547-1562 | src/xep0054.erl:1628-1643 | src/xep0054.erl:1709-1724 | src/xep0054.erl:1790-1805 | src/xep0054.erl:1871-1886 | src/xep0054.erl:1952-1967 | src/xep0054.erl:2033-2048 | src/xep0054.erl:2114-2129 | src/xep0054.erl:2195-2210 | src/xep0054.erl:2276-2291 | src/xep0054.erl:2357-2372 | src/xep0054.erl:2438-2453 | src/xep0054.erl:2519-2534 | src/xep0054.erl:2600-2615 | src/xep0054.erl:2681-2696 | src/xep0054.erl:2762-2777 | src/xep0054.erl:2843-2858 | src/xep0054.erl:2924-2939 | src/xep0054.erl:3005-3020 | src/xep0054.erl:3086-3101 \u2014 all 22 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 \u0060src/xep0054.erl:1385\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:1401\u0060 calls \u0060decode_vcard_PHOTO\u0060 and \u0060src/xep0054.erl:1563\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"323491f2047771588d28aea691d199644017de3a763e408b053211089200967e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 14): src/xep0077.erl:875-890 | src/xep0077.erl:939-954 | src/xep0077.erl:1003-1018 | src/xep0077.erl:1067-1082 | src/xep0077.erl:1131-1146 | src/xep0077.erl:1195-1210 | src/xep0077.erl:1259-1274 | src/xep0077.erl:1323-1338 | src/xep0077.erl:1387-1402 | src/xep0077.erl:1451-1466 | src/xep0077.erl:1515-1530 | src/xep0077.erl:1579-1594 | src/xep0077.erl:1643-1658 | src/xep0077.erl:1707-1722 \u2014 all 14 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 \u0060src/xep0077.erl:875\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:891\u0060 calls \u0060decode_register_name\u0060 and \u0060src/xep0077.erl:1019\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"8636e18d4652a6b50ec76a6d2494b3b7c723106705d657ee9dbfed763052ee46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): src/xep0054.erl:5132-5147 | src/xep0054.erl:5179-5194 | src/xep0054.erl:5226-5241 | src/xep0054.erl:5273-5288 | src/xep0054.erl:5320-5335 | src/xep0054.erl:5367-5382 | src/xep0054.erl:5414-5429 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5148\u0060 calls \u0060decode_vcard_VIDEO\u0060 and \u0060src/xep0054.erl:5242\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea403b6420fa99b83027e35f0c9eaa5af9bec6ba82c7e14811eab3a0597ea61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): src/xep0054.erl:6402-6417 | src/xep0054.erl:6449-6464 | src/xep0054.erl:6496-6511 | src/xep0054.erl:6543-6558 | src/xep0054.erl:6590-6605 | src/xep0054.erl:6637-6652 | src/xep0054.erl:6684-6699 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:6402\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6418\u0060 calls \u0060decode_vcard_POBOX\u0060 and \u0060src/xep0054.erl:6512\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6402}}}],"partialFingerprints":{"codehealthFindingId/v1":"833076b66a07fadcb2a0402da306e988e1a0fd2f127a161cd5924f118da1a494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/pubsub_meta_data.erl:765-780 | src/pubsub_node_config.erl:1831-1846 | src/pubsub_publish_options.erl:1833-1848 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:765\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":"src/pubsub_meta_data.erl"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"add1c523b805660eebbb623f715186a0edabec8a1a30a197fae83a0c7b0523a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0054.erl:4784-4799 | src/xep0054.erl:6054-6069 \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 \u0060src/xep0054.erl:4784\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":"src/xep0054.erl"},"region":{"startLine":4784}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e3850484f9a8c95e7dc4430f6fc4fe99c406871ca8d297160fa4f42e0c831d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0234.erl:776-791 | src/xep0234.erl:811-826 \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 \u0060src/xep0234.erl:776\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":"src/xep0234.erl"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb2ff0e0b67496c11e54941ddf4db2757129260add5e15005e84b31318a006c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xmpp_stream_out.erl:1440-1455 | src/xmpp_stream_out.erl:1458-1473 \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":"src/xmpp_stream_out.erl"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c3eab80a927eeb7336a0a2132804fb82b6135d6e875855c91e7e800e7eac95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 24): src/xep0054.erl:1222-1236 | src/xep0054.erl:1303-1317 | src/xep0054.erl:1384-1398 | src/xep0054.erl:1465-1479 | src/xep0054.erl:1546-1560 | src/xep0054.erl:1627-1641 | src/xep0054.erl:1708-1722 | src/xep0054.erl:1789-1803 | src/xep0054.erl:1870-1884 | src/xep0054.erl:1951-1965 | src/xep0054.erl:2032-2046 | src/xep0054.erl:2113-2127 | src/xep0054.erl:2194-2208 | src/xep0054.erl:2275-2289 | src/xep0054.erl:2356-2370 | src/xep0054.erl:2437-2451 | src/xep0054.erl:2518-2532 | src/xep0054.erl:2599-2613 | src/xep0054.erl:2680-2694 | src/xep0054.erl:2761-2775 | src/xep0054.erl:2842-2856 | src/xep0054.erl:2923-2937 | src/xep0054.erl:3004-3018 | src/xep0054.erl:3085-3099 \u2014 all 24 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 \u0060src/xep0054.erl:1222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:1237\u0060 calls \u0060decode_vcard_GEO\u0060 and \u0060src/xep0054.erl:1399\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a17256e96bc70c49b4666321347061b81fa4a9bb5525c82eca00e7c9e9be3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 15): src/xep0077.erl:811-825 | src/xep0077.erl:875-889 | src/xep0077.erl:939-953 | src/xep0077.erl:1003-1017 | src/xep0077.erl:1067-1081 | src/xep0077.erl:1131-1145 | src/xep0077.erl:1195-1209 | src/xep0077.erl:1259-1273 | src/xep0077.erl:1323-1337 | src/xep0077.erl:1387-1401 | src/xep0077.erl:1451-1465 | src/xep0077.erl:1515-1529 | src/xep0077.erl:1579-1593 | src/xep0077.erl:1643-1657 | src/xep0077.erl:1707-1721 \u2014 all 15 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 \u0060src/xep0077.erl:811\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:826\u0060 calls \u0060decode_register_password\u0060 and \u0060src/xep0077.erl:954\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6db73d76ab59630f8eb0af7fb24e63e07eb60ab41a574bc9f7c31cd5ea956f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 10): src/xep0060.erl:2318-2333 | src/xep0060.erl:2372-2387 | src/xep0060.erl:2425-2440 | src/xep0060.erl:2478-2493 | src/xep0060.erl:2553-2567 | src/xep0060.erl:2627-2642 | src/xep0060.erl:2680-2695 | src/xep0060.erl:2755-2770 | src/xep0060.erl:2808-2822 | src/xep0060.erl:2904-2918 \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 \u0060src/xep0060.erl:2318\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0060.erl:2334\u0060 calls \u0060decode_pubsub_publish\u0060 and \u0060src/xep0060.erl:2441\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"069d7247c646f6fed010d4df6795e4ddd2f0c20c474041ac8cd58b731ddbf404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 9): src/xep0215.erl:328-342 | src/xep0215.erl:344-358 | src/xep0215.erl:360-374 | src/xep0215.erl:376-390 | src/xep0215.erl:392-406 | src/xep0215.erl:408-422 | src/xep0215.erl:424-438 | src/xep0215.erl:440-454 | src/xep0215.erl:456-470 \u2014 all 9 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 \u0060src/xep0215.erl:328\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":"src/xep0215.erl"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"96846b485fc8ae16e5864b2e327e19488d8095057ecff9ebb2270d0e4354ab88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8): src/xep0054.erl:5085-5099 | src/xep0054.erl:5132-5146 | src/xep0054.erl:5179-5193 | src/xep0054.erl:5226-5240 | src/xep0054.erl:5273-5287 | src/xep0054.erl:5320-5334 | src/xep0054.erl:5367-5381 | src/xep0054.erl:5414-5428 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5085\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5100\u0060 calls \u0060decode_vcard_CELL\u0060 and \u0060src/xep0054.erl:5194\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5085}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1ccc84368be5b578fd8ba56107df8535cffa4587abd79aafabe72138665bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8): src/xep0054.erl:6355-6369 | src/xep0054.erl:6402-6416 | src/xep0054.erl:6449-6463 | src/xep0054.erl:6496-6510 | src/xep0054.erl:6543-6557 | src/xep0054.erl:6590-6604 | src/xep0054.erl:6637-6651 | src/xep0054.erl:6684-6698 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:6355\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6370\u0060 calls \u0060decode_vcard_PREF\u0060 and \u0060src/xep0054.erl:6464\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6355}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d5f66c68b2f12374fdb96531f373743ef80c6e2b2e0a2c11bafdfffcfa46c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201315 lines \u00D7 3): src/rfc6120.erl:5740-5754 | src/rfc6120.erl:6359-6373 | src/rfc6120.erl:6807-6813 \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 \u0060src/rfc6120.erl:5740\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":"src/rfc6120.erl"},"region":{"startLine":5740}}}],"partialFingerprints":{"codehealthFindingId/v1":"a829850e209f27f21d72a80c77b5188ca2b6f11b1b9527d274601bae3f54fe96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/xep0234.erl:741-755 | src/xep0234.erl:776-790 | src/xep0234.erl:811-825 \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 \u0060src/xep0234.erl:741\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":"src/xep0234.erl"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"640ede45c59c5ba5e021bf3fcbceb7ecb5c637a2066d247b9005ad320d05f3d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/pubsub_node_config.erl:1559-1573 | src/pubsub_publish_options.erl:1561-1575 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1559\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":"src/pubsub_node_config.erl"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0967d625510b0faaf0451015a26a290d28e1abee14676ea11500d4a5b230897"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/pubsub_node_config.erl:1622-1636 | src/pubsub_publish_options.erl:1624-1638 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1622\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":"src/pubsub_node_config.erl"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ce8eeb3fa7bdd9104b2c56c85490a784c0c84c2ed0db15db165a4b84bc8810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/pubsub_node_config.erl:1658-1672 | src/pubsub_publish_options.erl:1660-1674 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1658\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":"src/pubsub_node_config.erl"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a51f6e05f3bcdc0e21b579def9638d032164dcb22b8c4c5af206da0cb5588cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0054.erl:5843-5857 | src/xep0054.erl:5877-5891 \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 \u0060src/xep0054.erl:5843\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":"src/xep0054.erl"},"region":{"startLine":5843}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8dce11e1a2f21ef43eae5ffbb0cf2362afe6f79d07b25c52f7480d97496564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xmpp_stream_in.erl:1701-1715 | src/xmpp_stream_out.erl:966-980 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"70dfaef5dd3a9b453961568217ad1a1648993886dec0d18c39439bb0867cf7d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 25): src/xep0054.erl:1140-1153 | src/xep0054.erl:1222-1235 | src/xep0054.erl:1303-1316 | src/xep0054.erl:1384-1397 | src/xep0054.erl:1465-1478 | src/xep0054.erl:1546-1559 | src/xep0054.erl:1627-1640 | src/xep0054.erl:1708-1721 | src/xep0054.erl:1789-1802 | src/xep0054.erl:1870-1883 | src/xep0054.erl:1951-1964 | src/xep0054.erl:2032-2045 | src/xep0054.erl:2113-2126 | src/xep0054.erl:2194-2207 | src/xep0054.erl:2275-2288 | src/xep0054.erl:2356-2369 | src/xep0054.erl:2437-2450 | src/xep0054.erl:2518-2531 | src/xep0054.erl:2599-2612 | src/xep0054.erl:2680-2693 | src/xep0054.erl:2761-2774 | src/xep0054.erl:2842-2855 | src/xep0054.erl:2923-2936 | src/xep0054.erl:3004-3017 | src/xep0054.erl:3085-3098 \u2014 all 25 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 \u0060src/xep0054.erl:1140\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":"src/xep0054.erl"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f92197eef7cd736cec022a8baf19950109f43937506b126c6c9f055293609c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 16): src/xep0077.erl:747-760 | src/xep0077.erl:811-824 | src/xep0077.erl:875-888 | src/xep0077.erl:939-952 | src/xep0077.erl:1003-1016 | src/xep0077.erl:1067-1080 | src/xep0077.erl:1131-1144 | src/xep0077.erl:1195-1208 | src/xep0077.erl:1259-1272 | src/xep0077.erl:1323-1336 | src/xep0077.erl:1387-1400 | src/xep0077.erl:1451-1464 | src/xep0077.erl:1515-1528 | src/xep0077.erl:1579-1592 | src/xep0077.erl:1643-1656 | src/xep0077.erl:1707-1720 \u2014 all 16 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0077.erl:747\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:761\u0060 calls \u0060decode_register_nick\u0060 and \u0060src/xep0077.erl:889\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23f4c677c1eb5a2e632a8aec732b10dcc013e0f623ab4890db5a24cd96d4d98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): src/xep0060.erl:2265-2279 | src/xep0060.erl:2318-2332 | src/xep0060.erl:2372-2386 | src/xep0060.erl:2425-2439 | src/xep0060.erl:2478-2492 | src/xep0060.erl:2553-2566 | src/xep0060.erl:2627-2641 | src/xep0060.erl:2680-2694 | src/xep0060.erl:2755-2769 | src/xep0060.erl:2808-2821 | src/xep0060.erl:2904-2917 \u2014 all 11 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 \u0060src/xep0060.erl:2265\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0060.erl:2280\u0060 calls \u0060decode_pubsub_options\u0060 and \u0060src/xep0060.erl:2387\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2265}}}],"partialFingerprints":{"codehealthFindingId/v1":"967f68855c1c7f8843e3c24f560509743e18447521a03c10e9362d1cf813476e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): src/xep0054.erl:4990-5003 | src/xep0054.erl:5037-5050 | src/xep0054.erl:5084-5097 | src/xep0054.erl:5131-5144 | src/xep0054.erl:5178-5191 | src/xep0054.erl:5225-5238 | src/xep0054.erl:5272-5285 | src/xep0054.erl:5319-5332 | src/xep0054.erl:5366-5379 | src/xep0054.erl:5413-5426 \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 \u0060src/xep0054.erl:4990\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5004\u0060 calls \u0060decode_vcard_PAGER\u0060 and \u0060src/xep0054.erl:5098\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4990}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95f8a2c8a2a6861519309056817c04692197a43a232d9afabe48a46c4ef8c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): src/xep0054.erl:6260-6273 | src/xep0054.erl:6307-6320 | src/xep0054.erl:6354-6367 | src/xep0054.erl:6401-6414 | src/xep0054.erl:6448-6461 | src/xep0054.erl:6495-6508 | src/xep0054.erl:6542-6555 | src/xep0054.erl:6589-6602 | src/xep0054.erl:6636-6649 | src/xep0054.erl:6683-6696 \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 \u0060src/xep0054.erl:6260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6274\u0060 calls \u0060decode_vcard_DOM\u0060 and \u0060src/xep0054.erl:6368\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69e3b8eca70c9390653cc89a76f7574c6cad58d88b481ef1ba69ce24d9be72c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): src/xep0215.erl:328-342 | src/xep0215.erl:344-358 | src/xep0215.erl:360-374 | src/xep0215.erl:376-390 | src/xep0215.erl:392-406 | src/xep0215.erl:408-422 | src/xep0215.erl:424-438 | src/xep0215.erl:440-454 | src/xep0215.erl:456-470 | src/xep0215.erl:472-485 \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 \u0060src/xep0215.erl:328\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":"src/xep0215.erl"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"324167745bf1c2e9682ccfa7a2aa8e1deed88b6955d113c4f52a34dd25620341"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/xep0234.erl:706-719 | src/xep0234.erl:741-754 | src/xep0234.erl:776-789 | src/xep0234.erl:811-824 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0234.erl:706\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0234.erl:720\u0060 calls \u0060decode_jingle_ft_media_type\u0060 and \u0060src/xep0234.erl:790\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90e049a5051649199e8ba9cce99d44277aa960b2a470fe540e88ebea39e1cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/rfc6120.erl:4794-4807 | src/rfc6120.erl:5742-5755 | src/rfc6120.erl:6361-6374 \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 \u0060src/rfc6120.erl:4794\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":"src/rfc6120.erl"},"region":{"startLine":4794}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd10ce0156ab570cb2f22b14143c83aa8c853c43dc73eeb7f7c1736665d4d717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/xep0054.erl:5809-5822 | src/xep0054.erl:5843-5856 | src/xep0054.erl:5877-5890 \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 \u0060src/xep0054.erl:5809\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":"src/xep0054.erl"},"region":{"startLine":5809}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a7ca774a6225b0817a2fc1b280581e743f1bd4007e0ca03ab471d6f8fd1436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pubsub_node_config.erl:1778-1791 | src/pubsub_publish_options.erl:1780-1793 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1778\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":"src/pubsub_node_config.erl"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"d596d8f4ee73a17223fb52120e079450681217d49528b14a3d72860597ef0791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/pubsub_node_config.erl:2031-2044 | src/pubsub_publish_options.erl:2033-2046 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:2031\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":"src/pubsub_node_config.erl"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c7a016515faf6be534f9ae8050710a0be89da24ce2aedf20abb00f50c58142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0059.erl:280-293 | src/xep0059.erl:312-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0059.erl:280\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":"src/xep0059.erl"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"869ae5f66f82fc79ec4f76cf18d3803fc27f654de34fee1955c1db61d0f15e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xmpp_stream_in.erl:405-418 | src/xmpp_stream_out.erl:413-426 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4f2e8bba99959e00cbd0f70787360b5a09c05f8475fc8e136c8d4fa6c1cc4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 26): src/xep0054.erl:1058-1070 | src/xep0054.erl:1140-1152 | src/xep0054.erl:1222-1234 | src/xep0054.erl:1303-1315 | src/xep0054.erl:1384-1396 | src/xep0054.erl:1465-1477 | src/xep0054.erl:1546-1558 | src/xep0054.erl:1627-1639 | src/xep0054.erl:1708-1720 | src/xep0054.erl:1789-1801 | src/xep0054.erl:1870-1882 | src/xep0054.erl:1951-1963 | src/xep0054.erl:2032-2044 | src/xep0054.erl:2113-2125 | src/xep0054.erl:2194-2206 | src/xep0054.erl:2275-2287 | src/xep0054.erl:2356-2368 | src/xep0054.erl:2437-2449 | src/xep0054.erl:2518-2530 | src/xep0054.erl:2599-2611 | src/xep0054.erl:2680-2692 | src/xep0054.erl:2761-2773 | src/xep0054.erl:2842-2854 | src/xep0054.erl:2923-2935 | src/xep0054.erl:3004-3016 | src/xep0054.erl:3085-3097 \u2014 all 26 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 \u0060src/xep0054.erl:1058\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":"src/xep0054.erl"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f08dea342069326486b0c8701da3fcb9417fd98b6ef6c2dccf3a6648841dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 17): src/xep0077.erl:683-695 | src/xep0077.erl:747-759 | src/xep0077.erl:811-823 | src/xep0077.erl:875-887 | src/xep0077.erl:939-951 | src/xep0077.erl:1003-1015 | src/xep0077.erl:1067-1079 | src/xep0077.erl:1131-1143 | src/xep0077.erl:1195-1207 | src/xep0077.erl:1259-1271 | src/xep0077.erl:1323-1335 | src/xep0077.erl:1387-1399 | src/xep0077.erl:1451-1463 | src/xep0077.erl:1515-1527 | src/xep0077.erl:1579-1591 | src/xep0077.erl:1643-1655 | src/xep0077.erl:1707-1719 \u2014 all 17 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 \u0060src/xep0077.erl:683\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:696\u0060 calls \u0060decode_register_username\u0060 and \u0060src/xep0077.erl:824\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"909a304ea28331562e07e73d861ca1b09c3147b51deb1ff3ee3ac08648a6d105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 15): src/captcha_form.erl:183-195 | src/flex_offline.erl:171-183 | src/http_upload.erl:174-186 | src/mam_query.erl:174-186 | src/muc_register.erl:181-193 | src/muc_request.erl:175-187 | src/muc_roomconfig.erl:205-217 | src/muc_roominfo.erl:188-200 | src/pubsub_get_pending.erl:173-185 | src/pubsub_meta_data.erl:183-195 | src/pubsub_node_config.erl:203-215 | src/pubsub_publish_options.erl:204-216 | src/pubsub_subscribe_authorization.erl:183-195 | src/pubsub_subscribe_options.erl:179-191 | src/push_summary.erl:171-183 \u2014 before extracting anything, compare \u0060src/captcha_form.erl\u0060 and \u0060src/flex_offline.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"6438b4dbc25d2ace0c738eab58b75d2e2eaf01a9eb91a4a37ed0c16a82091b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 15): src/xep0060.erl:1965-1975 | src/xep0060.erl:2039-2050 | src/xep0060.erl:2114-2125 | src/xep0060.erl:2167-2178 | src/xep0060.erl:2264-2275 | src/xep0060.erl:2317-2328 | src/xep0060.erl:2370-2382 | src/xep0060.erl:2424-2435 | src/xep0060.erl:2477-2488 | src/xep0060.erl:2552-2562 | src/xep0060.erl:2626-2637 | src/xep0060.erl:2679-2690 | src/xep0060.erl:2754-2765 | src/xep0060.erl:2807-2817 | src/xep0060.erl:2903-2913 \u2014 all 15 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 \u0060src/xep0060.erl:1965\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0060.erl:1976\u0060 calls \u0060decode_pubsub_create\u0060 and \u0060src/xep0060.erl:2126\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85b17542248813e785700670af5133b4024087c50aaca61414755ff7eb72a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): src/xep0054.erl:4943-4955 | src/xep0054.erl:4990-5002 | src/xep0054.erl:5037-5049 | src/xep0054.erl:5084-5096 | src/xep0054.erl:5131-5143 | src/xep0054.erl:5178-5190 | src/xep0054.erl:5225-5237 | src/xep0054.erl:5272-5284 | src/xep0054.erl:5319-5331 | src/xep0054.erl:5366-5378 | src/xep0054.erl:5413-5425 \u2014 all 11 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 \u0060src/xep0054.erl:4943\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:4956\u0060 calls \u0060decode_vcard_FAX\u0060 and \u0060src/xep0054.erl:5050\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4943}}}],"partialFingerprints":{"codehealthFindingId/v1":"305cc6834890a81e101b7905b1cf52b828e8d28a38b91d6917c7b11ec4dd00b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): src/xep0054.erl:6213-6225 | src/xep0054.erl:6260-6272 | src/xep0054.erl:6307-6319 | src/xep0054.erl:6354-6366 | src/xep0054.erl:6401-6413 | src/xep0054.erl:6448-6460 | src/xep0054.erl:6495-6507 | src/xep0054.erl:6542-6554 | src/xep0054.erl:6589-6601 | src/xep0054.erl:6636-6648 | src/xep0054.erl:6683-6695 \u2014 all 11 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 \u0060src/xep0054.erl:6213\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6226\u0060 calls \u0060decode_vcard_PARCEL\u0060 and \u0060src/xep0054.erl:6320\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6213}}}],"partialFingerprints":{"codehealthFindingId/v1":"0273e4e958a1efdbfcf7d64b35d4f01a40a2e7c67aedcf9a3602c1cda3ba4342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/xep0054.erl:5775-5787 | src/xep0054.erl:5809-5821 | src/xep0054.erl:5843-5855 | src/xep0054.erl:5877-5889 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5775\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5788\u0060 calls \u0060decode_vcard_DOM\u0060 and \u0060src/xep0054.erl:5856\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5775}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fd2f479f397e5ea666a23cdb56f7e15d0b4c8d49eb1c05d35c14b696e94094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/xep0059.erl:248-260 | src/xep0059.erl:280-292 | src/xep0059.erl:312-324 \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 \u0060src/xep0059.erl:248\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":"src/xep0059.erl"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc7bea03d17c75e6e63cd9f8f4cb5de4d6a4e5fe612b88c7299c5e2b37d4ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pubsub_node_config.erl:1641-1653 | src/pubsub_publish_options.erl:1643-1655 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1641\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":"src/pubsub_node_config.erl"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f5ce1af5f258d885ff357ff515dca37251c8c0f39769ed2f7f9cd339d2c92c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pubsub_node_config.erl:1677-1689 | src/pubsub_publish_options.erl:1679-1691 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1677\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":"src/pubsub_node_config.erl"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97bdb572618abd4d756bc6f2555de475455c5b35b47955ac1cac7217696facc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pubsub_node_config.erl:1947-1959 | src/pubsub_publish_options.erl:1949-1961 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1947\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":"src/pubsub_node_config.erl"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"4866fe1f4d279cb6cae45f45ca2e65bd5bb8ddadfffc57fa61d3815ee2dbf296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pubsub_node_config.erl:1964-1976 | src/pubsub_publish_options.erl:1966-1978 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1964\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":"src/pubsub_node_config.erl"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efca7b62212fb7043682bdfd243576ae647dc5a35a7750d18f5867b4ff99eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pubsub_node_config.erl:1981-1993 | src/pubsub_publish_options.erl:1983-1995 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1981\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":"src/pubsub_node_config.erl"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff2d3f975c6fbe69409b388f59fb98b57d1475313e582bcad41b65a01d02a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pubsub_node_config.erl:1998-2010 | src/pubsub_publish_options.erl:2000-2012 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1998\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":"src/pubsub_node_config.erl"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8f84460d2a528ab800732140ddd40f721a5162c76a4f6b6fb7074ba1113fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pubsub_node_config.erl:2082-2094 | src/pubsub_publish_options.erl:2084-2096 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:2082\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":"src/pubsub_node_config.erl"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cfa525617159c1dfdf7e7b6375cecf1ae7d311a6d1761ef9a248a9aa740701c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/pubsub_node_config.erl:2159-2171 | src/pubsub_publish_options.erl:2161-2173 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:2159\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":"src/pubsub_node_config.erl"},"region":{"startLine":2159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1753bda19bba41b22a0c685ce69f042935254619932f6ab5f55b61c2dd4fc01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0055.erl:229-241 | src/xep0055.erl:261-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0055.erl:229\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":"src/xep0055.erl"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4fdd8c67bdb7dbd36bd87607d25b2b5357fe7d76312bdc134d7b5b002c19c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xmpp_stream_in.erl:349-361 | src/xmpp_stream_out.erl:382-394 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd9651a62c1ecad2a61a313daf414762a17278aa9f550ef50a4c83096eb9ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 27): src/xep0054.erl:976-987 | src/xep0054.erl:1058-1069 | src/xep0054.erl:1140-1151 | src/xep0054.erl:1222-1233 | src/xep0054.erl:1303-1314 | src/xep0054.erl:1384-1395 | src/xep0054.erl:1465-1476 | src/xep0054.erl:1546-1557 | src/xep0054.erl:1627-1638 | src/xep0054.erl:1708-1719 | src/xep0054.erl:1789-1800 | src/xep0054.erl:1870-1881 | src/xep0054.erl:1951-1962 | src/xep0054.erl:2032-2043 | src/xep0054.erl:2113-2124 | src/xep0054.erl:2194-2205 | src/xep0054.erl:2275-2286 | src/xep0054.erl:2356-2367 | src/xep0054.erl:2437-2448 | src/xep0054.erl:2518-2529 | src/xep0054.erl:2599-2610 | src/xep0054.erl:2680-2691 | src/xep0054.erl:2761-2772 | src/xep0054.erl:2842-2853 | src/xep0054.erl:2923-2934 | src/xep0054.erl:3004-3015 | src/xep0054.erl:3085-3096 \u2014 all 27 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 \u0060src/xep0054.erl:976\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":"src/xep0054.erl"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f598f503753d1f3fc50b10c567a6ce73d9963c0161971a41440cf29a2397ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 20): src/xep0077.erl:490-500 | src/xep0077.erl:553-564 | src/xep0077.erl:618-628 | src/xep0077.erl:682-692 | src/xep0077.erl:745-756 | src/xep0077.erl:810-820 | src/xep0077.erl:873-884 | src/xep0077.erl:937-948 | src/xep0077.erl:1001-1012 | src/xep0077.erl:1065-1076 | src/xep0077.erl:1129-1140 | src/xep0077.erl:1193-1204 | src/xep0077.erl:1257-1268 | src/xep0077.erl:1321-1332 | src/xep0077.erl:1385-1396 | src/xep0077.erl:1449-1460 | src/xep0077.erl:1513-1524 | src/xep0077.erl:1577-1588 | src/xep0077.erl:1641-1652 | src/xep0077.erl:1705-1716 \u2014 all 20 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0077.erl: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:501\u0060 calls \u0060decode_register_registered\u0060 and \u0060src/xep0077.erl:629\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ef7ce444bf70720f5a218dafc213de04b7c25266b4535c4c18dc1393f8c8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 12): src/xep0054.erl:4896-4907 | src/xep0054.erl:4943-4954 | src/xep0054.erl:4990-5001 | src/xep0054.erl:5037-5048 | src/xep0054.erl:5084-5095 | src/xep0054.erl:5131-5142 | src/xep0054.erl:5178-5189 | src/xep0054.erl:5225-5236 | src/xep0054.erl:5272-5283 | src/xep0054.erl:5319-5330 | src/xep0054.erl:5366-5377 | src/xep0054.erl:5413-5424 \u2014 all 12 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 \u0060src/xep0054.erl:4896\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:4908\u0060 calls \u0060decode_vcard_VOICE\u0060 and \u0060src/xep0054.erl:5002\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4896}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98524d5866f899ac56124ff149a25ce48e0f682a68019f46d9d88c517d37e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 12): src/xep0054.erl:6166-6177 | src/xep0054.erl:6213-6224 | src/xep0054.erl:6260-6271 | src/xep0054.erl:6307-6318 | src/xep0054.erl:6354-6365 | src/xep0054.erl:6401-6412 | src/xep0054.erl:6448-6459 | src/xep0054.erl:6495-6506 | src/xep0054.erl:6542-6553 | src/xep0054.erl:6589-6600 | src/xep0054.erl:6636-6647 | src/xep0054.erl:6683-6694 \u2014 all 12 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 \u0060src/xep0054.erl:6166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6178\u0060 calls \u0060decode_vcard_POSTAL\u0060 and \u0060src/xep0054.erl:6272\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6166}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5bcda53d0c21923c3e3d22a5aa3b98ff95cd7fcdd6eab5615ce8d54c24a045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/xep0054.erl:5741-5752 | src/xep0054.erl:5775-5786 | src/xep0054.erl:5809-5820 | src/xep0054.erl:5843-5854 | src/xep0054.erl:5877-5888 \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 \u0060src/xep0054.erl:5741\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5753\u0060 calls \u0060decode_vcard_PARCEL\u0060 and \u0060src/xep0054.erl:5821\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5741}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe6cebfb96d841cc22bf4f7bbf59283b5186e77ce584467e63ae9350d789bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/pubsub_meta_data.erl:701-712 | src/pubsub_node_config.erl:1694-1705 | src/pubsub_publish_options.erl:1696-1707 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:701\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":"src/pubsub_meta_data.erl"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"220d6331b5354b44d6372eeeee52506f31a18f8dcf8727bba2bc1bb9da7757f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pubsub_node_config.erl:1747-1758 | src/pubsub_publish_options.erl:1749-1760 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1747\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":"src/pubsub_node_config.erl"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b0f3a25354cb13977efb53e41d6dc0e85539d11e498dcd6e3b4121ec3c2992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/pubsub_node_config.erl:2208-2219 | src/pubsub_publish_options.erl:2210-2221 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:2208\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":"src/pubsub_node_config.erl"},"region":{"startLine":2208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d923b7940725653bbeb7201ad42492d6b887316b5c773775dab5db84d256eeb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/xmpp_stream_in.erl:1728-1739 | src/xmpp_stream_out.erl:985-996 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xmpp_stream_in.erl:1728\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":"src/xmpp_stream_in.erl"},"region":{"startLine":1728}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bb54a4ed2206c1fc6c51d84efdfa5e17faddd588e940bfaf36610d8dd567d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 29): src/xep0054.erl:813-824 | src/xep0054.erl:892-903 | src/xep0054.erl:974-985 | src/xep0054.erl:1056-1067 | src/xep0054.erl:1138-1149 | src/xep0054.erl:1220-1231 | src/xep0054.erl:1301-1312 | src/xep0054.erl:1382-1393 | src/xep0054.erl:1463-1474 | src/xep0054.erl:1544-1555 | src/xep0054.erl:1625-1636 | src/xep0054.erl:1706-1717 | src/xep0054.erl:1787-1798 | src/xep0054.erl:1868-1879 | src/xep0054.erl:1949-1960 | src/xep0054.erl:2030-2041 | src/xep0054.erl:2111-2122 | src/xep0054.erl:2192-2203 | src/xep0054.erl:2273-2284 | src/xep0054.erl:2354-2365 | src/xep0054.erl:2435-2446 | src/xep0054.erl:2516-2527 | src/xep0054.erl:2597-2608 | src/xep0054.erl:2678-2689 | src/xep0054.erl:2759-2770 | src/xep0054.erl:2840-2851 | src/xep0054.erl:2921-2932 | src/xep0054.erl:3002-3013 | src/xep0054.erl:3083-3094 \u2014 all 29 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 \u0060src/xep0054.erl:813\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:825\u0060 calls \u0060decode_vcard_N\u0060 and \u0060src/xep0054.erl:986\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab8f4c8ad47a3bea3f09fd98ad92f315e68fd295f86c10dff73a0b3f915b8b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): src/xep0054.erl:4849-4859 | src/xep0054.erl:4896-4906 | src/xep0054.erl:4943-4953 | src/xep0054.erl:4990-5000 | src/xep0054.erl:5037-5047 | src/xep0054.erl:5084-5094 | src/xep0054.erl:5131-5141 | src/xep0054.erl:5178-5188 | src/xep0054.erl:5225-5235 | src/xep0054.erl:5272-5282 | src/xep0054.erl:5319-5329 | src/xep0054.erl:5366-5376 | src/xep0054.erl:5413-5423 \u2014 all 13 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 \u0060src/xep0054.erl:4849\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:4860\u0060 calls \u0060decode_vcard_WORK\u0060 and \u0060src/xep0054.erl:4954\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4849}}}],"partialFingerprints":{"codehealthFindingId/v1":"949e86c652c53ac472f813c3db1b8cde92bf3d97a30adc9ce4f6231eac9de9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): src/xep0054.erl:6119-6129 | src/xep0054.erl:6166-6176 | src/xep0054.erl:6213-6223 | src/xep0054.erl:6260-6270 | src/xep0054.erl:6307-6317 | src/xep0054.erl:6354-6364 | src/xep0054.erl:6401-6411 | src/xep0054.erl:6448-6458 | src/xep0054.erl:6495-6505 | src/xep0054.erl:6542-6552 | src/xep0054.erl:6589-6599 | src/xep0054.erl:6636-6646 | src/xep0054.erl:6683-6693 \u2014 all 13 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 \u0060src/xep0054.erl:6119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6130\u0060 calls \u0060decode_vcard_WORK\u0060 and \u0060src/xep0054.erl:6224\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc14d4dbc1592560ca498f132cf837e5d8a01a48b39bea0be1165fdcb01e331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/pubsub_meta_data.erl:749-759 | src/pubsub_node_config.erl:1763-1773 | src/pubsub_publish_options.erl:1765-1775 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:749\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":"src/pubsub_meta_data.erl"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"3075fcaf8139ac692b4261e41c5493f270321f558b7b95a87d964a4de11f317c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/pubsub_meta_data.erl:850-860 | src/pubsub_node_config.erl:2206-2216 | src/pubsub_publish_options.erl:2208-2218 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:850\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":"src/pubsub_meta_data.erl"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"34def5242a8fbb013d4f931455bc93ec75f33357cbabf828966ef44d6e56c313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/pubsub_meta_data.erl:866-876 | src/pubsub_node_config.erl:1851-1861 | src/pubsub_publish_options.erl:1853-1863 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_meta_data.erl:866\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":"src/pubsub_meta_data.erl"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec82c2248a0a965e0efbad639871cab9b4d455b0344928cdc51a236c353e54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/muc_roomconfig.erl:229-239 | src/muc_roominfo.erl:221-231 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:229\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":"src/muc_roomconfig.erl"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0515f57c07b00586be451184767b359cd54619507f0cddb570f61d62ce8b6957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/muc_roomconfig.erl:1736-1746 | src/muc_roomconfig.erl:2240-2248 \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 \u0060src/muc_roomconfig.erl:1736\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":"src/muc_roomconfig.erl"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb237fa8969615c5810c27b2e9fa693a848904ef908f4ebe696c406c536fff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/muc_roomconfig.erl:1889-1898 | src/muc_roominfo.erl:955-965 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roominfo.erl:955\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":"src/muc_roomconfig.erl"},"region":{"startLine":1889}}}],"partialFingerprints":{"codehealthFindingId/v1":"644d96d539269ff2d4beebfd2abc6988bec51a14f0557148cb52f83ac430144e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/muc_roomconfig.erl:1904-1914 | src/muc_roominfo.erl:1198-1208 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:1904\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":"src/muc_roomconfig.erl"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd460bf873df748f6192af9fe744f5a44f5afce60cd269650dfdd94d800fec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pubsub_node_config.erl:1732-1742 | src/pubsub_publish_options.erl:1734-1744 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1732\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":"src/pubsub_node_config.erl"},"region":{"startLine":1732}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ec2a81111de746520d444b7175051a5f201c1c64ca3d94096dbfa87266bcfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pubsub_node_config.erl:1870-1880 | src/pubsub_publish_options.erl:1872-1882 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:1870\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":"src/pubsub_node_config.erl"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1fdf03b9ab2776840136d256aa5d627b3c381f9d49f17e2cabd7c697eab0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pubsub_node_config.erl:2015-2025 | src/pubsub_publish_options.erl:2017-2027 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:2015\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":"src/pubsub_node_config.erl"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90065dd8893b4427ed2e1ddd927faf7185b7732d090eaa7fd01b97e1229614b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/pubsub_node_config.erl:2176-2186 | src/pubsub_publish_options.erl:2178-2188 \u2014 before extracting anything, compare \u0060src/pubsub_node_config.erl\u0060 and \u0060src/pubsub_publish_options.erl\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 2219 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:2176\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":"src/pubsub_node_config.erl"},"region":{"startLine":2176}}}],"partialFingerprints":{"codehealthFindingId/v1":"1060be3f06d316ada8c2ecdcbb0110165fb0ec1977ef93fdb2800b771d4cd5eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/xmpp_stream_in.erl:1829-1839 | src/xmpp_stream_out.erl:1529-1539 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fed9b137d748f57d46ab874bbb19b778b538fbb011072d1240d641c386d645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 15): src/captcha_form.erl:753-762 | src/flex_offline.erl:236-245 | src/http_upload.erl:237-246 | src/mam_query.erl:424-433 | src/muc_register.erl:440-449 | src/muc_request.erl:345-354 | src/muc_roomconfig.erl:1641-1650 | src/muc_roominfo.erl:923-932 | src/pubsub_get_pending.erl:243-252 | src/pubsub_meta_data.erl:687-696 | src/pubsub_node_config.erl:1499-1508 | src/pubsub_publish_options.erl:1501-1510 | src/pubsub_subscribe_authorization.erl:355-364 | src/pubsub_subscribe_options.erl:521-530 | src/push_summary.erl:330-339 \u2014 before extracting anything, compare \u0060src/captcha_form.erl\u0060 and \u0060src/flex_offline.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/captcha_form.erl:753\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":"src/captcha_form.erl"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de36381df54720185c6ebb5b080ec4163a74701c5d578b85bf4346dc2194860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): src/xep0054.erl:4802-4811 | src/xep0054.erl:4849-4858 | src/xep0054.erl:4896-4905 | src/xep0054.erl:4943-4952 | src/xep0054.erl:4990-4999 | src/xep0054.erl:5037-5046 | src/xep0054.erl:5084-5093 | src/xep0054.erl:5131-5140 | src/xep0054.erl:5178-5187 | src/xep0054.erl:5225-5234 | src/xep0054.erl:5272-5281 | src/xep0054.erl:5319-5328 | src/xep0054.erl:5366-5375 | src/xep0054.erl:5413-5422 \u2014 all 14 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 \u0060src/xep0054.erl:4802\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:4812\u0060 calls \u0060decode_vcard_HOME\u0060 and \u0060src/xep0054.erl:4906\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4802}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c95dc6c9de7de901dca6a231c1938d5f2ab79f174381546b7ce396791b0225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): src/xep0054.erl:6072-6081 | src/xep0054.erl:6119-6128 | src/xep0054.erl:6166-6175 | src/xep0054.erl:6213-6222 | src/xep0054.erl:6260-6269 | src/xep0054.erl:6307-6316 | src/xep0054.erl:6354-6363 | src/xep0054.erl:6401-6410 | src/xep0054.erl:6448-6457 | src/xep0054.erl:6495-6504 | src/xep0054.erl:6542-6551 | src/xep0054.erl:6589-6598 | src/xep0054.erl:6636-6645 | src/xep0054.erl:6683-6692 \u2014 all 14 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 \u0060src/xep0054.erl:6072\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:6082\u0060 calls \u0060decode_vcard_HOME\u0060 and \u0060src/xep0054.erl:6176\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6072}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c5e8aed0cf90afcd817721914ac6dac3d7f499f277a19d2f5bef47b6906a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/mam_query.erl:527-535 | src/muc_roomconfig.erl:1936-1945 | src/pubsub_node_config.erl:2101-2110 | src/pubsub_publish_options.erl:2103-2112 \u2014 before extracting anything, compare \u0060src/mam_query.erl\u0060 and \u0060src/muc_roomconfig.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:1936\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":"src/mam_query.erl"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2616419f22fe6023dc71e3054bb1bd4ae6b3ecdea9b5e00cb3af803e881845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/pubsub_meta_data.erl:219-228 | src/pubsub_node_config.erl:302-311 | src/pubsub_publish_options.erl:303-312 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_meta_data.erl"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"105c9a873df63cf77884ca3b37dd22efd2c3941d91defc9aee5577388e96e17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/pubsub_meta_data.erl:262-271 | src/pubsub_node_config.erl:368-378 | src/pubsub_publish_options.erl:369-379 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/pubsub_node_config.erl:368\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":"src/pubsub_meta_data.erl"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"159f03abab57f6fdd9da7731d091651a750820ecb0f7f2193ca16660ab4a2630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): src/pubsub_meta_data.erl:836-844 | src/pubsub_node_config.erl:2191-2200 | src/pubsub_publish_options.erl:2193-2202 \u2014 before extracting anything, compare \u0060src/pubsub_meta_data.erl\u0060 and \u0060src/pubsub_node_config.erl\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_meta_data.erl"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"275a3980f486ae13cfaddf15778a9b39e0e9fd5b0799dfc47859124e11add1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/muc_roomconfig.erl:2189-2197 | src/muc_roominfo.erl:1103-1112 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_roomconfig.erl"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0021c6366f398779af2a5c91740ff18821a2691329d6ecd41fdab4e42b41a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/pubsub_get_pending.erl:258-266 | src/pubsub_meta_data.erl:766-774 | src/pubsub_node_config.erl:1832-1840 | src/pubsub_publish_options.erl:1834-1842 \u2014 before extracting anything, compare \u0060src/pubsub_get_pending.erl\u0060 and \u0060src/pubsub_meta_data.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pubsub_get_pending.erl"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb00e5f9f56ce80691ab6df4fd9229a1b418f61fd4dbb6c1ebe8207f85e4909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/xmpp_stream_in.erl:186-194 | src/xmpp_stream_out.erl:201-209 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"798137721eb531b4c113bfe1a861c6f3150862b9938c9c11b959ff6a2e4e7366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/xmpp_stream_in.erl:1006-1013 | src/xmpp_stream_in.erl:1138-1146 \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 \u0060src/xmpp_stream_in.erl:1138\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xmpp_stream_in.erl:1137\u0060 calls \u0060get_fast_tokens_fun\u0060 and \u0060src/xmpp_stream_in.erl:1005\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"8321d9778977120c7d976b490bb545e1ab3b68e140ea2e30927e5bea8e344ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/xep0054.erl:4801-4808 | src/xep0054.erl:6071-6078 \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 \u0060src/xep0054.erl:4801\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":"src/xep0054.erl"},"region":{"startLine":4801}}}],"partialFingerprints":{"codehealthFindingId/v1":"40118b139b89b05905d1af18613cdd08b390a96f304bb8684f4993e5f5cc4b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/xep0054.erl:4848-4855 | src/xep0054.erl:6118-6125 \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 \u0060src/xep0054.erl:4848\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":"src/xep0054.erl"},"region":{"startLine":4848}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf28a508dd05ba9aeb359b8d47f07965b12fb40f63dec6c8927405abd33db96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/xep0054.erl:5365-5372 | src/xep0054.erl:6353-6360 \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 \u0060src/xep0054.erl:5365\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":"src/xep0054.erl"},"region":{"startLine":5365}}}],"partialFingerprints":{"codehealthFindingId/v1":"98174ba0983ed3ad5e71a6dea8a18c0438bf7586d8ca2c62a42638f8e4a343de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/xmpp_stream_in.erl:463-470 | src/xmpp_stream_out.erl:466-473 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xmpp_stream_in.erl:463\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":"src/xmpp_stream_in.erl"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcde6724aa97a57bfe89280aa3c6231cbd4fd65362985a068f515709a4a77e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/xmpp_stream_in.erl:993-1000 | src/xmpp_stream_in.erl:1123-1130 \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 \u0060src/xmpp_stream_in.erl:993\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":"src/xmpp_stream_in.erl"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffd9bdb591d3c0cbdb164df233c09eba5b46ef816f1df652af5cb0c6658d08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/xmpp_stream_in.erl:1076-1083 | src/xmpp_stream_in.erl:1327-1334 \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 \u0060src/xmpp_stream_in.erl:1076\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":"src/xmpp_stream_in.erl"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"056f071b467d6306d0c9526673b9cb50d3126d407178486d0bcb3a2e8417e235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 50): src/xep0054.erl:814-820 | src/xep0054.erl:893-899 | src/xep0054.erl:975-981 | src/xep0054.erl:1057-1063 | src/xep0054.erl:1139-1145 | src/xep0054.erl:1221-1227 | src/xep0054.erl:1302-1308 | src/xep0054.erl:1383-1389 | src/xep0054.erl:1464-1470 | src/xep0054.erl:1545-1551 | src/xep0054.erl:1626-1632 | src/xep0054.erl:1707-1713 | src/xep0054.erl:1788-1794 | src/xep0054.erl:1869-1875 | src/xep0054.erl:1950-1956 | src/xep0054.erl:2031-2037 | src/xep0054.erl:2112-2118 | src/xep0054.erl:2193-2199 | src/xep0054.erl:2274-2280 | src/xep0054.erl:2355-2361 | src/xep0054.erl:2436-2442 | src/xep0054.erl:2517-2523 | src/xep0054.erl:2598-2604 | src/xep0054.erl:2679-2685 | src/xep0054.erl:2760-2766 | src/xep0054.erl:2841-2847 | src/xep0054.erl:2922-2928 | src/xep0054.erl:3003-3009 | src/xep0054.erl:3084-3090 | src/xep0077.erl:425-431 | src/xep0077.erl:489-495 | src/xep0077.erl:553-559 | src/xep0077.erl:617-623 | src/xep0077.erl:681-687 | src/xep0077.erl:745-751 | src/xep0077.erl:809-815 | src/xep0077.erl:873-879 | src/xep0077.erl:937-943 | src/xep0077.erl:1001-1007 | src/xep0077.erl:1065-1071 | src/xep0077.erl:1129-1135 | src/xep0077.erl:1193-1199 | src/xep0077.erl:1257-1263 | src/xep0077.erl:1321-1327 | src/xep0077.erl:1385-1391 | src/xep0077.erl:1449-1455 | src/xep0077.erl:1513-1519 | src/xep0077.erl:1577-1583 | src/xep0077.erl:1641-1647 | src/xep0077.erl:1705-1711 \u2014 before extracting anything, compare \u0060src/xep0054.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:814\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":"src/xep0054.erl"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d155563270d3476cfe4229c6573d0a1dd739ce23db45ce92fa3b425b65f3c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 16): src/xep0060.erl:1965-1971 | src/xep0060.erl:2039-2046 | src/xep0060.erl:2114-2121 | src/xep0060.erl:2167-2174 | src/xep0060.erl:2264-2271 | src/xep0060.erl:2317-2324 | src/xep0060.erl:2370-2378 | src/xep0060.erl:2424-2431 | src/xep0060.erl:2477-2484 | src/xep0060.erl:2552-2558 | src/xep0060.erl:2626-2633 | src/xep0060.erl:2679-2686 | src/xep0060.erl:2754-2761 | src/xep0060.erl:2807-2813 | src/xep0060.erl:2903-2909 | src/xep0060.erl:2999-3005 \u2014 all 16 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0060.erl:1965\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":"src/xep0060.erl"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff27ceb0e67812f3e96aea5d08f87755cdc5eb7971ab8dbccb0691ac1628caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xmpp_stream_in.erl:372-378 | src/xmpp_stream_out.erl:397-403 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xmpp_stream_in.erl:372\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xmpp_stream_in.erl:370\u0060 calls \u0060handle_info\u0060 and \u0060src/xmpp_stream_out.erl:396\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"3215caa5915c9c4627c62d297a27b60a92347e2a45861e5fbf5e49c0ee316e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xmpp_stream_in.erl:570-576 | src/xmpp_stream_out.erl:520-526 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"770e9be613ad8ab9a73c250dc39942a6fc2d6aebd5aab8ca7e36d27da2c327d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/xmpp_stream_in.erl:208-213 | src/xmpp_stream_out.erl:219-224 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a880d1b1fa25e8a4a0a650d0521917fc46eaaa83341be2267e97ec4354029be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xmpp_stream_in.erl:612-618 | src/xmpp_stream_out.erl:542-548 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xmpp_stream_in.erl:612\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":"src/xmpp_stream_in.erl"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"61333c5c73ca3ead89102dd86bd0fe02de1bda0fdc6b0b7e7f3b98adef62170b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 16): src/captcha_form.erl:137-142 | src/flex_offline.erl:122-127 | src/http_upload.erl:123-128 | src/mam_query.erl:128-133 | src/muc_register.erl:128-133 | src/muc_request.erl:125-130 | src/muc_roomconfig.erl:156-161 | src/muc_roominfo.erl:139-144 | src/pubsub_get_pending.erl:122-127 | src/pubsub_meta_data.erl:134-139 | src/pubsub_node_config.erl:154-159 | src/pubsub_publish_options.erl:154-159 | src/pubsub_subscribe_authorization.erl:125-130 | src/pubsub_subscribe_options.erl:129-134 | src/push_summary.erl:125-130 | src/xdata_codec.erl:185-189 \u2014 before extracting anything, compare \u0060src/captcha_form.erl\u0060 and \u0060src/flex_offline.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6421c167f6c0fd80b83dbcf82e33284d8c09c996c4e8630a21b91e408424c01b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/xdata_codec.erl:580-584 | src/xdata_codec.erl:607-611 | src/xdata_codec.erl:642-646 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xdata_codec.erl"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e1c6d022178b8fb008d27b6b736ffc263a709b7f18a18774030c0503a9d77e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 7): src/rfc6120.erl:2777-2814 | src/xep0033.erl:159-192 | src/xep0166.erl:637-674 | src/xep0313.erl:1080-1113 | src/xep0386.erl:203-240 | src/xep0388.erl:457-494 | src/xep0424.erl:123-161 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0166.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2777}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6815d721a60d695bace80aa83cf3eaf14d4cea8a04c9586d7f4fde7103d7958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/xep0047.erl:206-242 | src/xep0261.erl:64-101 \u2014 before extracting anything, compare \u0060src/xep0047.erl\u0060 and \u0060src/xep0261.erl\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"src/xep0047.erl"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"156499c259360749e6d73d23c26648fd3df8dbfbe556c3e181031dc68cf5756e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 41): src/captcha_form.erl:89-93 | src/flex_offline.erl:74-78 | src/http_upload.erl:75-79 | src/mam_query.erl:80-84 | src/muc_register.erl:80-84 | src/muc_request.erl:77-81 | src/muc_roomconfig.erl:108-112 | src/muc_roominfo.erl:91-95 | src/pubsub_get_pending.erl:74-78 | src/pubsub_meta_data.erl:86-90 | src/pubsub_node_config.erl:106-110 | src/pubsub_publish_options.erl:106-110 | src/pubsub_subscribe_authorization.erl:77-81 | src/pubsub_subscribe_options.erl:81-85 | src/push_summary.erl:77-81 | src/rfc6120.erl:1048-1052 | src/xdata_codec.erl:128-134 | src/xep0012.erl:30-34 | src/xep0016.erl:105-109 | src/xep0023.erl:29-33 | src/xep0039.erl:60-64 | src/xep0045.erl:277-281 | src/xep0047.erl:65-69 | src/xep0059.erl:85-89 | src/xep0060.erl:922-926 | src/xep0065.erl:76-80 | src/xep0084.erl:105-109 | src/xep0198.erl:135-139 | src/xep0215.erl:91-95 | src/xep0221.erl:44-48 | src/xep0231.erl:29-33 | src/xep0234.erl:194-198 | src/xep0260.erl:111-115 | src/xep0261.erl:44-48 | src/xep0264.erl:32-36 | src/xep0279.erl:44-48 | src/xep0363.erl:266-270 | src/xep0430.erl:52-56 | src/xep0480.erl:62-66 | src/xep0484.erl:66-70 | src/xep0513.erl:56-60 \u2014 before extracting anything, compare \u0060src/captcha_form.erl\u0060 and \u0060src/flex_offline.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0045.erl:283\u0060 calls \u0060dec_utc\u0060, \u0060decode_timestamp\u0060 and \u0060src/xep0016.erl:111\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e761bc5ed7d35863cba706694f69327e8fdc16aeb63039ac490d66aaf46c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 37): src/captcha_form.erl:97-101 | src/flex_offline.erl:82-86 | src/http_upload.erl:83-87 | src/mam_query.erl:88-92 | src/muc_register.erl:88-92 | src/muc_request.erl:85-89 | src/muc_roomconfig.erl:116-120 | src/muc_roominfo.erl:99-103 | src/pubsub_get_pending.erl:82-86 | src/pubsub_meta_data.erl:94-98 | src/pubsub_node_config.erl:114-118 | src/pubsub_publish_options.erl:114-118 | src/pubsub_subscribe_authorization.erl:85-89 | src/pubsub_subscribe_options.erl:89-93 | src/push_summary.erl:85-89 | src/rfc6120.erl:1029-1033 | src/rfc6121.erl:88-92 | src/xdata_codec.erl:139-144 | src/xep0004.erl:122-126 | src/xep0013.erl:60-64 | src/xep0016.erl:99-103 | src/xep0033.erl:81-85 | src/xep0045.erl:271-275 | src/xep0047.erl:59-63 | src/xep0050.erl:96-100 | src/xep0060.erl:916-920 | src/xep0065.erl:70-74 | src/xep0166.erl:314-318 | src/xep0215.erl:83-87 | src/xep0220.erl:88-92 | src/xep0234.erl:188-192 | src/xep0260.erl:105-109 | src/xep0261.erl:38-42 | src/xep0313.erl:243-247 | src/xep0356.erl:82-86 | src/xep0485.erl:81-85 | src/xepXXXX.erl:111-115 \u2014 before extracting anything, compare \u0060src/captcha_form.erl\u0060 and \u0060src/flex_offline.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0313.erl:249\u0060 calls \u0060dec_utc\u0060, \u0060decode_timestamp\u0060 and \u0060src/rfc6121.erl:94\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/captcha_form.erl"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3456f8ced2e6e2c28c0033c6faacf6e5d5235f265aefaf84b0f93045278966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/xmpp_sasl_fast.erl:124-129 | src/xmpp_sasl_plain.erl:85-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_fast.erl"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"81647dea6a50816d14c91c5350f0cad63c5cf313558a7f211c35496e1398c577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/xmpp_stream_in.erl:233-238 | src/xmpp_stream_out.erl:228-233 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41f6b3303a154b45348258a0285c1062f83a6dc7655520625e820b4927f5a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/xmpp_stream_in.erl:260-264 | src/xmpp_stream_out.erl:257-261 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xmpp_stream_in.erl:259\u0060 calls \u0060get_transport\u0060, \u0060state\u0060, \u0060atom\u0060 and \u0060src/xmpp_stream_out.erl:255\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d825fe0ed4f4f03b311b570d39cfc02265dd456e53ad8c93f2ad0ef0c7ef59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/xmpp_stream_in.erl:267-272 | src/xmpp_stream_out.erl:264-269 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"54813fcc438320f46c48f58ee66f5b624b2b2c3877d3847ffdd7cd9c92c552c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xmpp_stream_in.erl:1762-1768 | src/xmpp_stream_out.erl:1032-1038 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb52ecd4432efab56b60b0103fa1c0ecf371147dff74c60902bf23ebbe98617"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/xmpp_stream_in.erl:1817-1821 | src/xmpp_stream_out.erl:1517-1521 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e40a24bbcffd9513c4cd90a58faedd9da8e09419dcee17e96b80617853c840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/xmpp_stream_in.erl:1823-1827 | src/xmpp_stream_out.erl:1523-1527 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcb374a86c50ac2efbc5f29f4dc5c52b908783ab6d7dfe3773fa92cfac716d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/rfc6120.erl:2686-2695 | src/rfc6120.erl:3651-3660 | src/rfc6120.erl:4952-4961 | src/xep0166.erl:1432-1441 | src/xep0377.erl:322-331 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0166.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2686}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3ea26ec6024f446567a4a92633f4a2b0e0676f4a43a6099a8a59c07e391008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/rfc6120.erl:2739-2753 | src/rfc6120.erl:3704-3718 | src/rfc6120.erl:4995-5008 | src/xep0166.erl:1485-1499 | src/xep0377.erl:365-378 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0166.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"449c227c58f530b3d92c2cdf90cbb73160597232c4a64ae95c62e54225130052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/rfc6120.erl:2984-2990 | src/xep0388.erl:2189-2195 | src/xep0484.erl:198-204 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0388.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":2984}}}],"partialFingerprints":{"codehealthFindingId/v1":"2495366d277cfd32bc0688d88a1132d7ad20633888420c8846d1621cbdc6632d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/rfc6120.erl:3778-3784 | src/xep0388.erl:1576-1582 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0388.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3778}}}],"partialFingerprints":{"codehealthFindingId/v1":"477923512b0e43015a6524f23ea0c52fb2369fea387cb2ec14ccb774bb010302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/rfc6120.erl:3813-3821 | src/xep0388.erl:1611-1619 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0388.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3813}}}],"partialFingerprints":{"codehealthFindingId/v1":"1504e6656b1f95eb538d9fc86e187510124aca6e2451598a047c7c39d10e92ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/rfc6120.erl:3827-3833 | src/xep0388.erl:1625-1631 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0388.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3827}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f76dbcbbc7f4329f5356b3530b86d3e1f91bfe5677661ef181b077ba6880e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/rfc6120.erl:3862-3870 | src/xep0388.erl:1660-1668 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0388.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":3862}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb48850b27ae193a7a017b9ce1ab5e148a78863ec9f7613fdbf31f3e900d2e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/rfc6120.erl:4039-4045 | src/xep0078.erl:270-276 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4039}}}],"partialFingerprints":{"codehealthFindingId/v1":"408df308d43c89628b59c67a7377c0849506247a37f73906cd4c0e957d68df08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/rfc6120.erl:4087-4093 | src/xep0313.erl:1019-1025 | src/xep0369.erl:1189-1195 | src/xepXXXX.erl:756-762 \u2014 before extracting anything, compare \u0060src/rfc6120.erl\u0060 and \u0060src/xep0313.erl\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4087}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e04ae15dc890b505afa6bd46b7665bea909f2b23600feb95191cfd5f2806e53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/rfc6120.erl:4117-4125 | src/xepXXXX.erl:786-794 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":4117}}}],"partialFingerprints":{"codehealthFindingId/v1":"621d17589816d900a7ff16fc4bac4211d1f29bc5a7679790f7b211ebabf3b132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/xep0004.erl:549-555 | src/xep0055.erl:770-776 | src/xep0077.erl:2787-2793 \u2014 before extracting anything, compare \u0060src/xep0055.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04c30acb32299ff71dfcd324af531c6a41a3a95b84b470e4359950b1425015a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0004.erl:1072-1078 | src/xep0066.erl:191-197 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"563b5eab3436d13e6eae340b4c8cad9602b8f9011f19f371320d2df339c71c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0022.erl:272-278 | src/xepXXXX.erl:549-555 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0022.erl"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a799f8bd565a2337f81ec2a0ed453b03f9923aca47c368b2d4f4af2bafe9fed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0033.erl:53-67 | src/xep0084.erl:75-89 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0084.erl:91\u0060 calls \u0060pp\u0060 and \u0060src/xep0033.erl:69\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0033.erl"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0f287d425ca25c6dba4a6dde698d23dbc2005227d66fc900287355b621a09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0039.erl:68-74 | src/xep0355.erl:69-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0039.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"986a0438a1b6ca1c799f20b20dbde2565fdbb305e9d9606fb4c91d7dd7be2550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0045.erl:432-438 | src/xep0049.erl:34-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f66c3acd042f2bf50e45168b9baabbf86f59c19433efb3529fc2d52f35e304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/xep0045.erl:1338-1344 | src/xep0048.erl:460-466 | src/xep0077.erl:2660-2666 | src/xep0078.erl:356-362 | src/xep0402.erl:325-331 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc9ccf412b0eff5815ea2f7936beb964971e07500b6e905d327d38e3dbaa296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/xep0045.erl:2680-2686 | src/xep0425.erl:123-130 | src/xep0425.erl:173-179 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0045.erl"},"region":{"startLine":2680}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26b68c13f2c1430bdc484e096516683d9deb2704d07f52f86e2a125a3901dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/xep0047.erl:182-190 | src/xep0231.erl:145-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0047.erl"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfeaf886f82552327c6216a60b4d2465d907615a63bbbdc5afe3cdb36cda963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0048.erl:439-453 | src/xep0402.erl:266-280 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4bda12323fc7d755d291ed0df3f408106363da5570cd6af83eb6196acc9dc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/xep0048.erl:503-509 | src/xep0055.erl:655-661 | src/xep0077.erl:2703-2709 | src/xep0369.erl:1235-1241 | src/xep0402.erl:371-377 \u2014 before extracting anything, compare \u0060src/xep0055.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0048.erl"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"77eb3885bb6ae7a27c00370ad49168203e19be963abd0865ced0e00edfbcf157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0055.erl:614-620 | src/xep0077.erl:2496-2502 \u2014 before extracting anything, compare \u0060src/xep0055.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"d027f096597856057063590947ed21a68acb57592e3cfcc97f062c83a8d22488"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/xep0055.erl:692-698 | src/xep0059.erl:623-629 | src/xep0077.erl:2537-2543 \u2014 before extracting anything, compare \u0060src/xep0055.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24b7b4e52883ec8bb1e97ba842c45be1512299f0c83fcc5f844e70c2c231fbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0055.erl:729-735 | src/xep0077.erl:2578-2584 \u2014 before extracting anything, compare \u0060src/xep0055.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc5871a97225f2bf3309156a6966d2eab756b3a0a316c351ca6df43000578d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0066.erl:228-234 | src/xep0077.erl:2250-2256 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0066.erl"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c189d4c7c32507a9177154b926361ba0481306271db1c628821d9f850fff5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0077.erl:2127-2133 | src/xep0388.erl:785-791 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5f1b6abc39ab07c9b505491d8f7c22761fa08908705c6b52432112b1c87b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0077.erl:2209-2215 | src/xep0234.erl:1299-1305 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ec7dbe26641e9f3b40fe640aba2026c37ce86ae121473fb6f07f2731abe018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/xep0077.erl:2619-2625 | src/xep0092.erl:245-251 | src/xep0234.erl:1139-1145 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34f67f18386d087118cc6cf1845b6b8c13f4ea9fd9275867be860b15f312bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0077.erl:2744-2750 | src/xep0078.erl:399-405 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0077.erl"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f38e996693744ab9d4f9a1c2445c7a236a6203c0b19f04b3ade1ed052b273be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/xep0184.erl:46-51 | src/xep0333.erl:154-159 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0184.erl"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf91e26baca6df97751b370970b492a2d0d425b76d71daee37d916fdd2bf2ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0234.erl:1090-1096 | src/xep0363.erl:1420-1426 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"620dd22b52eff8dafcc567dfb16de3d72483bdf64b50e3f722a90585d7384b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/xep0260.erl:422-431 | src/xep0261.erl:120-129 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0260.erl"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ba1b6a424ae6b701b8e645de1e23b8255fc938fb42bd97e91166bfb65952b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/xep0386.erl:195-201 | src/xep0388.erl:2131-2137 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0386.erl"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a695077602594e847c2eb763fdcdbd81438caf054e2499c1e5ad80b5c25c1b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/xmpp_lang.erl:50-58 | src/xmpp_uri.erl:50-58 \u2014 before extracting anything, compare \u0060src/xmpp_lang.erl\u0060 and \u0060src/xmpp_uri.erl\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_lang.erl"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e58347b5ded52cafbac0d2adfffbbdef0a7ebfe05964589d38737fca1e98395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/xep0054.erl:3331-3355 | src/xep0077.erl:1894-1918 \u2014 before extracting anything, compare \u0060src/xep0054.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:3331\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0077.erl:1892\u0060 calls \u0060encode_register\u0060 and \u0060src/xep0054.erl:3329\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":3331}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0a38bd6adc9448675bffea8d04363a5d9fac5355ac2f4b713d867c9585cc27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 11): src/xep0054.erl:4825-4847 | src/xep0054.erl:4872-4894 | src/xep0054.erl:4919-4941 | src/xep0054.erl:4966-4988 | src/xep0054.erl:5013-5035 | src/xep0054.erl:5060-5082 | src/xep0054.erl:5107-5129 | src/xep0054.erl:5154-5176 | src/xep0054.erl:5201-5223 | src/xep0054.erl:5248-5270 | src/xep0054.erl:5295-5317 \u2014 all 11 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 \u0060src/xep0054.erl:4825\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5292\u0060 calls \u0060decode_vcard_ISDN\u0060 and \u0060src/xep0054.erl:4824\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4825}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fa1794c613bade73ab02b2e5132e72f7c89f79002077be5a41fc86b80a13e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 15): src/xep0060.erl:2015-2037 | src/xep0060.erl:2090-2112 | src/xep0060.erl:2143-2165 | src/xep0060.erl:2240-2262 | src/xep0060.erl:2293-2315 | src/xep0060.erl:2346-2368 | src/xep0060.erl:2400-2422 | src/xep0060.erl:2453-2475 | src/xep0060.erl:2528-2550 | src/xep0060.erl:2602-2624 | src/xep0060.erl:2655-2677 | src/xep0060.erl:2730-2752 | src/xep0060.erl:2783-2805 | src/xep0060.erl:2879-2901 | src/xep0060.erl:2975-2997 \u2014 all 15 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 \u0060src/xep0060.erl:2015\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0060.erl:2972\u0060 calls \u0060decode_pubsub_purge\u0060 and \u0060src/xep0060.erl:2014\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5225888801de67582bebb25baa856224fd1cb4b7c706cd822ac95fd07a5f3be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 11): src/xep0054.erl:6095-6117 | src/xep0054.erl:6142-6164 | src/xep0054.erl:6189-6211 | src/xep0054.erl:6236-6258 | src/xep0054.erl:6283-6305 | src/xep0054.erl:6330-6352 | src/xep0054.erl:6377-6399 | src/xep0054.erl:6424-6446 | src/xep0054.erl:6471-6493 | src/xep0054.erl:6518-6540 | src/xep0054.erl:6565-6587 \u2014 all 11 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 \u0060src/xep0054.erl:6095\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:6562\u0060 calls \u0060decode_vcard_LOCALITY\u0060 and \u0060src/xep0054.erl:6094\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6095}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefefedc670aed561d0f73220e15f61072c87c073b1671d4093624c00825f088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 12): src/xep0054.erl:6096-6117 | src/xep0054.erl:6143-6164 | src/xep0054.erl:6190-6211 | src/xep0054.erl:6237-6258 | src/xep0054.erl:6284-6305 | src/xep0054.erl:6331-6352 | src/xep0054.erl:6378-6399 | src/xep0054.erl:6425-6446 | src/xep0054.erl:6472-6493 | src/xep0054.erl:6519-6540 | src/xep0054.erl:6566-6587 | src/xep0054.erl:6613-6634 \u2014 all 12 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 \u0060src/xep0054.erl:6096\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:6610\u0060 calls \u0060decode_vcard_REGION\u0060 and \u0060src/xep0054.erl:6095\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6096}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb186552086dd46f89913b916b32e9ed602cb8cc33195b772f11bd4c6e2d30a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 12): src/xep0054.erl:4826-4847 | src/xep0054.erl:4873-4894 | src/xep0054.erl:4920-4941 | src/xep0054.erl:4967-4988 | src/xep0054.erl:5014-5035 | src/xep0054.erl:5061-5082 | src/xep0054.erl:5108-5129 | src/xep0054.erl:5155-5176 | src/xep0054.erl:5202-5223 | src/xep0054.erl:5249-5270 | src/xep0054.erl:5296-5317 | src/xep0054.erl:5343-5364 \u2014 all 12 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 \u0060src/xep0054.erl:4826\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5340\u0060 calls \u0060decode_vcard_PCS\u0060 and \u0060src/xep0054.erl:4825\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4826}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f51d847dc625ba0897e414312e1798166a386ad5c6c4a9acaae889cd63dfe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/xep0054.erl:680-701 | src/xep0077.erl:325-346 \u2014 before extracting anything, compare \u0060src/xep0054.erl\u0060 and \u0060src/xep0077.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:680\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0077.erl:348\u0060 calls \u0060decode_register_els\u0060 and \u0060src/xep0054.erl:702\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf55c288d64eb6a39770110fdad7ab49efff1767451ab05ff69fdbb8a54af33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 13): src/xep0054.erl:6097-6117 | src/xep0054.erl:6144-6164 | src/xep0054.erl:6191-6211 | src/xep0054.erl:6238-6258 | src/xep0054.erl:6285-6305 | src/xep0054.erl:6332-6352 | src/xep0054.erl:6379-6399 | src/xep0054.erl:6426-6446 | src/xep0054.erl:6473-6493 | src/xep0054.erl:6520-6540 | src/xep0054.erl:6567-6587 | src/xep0054.erl:6614-6634 | src/xep0054.erl:6661-6681 \u2014 all 13 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 \u0060src/xep0054.erl:6097\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:6658\u0060 calls \u0060decode_vcard_PCODE\u0060 and \u0060src/xep0054.erl:6096\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":6097}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bc7c41854b4b6d6d0b1265137ccbca34921b2aa0d9f3078eb2c48bb4910877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 13): src/xep0054.erl:4827-4847 | src/xep0054.erl:4874-4894 | src/xep0054.erl:4921-4941 | src/xep0054.erl:4968-4988 | src/xep0054.erl:5015-5035 | src/xep0054.erl:5062-5082 | src/xep0054.erl:5109-5129 | src/xep0054.erl:5156-5176 | src/xep0054.erl:5203-5223 | src/xep0054.erl:5250-5270 | src/xep0054.erl:5297-5317 | src/xep0054.erl:5344-5364 | src/xep0054.erl:5391-5411 \u2014 all 13 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 \u0060src/xep0054.erl:4827\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5388\u0060 calls \u0060decode_vcard_PREF\u0060 and \u0060src/xep0054.erl:4826\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4827}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a64a8e295d64df37db04682fe0038f597da58216043580dc535befde8c241e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/xep0234.erl:578-597 | src/xep0234.erl:614-633 \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 \u0060src/xep0234.erl:578\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":"src/xep0234.erl"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"7088d867f1ec314a1cdb553a28c77137f98bc03f25e0a2cfb0d1ac6dbb35124a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/xep0054.erl:5652-5671 | src/xep0054.erl:5686-5705 \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 \u0060src/xep0054.erl:5652\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":"src/xep0054.erl"},"region":{"startLine":5652}}}],"partialFingerprints":{"codehealthFindingId/v1":"1061b1a9d78ee4e4fa4abb2af84fe976b9d6daa64515aa597b84558afa46e5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/xep0234.erl:579-597 | src/xep0234.erl:615-633 | src/xep0234.erl:651-669 \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 \u0060src/xep0234.erl:579\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":"src/xep0234.erl"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dba113c68e973b2e48fdee4763b592544532636c405204faa74a8eda43620e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/xep0054.erl:5653-5671 | src/xep0054.erl:5687-5705 | src/xep0054.erl:5721-5739 \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 \u0060src/xep0054.erl:5653\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":"src/xep0054.erl"},"region":{"startLine":5653}}}],"partialFingerprints":{"codehealthFindingId/v1":"4318cd3d33b231f03f40b9d307f2f22581b5af5f425ef79e52c6d39c315b705f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/xep0054.erl:5654-5671 | src/xep0054.erl:5688-5705 | src/xep0054.erl:5722-5739 | src/xep0054.erl:5756-5773 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5654\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":"src/xep0054.erl"},"region":{"startLine":5654}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b62a16649bb3210fb94b3cbe2761dba02f6331431bfdbf4a8488b989e21798e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/xep0234.erl:581-597 | src/xep0234.erl:617-633 | src/xep0234.erl:653-670 | src/xep0234.erl:688-705 | src/xep0234.erl:723-739 \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 \u0060src/xep0234.erl:581\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0234.erl:720\u0060 calls \u0060decode_jingle_ft_media_type\u0060 and \u0060src/xep0234.erl:580\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec653662ece143f3faabc946eddae28c9fbf93a0268b99138d9174fe2368f31f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/xep0055.erl:115-132 | src/xep0055.erl:147-164 | src/xep0055.erl:179-196 \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 \u0060src/xep0055.erl:115\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":"src/xep0055.erl"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1511469017db77841571ad85f85284f45ff11dbd63f36bf1ff8eafe5d5749ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/xep0313.erl:1298-1314 | src/xep0313.erl:1330-1346 | src/xep0313.erl:1362-1379 \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 \u0060src/xep0313.erl:1298\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":"src/xep0313.erl"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"86294940e25d221daeb76e74ddebd2b0d9b9fda2ae1da46089a134d3501d0c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/xep0059.erl:133-150 | src/xep0059.erl:165-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 \u0060src/xep0059.erl:133\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":"src/xep0059.erl"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"6305a503dc4ae7c83ef6413448e1f779e8be17e8d384bae2a90b7ebb0af9b6e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/xep0054.erl:5655-5671 | src/xep0054.erl:5689-5705 | src/xep0054.erl:5723-5739 | src/xep0054.erl:5757-5773 | src/xep0054.erl:5791-5807 \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 \u0060src/xep0054.erl:5655\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5788\u0060 calls \u0060decode_vcard_DOM\u0060 and \u0060src/xep0054.erl:5654\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5655}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5c640c14547b637b402e097277dee0ecc538b5827fe0ac74d499ccb5b3007f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): src/xep0234.erl:582-598 | src/xep0234.erl:618-634 | src/xep0234.erl:654-670 | src/xep0234.erl:689-705 | src/xep0234.erl:724-740 | src/xep0234.erl:759-775 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0234.erl:582\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0234.erl:756\u0060 calls \u0060decode_jingle_ft_name\u0060 and \u0060src/xep0234.erl:581\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f3b34a882c106ee24023605b8e7dfbbe3eae1c50f615481c2fbe004cbcf60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): src/xep0054.erl:5656-5672 | src/xep0054.erl:5690-5706 | src/xep0054.erl:5724-5740 | src/xep0054.erl:5758-5774 | src/xep0054.erl:5792-5808 | src/xep0054.erl:5826-5842 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5656\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:5823\u0060 calls \u0060decode_vcard_INTL\u0060 and \u0060src/xep0054.erl:5655\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5656}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d438fe7b2e722df4b7b01fb70990ca5fed390fe74c5f38933661870a400168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/xep0313.erl:1299-1315 | src/xep0313.erl:1331-1347 | src/xep0313.erl:1363-1379 | src/xep0313.erl:1395-1411 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0313.erl:1299\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":"src/xep0313.erl"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92d2cfd26f6ead35b5c2d34c6bee35d344122b4611a038a95c5335bca7fbbfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/xep0060.erl:4569-4585 | src/xep0060.erl:4624-4640 \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 \u0060src/xep0060.erl:4569\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":"src/xep0060.erl"},"region":{"startLine":4569}}}],"partialFingerprints":{"codehealthFindingId/v1":"0479186074a92a66dede9808311fccd46ff2e2e8231d8411a5af4501d3323c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/xep0084.erl:426-442 | src/xep0084.erl:448-464 | src/xep0084.erl:470-486 \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 \u0060src/xep0084.erl:426\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":"src/xep0084.erl"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b1b68542f5508bc3cf184bf0d5adca34ba96b54193cb6e740d9d8b223c6155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/xep0060.erl:1547-1563 | src/xep0060.erl:1590-1606 \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 \u0060src/xep0060.erl:1547\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":"src/xep0060.erl"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd989f56429a6574bfda17164eb42b9703a2ba518f256ab12b59a2ebd086eaf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/xep0054.erl:4493-4509 | src/xep0054.erl:4523-4539 \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 \u0060src/xep0054.erl:4493\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":"src/xep0054.erl"},"region":{"startLine":4493}}}],"partialFingerprints":{"codehealthFindingId/v1":"961420b46ee6c1a857afed7bfcfef5a1558d7038cd0ae25b7becb9d78d8cfb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/xep0059.erl:135-151 | src/xep0059.erl:167-183 | src/xep0059.erl:199-215 | src/xep0059.erl:231-247 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0059.erl:135\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":"src/xep0059.erl"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4a189b8946f3fbce9967002aaf661e07554779a417e12074b887f642e22945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/xep0045.erl:1429-1445 | src/xep0045.erl:1472-1488 \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 \u0060src/xep0045.erl:1429\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":"src/xep0045.erl"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"b079e58867fab70a581b522750fbb5ca1c1f050dfd7cbfef268c72a94876582e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/xep0055.erl:116-132 | src/xep0055.erl:148-164 | src/xep0055.erl:180-196 | src/xep0055.erl:212-228 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0055.erl: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":"src/xep0055.erl"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6fb881af950d132460c4ed4b43e8858e9868f646677124ee11d3a8bb2f6a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/xep0060.erl:5652-5668 | src/xep0060.erl:5674-5690 | src/xep0060.erl:5696-5712 \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 \u0060src/xep0060.erl:5652\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":"src/xep0060.erl"},"region":{"startLine":5652}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b38c3d97e2c28550aa0b1578664609376ac5d73be7eefa836c3181a31e6997"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/xep0260.erl:571-587 | src/xep0260.erl:593-609 | src/xep0260.erl:615-631 \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 \u0060src/xep0260.erl:571\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":"src/xep0260.erl"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"207372e2732bbf9451db39057d21ea5f79b86c334b7648279ddadd1e2b5f4a05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/xep0054.erl:4494-4509 | src/xep0054.erl:4524-4539 | src/xep0054.erl:4554-4569 \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 \u0060src/xep0054.erl:4494\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":"src/xep0054.erl"},"region":{"startLine":4494}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19b3216f79ca23e166393ea02fad7330db33ec07d693e41b3f246c8754da195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0249.erl:58-73 | src/xep0249.erl:78-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 \u0060src/xep0249.erl: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":"src/xep0249.erl"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2d6d49eb442e9b84dd986e6c041465bac8caf57b5733446eb82f65efbb2e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0198.erl:1125-1140 | src/xep0198.erl:1145-1160 \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 \u0060src/xep0198.erl:1125\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":"src/xep0198.erl"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c3201517a1e9db0e7716ff13ee95691076f91735641c0b8e5e23e1e322f751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0084.erl:244-259 | src/xep0084.erl:264-279 \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 \u0060src/xep0084.erl:244\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":"src/xep0084.erl"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fec1d4a69348047ebd31204b727b820ce6c4e02910338dc63b475009a900d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/rfc6120.erl:5672-5687 | src/rfc6120.erl:5692-5707 \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 \u0060src/rfc6120.erl:5672\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":"src/rfc6120.erl"},"region":{"startLine":5672}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dc77a0692de5dda36713bbf1a9c425c85d645abdb9f130c52bfa94adb54668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 26): src/rfc6120.erl:1419-1432 | src/rfc6120.erl:1441-1455 | src/rfc6120.erl:1464-1477 | src/rfc6120.erl:1486-1500 | src/rfc6120.erl:1509-1522 | src/rfc6120.erl:1531-1544 | src/rfc6120.erl:1553-1567 | src/rfc6120.erl:1576-1590 | src/rfc6120.erl:1599-1612 | src/rfc6120.erl:1621-1634 | src/rfc6120.erl:1643-1657 | src/rfc6120.erl:1666-1679 | src/rfc6120.erl:1688-1701 | src/rfc6120.erl:1710-1724 | src/rfc6120.erl:1733-1747 | src/rfc6120.erl:1756-1771 | src/rfc6120.erl:1780-1793 | src/rfc6120.erl:1802-1816 | src/rfc6120.erl:1825-1838 | src/rfc6120.erl:1847-1860 | src/rfc6120.erl:1869-1883 | src/rfc6120.erl:1892-1906 | src/rfc6120.erl:1915-1929 | src/rfc6120.erl:1938-1952 | src/rfc6120.erl:1961-1975 | src/rfc6120.erl:1984-1998 \u2014 all 26 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":"src/rfc6120.erl"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"6830e51f34446148aa53ea8da86c8e29868cee115ad989594221f969bfd5b9ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0424.erl:346-361 | src/xep0424.erl:364-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0424.erl:346\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":"src/xep0424.erl"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d0e95fbbe951ac5d5ff36abc4149f3e31cc5da5689d735043b854daef2290f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/rfc6121.erl:339-354 | src/rfc6121.erl:359-374 \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 \u0060src/rfc6121.erl:339\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":"src/rfc6121.erl"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d77b02593727d51d1423eb5ef76a03b8e664ec35c9f96a7fb577fe742348ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/xep0313.erl:1300-1315 | src/xep0313.erl:1332-1347 | src/xep0313.erl:1364-1379 | src/xep0313.erl:1396-1411 | src/xep0313.erl:1428-1443 \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 \u0060src/xep0313.erl:1300\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0313.erl:1425\u0060 calls \u0060decode_rsm_set\u0060 and \u0060src/xep0313.erl:1299\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"862344e367036a25df908d0ee5c10c0b91e815c7520e4790268bcb14a84df90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0045.erl:729-744 | src/xep0045.erl:747-761 \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 \u0060src/xep0045.erl:729\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":"src/xep0045.erl"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70401ca4f53af0e5727e9f6d055166f38ab7e5baf561e3ed1459086a8201ee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xepXXXX.erl:200-214 | src/xepXXXX.erl:230-245 \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 \u0060src/xepXXXX.erl: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. 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":"src/xepXXXX.erl"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be9920450e64c9120d003089b8dcb4c0aa9cbb3f8bc9c3bebd8f79d45ce8d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0115.erl:51-66 | src/xep0115.erl:69-84 \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 \u0060src/xep0115.erl: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":"src/xep0115.erl"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a2b618a003bbd770c1db2289b74341652a5f31d5192828c9a899853d81a3bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0050.erl:220-235 | src/xep0050.erl:240-255 \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 \u0060src/xep0050.erl:220\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":"src/xep0050.erl"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"586d8781e57ea8321d151abb93c62a6d5aa533c20d0eb37a611d54c8facbcb36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0033.erl:199-214 | src/xep0033.erl:219-234 \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 \u0060src/xep0033.erl:199\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":"src/xep0033.erl"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"920734f450a76b02c072fef8cca9c1be0ed684418f654d10b6a8f8356f026b9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/xep0513.erl:225-240 | src/xep0513.erl:249-264 | src/xep0513.erl:273-288 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0513.erl:225\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":"src/xep0513.erl"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fd6f15dd8e3034a2d0c7f5b20ace9a0fedc753e18f17f3715a4b3cc291be39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/rfc6120.erl:6292-6307 | src/rfc6120.erl:6312-6327 \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 \u0060src/rfc6120.erl:6292\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":"src/rfc6120.erl"},"region":{"startLine":6292}}}],"partialFingerprints":{"codehealthFindingId/v1":"daff9153879abe59ea4bfd1c9404e69bd1200fc55f9b8adaedaee3d3cd502245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0060.erl:5161-5176 | src/xep0060.erl:5179-5193 \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 \u0060src/xep0060.erl:5161\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":"src/xep0060.erl"},"region":{"startLine":5161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17fe06841be44f243c98860b9dfbd47f00febe8d17292019a76c6a401b64735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/xep0059.erl:136-151 | src/xep0059.erl:168-183 | src/xep0059.erl:200-215 | src/xep0059.erl:232-247 | src/xep0059.erl:264-279 \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 \u0060src/xep0059.erl: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0059.erl:261\u0060 calls \u0060decode_rsm_index\u0060 and \u0060src/xep0059.erl:135\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0059.erl"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39e7e53ba94ea13d4836751a33bdf092295066a1441f05068a684c122ae4770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0264.erl:54-69 | src/xep0264.erl:72-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 \u0060src/xep0264.erl:54\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":"src/xep0264.erl"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29749830a4c42622e5d67eda7e38c8c9d1b0c3c1c364a057246dc1ea5be94cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0045.erl:1859-1873 | src/xep0045.erl:1876-1891 \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 \u0060src/xep0045.erl:1876\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":"src/xep0045.erl"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"3188689bedeae33b0fbf9704579224ca7afb966fc85f5461e4c3a9133c58ad05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0313.erl:552-567 | src/xep0313.erl:570-584 \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 \u0060src/xep0313.erl:552\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":"src/xep0313.erl"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9a20765ef72256857eb88c9b44a4bc87737dd717d45ea766d8dd0d834b5a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0045.erl:1027-1042 | src/xep0045.erl:1045-1059 \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 \u0060src/xep0045.erl:1027\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":"src/xep0045.erl"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d40798d7f166a702b85d3eeedbe135c5e52b75628f8d0040050151cbdad5f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/rfc6120.erl:6743-6758 | src/rfc6120.erl:6763-6777 \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 \u0060src/rfc6120.erl:6743\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":"src/rfc6120.erl"},"region":{"startLine":6743}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0899326ecbfdb2512626422b32b8cae967d41a79938c0dea1d84f12c3cf0e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/xep0060.erl:1548-1563 | src/xep0060.erl:1591-1606 | src/xep0060.erl:1634-1649 \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 \u0060src/xep0060.erl:1548\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":"src/xep0060.erl"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de7b9df997b8b635f2489a0675df7e0147875d4098990f36c9f42badcb9be16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/xepXXXX.erl:201-215 | src/xepXXXX.erl:231-246 | src/xepXXXX.erl:262-276 \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 \u0060src/xepXXXX.erl:201\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":"src/xepXXXX.erl"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aaf20e89db675e5355f580203f19940fa230c647476f649aed41374639d47d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0016.erl:559-574 | src/xep0016.erl:577-592 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0016.erl:559\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":"src/xep0016.erl"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a826d5e059a5f9b95e6d13b3cf7d484da11dd67f886a90148492370677a000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0166.erl:679-694 | src/xep0166.erl:697-711 \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 \u0060src/xep0166.erl:679\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":"src/xep0166.erl"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"6392e5daec18744aea353c26ef8eab4113f7e09d5fb6bfc1ed5f521d7c0dc141"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/xep0060.erl:4570-4585 | src/xep0060.erl:4625-4640 | src/xep0060.erl:4679-4694 \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 \u0060src/xep0060.erl:4570\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":"src/xep0060.erl"},"region":{"startLine":4570}}}],"partialFingerprints":{"codehealthFindingId/v1":"91eba327c4fff67f199f9248b43d3dfab453bebc022674151c3dca7fa14b764f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0030.erl:513-528 | src/xep0030.erl:531-546 \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 \u0060src/xep0030.erl:513\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":"src/xep0030.erl"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"45522abffb8615f7b102fa6f83539514e11d942990f9a979c71b0194574f3009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): src/xep0234.erl:583-598 | src/xep0234.erl:619-634 | src/xep0234.erl:655-670 | src/xep0234.erl:690-705 | src/xep0234.erl:725-740 | src/xep0234.erl:760-775 | src/xep0234.erl:795-810 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0234.erl:583\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0234.erl:792\u0060 calls \u0060decode_jingle_ft_size\u0060 and \u0060src/xep0234.erl:582\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8eaac5653218f175a67b74557d167ac1ab05fe58cfb31e256f97b579221c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/xep0045.erl:1430-1445 | src/xep0045.erl:1473-1488 | src/xep0045.erl:1528-1543 \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 \u0060src/xep0045.erl:1430\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":"src/xep0045.erl"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0799be4399ad73fa4c9b46357418d382e62b362a7de7f729ef15b6982dbe1fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 7): src/xep0054.erl:5657-5682 | src/xep0054.erl:5691-5716 | src/xep0054.erl:5725-5750 | src/xep0054.erl:5759-5784 | src/xep0054.erl:5793-5818 | src/xep0054.erl:5827-5852 | src/xep0054.erl:5861-5886 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5657\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5683\u0060 calls \u0060decode_vcard_WORK\u0060 and \u0060src/xep0054.erl:5751\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5657}}}],"partialFingerprints":{"codehealthFindingId/v1":"36927064264ce5c3f4540d08d63ea12d53b85836fb2fee3b8a4563936a9a4d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0363.erl:840-855 | src/xep0363.erl:858-872 \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 \u0060src/xep0363.erl:840\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":"src/xep0363.erl"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcbb46119478cdb099772c700cf5274f1f2102240f3d32515e3c6ddbe1b636e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/xep0060.erl:4996-5011 | src/xep0060.erl:5014-5029 \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 \u0060src/xep0060.erl:4996\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":"src/xep0060.erl"},"region":{"startLine":4996}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaa962c342b5871b8062c706438d5c8a27a72ad6cb8748755e57a5f0ad7192c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0045.erl:2732-2746 | src/xep0045.erl:2749-2764 \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 \u0060src/xep0045.erl:2749\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":"src/xep0045.erl"},"region":{"startLine":2732}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f8fd20340301da8970b3f32aa617a27f771aa4f1b48d50b546eb5d9b3c3469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): src/xep0055.erl:117-132 | src/xep0055.erl:149-164 | src/xep0055.erl:181-196 | src/xep0055.erl:213-228 | src/xep0055.erl:245-260 \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 \u0060src/xep0055.erl:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0055.erl:242\u0060 calls \u0060decode_search_email\u0060 and \u0060src/xep0055.erl:116\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29595b9f80e5e94faf045fb22da3681091d2de69e669dab06062e696da02bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0166.erl:446-461 | src/xep0166.erl:464-478 \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 \u0060src/xep0166.erl:446\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":"src/xep0166.erl"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"c197e91fb8eea94ce22f83f59b405fcca3cdca548f8ec6dcdac7eaaebba4f6a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/xepXXXX.erl:202-216 | src/xepXXXX.erl:232-247 | src/xepXXXX.erl:263-277 | src/xepXXXX.erl:292-306 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xepXXXX.erl:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xepXXXX.erl:289\u0060 calls \u0060decode_reporter\u0060 and \u0060src/xepXXXX.erl:201\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xepXXXX.erl"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5912e21fb8d45efc48c6f66d33cae02215ccd1fa37e01321c280f1250a421a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0022.erl:82-96 | src/xep0022.erl:110-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 \u0060src/xep0022.erl:82\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":"src/xep0022.erl"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"38536214a9a4d0c3855b4ca8c636e6e07d675f38b6b798ce547d30c407886fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0004.erl:175-189 | src/xep0004.erl:203-217 \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 \u0060src/xep0004.erl:175\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":"src/xep0004.erl"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4e9953ffa387cc4eacdbb39a33a5b7db59420a13f9fcc01376b27f3120f462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 22): src/xep0198.erl:178-191 | src/xep0198.erl:200-213 | src/xep0198.erl:222-236 | src/xep0198.erl:245-258 | src/xep0198.erl:267-280 | src/xep0198.erl:289-303 | src/xep0198.erl:312-325 | src/xep0198.erl:334-347 | src/xep0198.erl:356-369 | src/xep0198.erl:378-391 | src/xep0198.erl:400-413 | src/xep0198.erl:422-436 | src/xep0198.erl:445-459 | src/xep0198.erl:468-481 | src/xep0198.erl:490-504 | src/xep0198.erl:513-527 | src/xep0198.erl:536-550 | src/xep0198.erl:559-573 | src/xep0198.erl:582-596 | src/xep0198.erl:605-619 | src/xep0198.erl:628-642 | src/xep0198.erl:651-665 \u2014 all 22 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":"src/xep0198.erl"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbd0bee6c91a4cc713a5c08f2337cffd9e52279c122f1018024ff1bb88e12eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/xep0054.erl:4495-4509 | src/xep0054.erl:4525-4539 | src/xep0054.erl:4555-4569 | src/xep0054.erl:4585-4599 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:4495\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":"src/xep0054.erl"},"region":{"startLine":4495}}}],"partialFingerprints":{"codehealthFindingId/v1":"d979102b1b5d32e3081c1efae8d1e273b8697ac264be2344b04c49fc84dccbbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 16): src/xep0166.erl:868-879 | src/xep0166.erl:892-903 | src/xep0166.erl:916-929 | src/xep0166.erl:941-952 | src/xep0166.erl:965-976 | src/xep0166.erl:989-1002 | src/xep0166.erl:1014-1027 | src/xep0166.erl:1039-1051 | src/xep0166.erl:1063-1074 | src/xep0166.erl:1087-1101 | src/xep0166.erl:1113-1125 | src/xep0166.erl:1137-1150 | src/xep0166.erl:1162-1173 | src/xep0166.erl:1186-1197 | src/xep0166.erl:1210-1224 | src/xep0166.erl:1236-1249 \u2014 all 16 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0166.erl:868\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":"src/xep0166.erl"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e785b76c01c8a0cd35a58ad439909f15fb467735516e84798312e2f04ca0d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/rfc6120.erl:1132-1146 | src/rfc6120.erl:1158-1172 | src/rfc6120.erl:1184-1198 | src/rfc6120.erl:1210-1224 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/rfc6120.erl:1132\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":"src/rfc6120.erl"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9cbe8fd27c6e63f89ef2b34f312fa7d0a3974b86740386f1c2a25ebdbf61ee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0220.erl:226-240 | src/xep0220.erl:242-255 \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 \u0060src/xep0220.erl:226\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":"src/xep0220.erl"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"98833b33cba481224bfca81e847bf5abf1e5dbafe6f4db9c273827fb075ea06e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): src/xep0313.erl:1301-1315 | src/xep0313.erl:1333-1347 | src/xep0313.erl:1365-1379 | src/xep0313.erl:1397-1411 | src/xep0313.erl:1429-1443 | src/xep0313.erl:1461-1475 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0313.erl:1301\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0313.erl:1458\u0060 calls \u0060decode_mam_flip_page\u0060 and \u0060src/xep0313.erl:1300\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0313.erl"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb0496aa14e67d8d56d5523d2785143cc9990771e064d75acd8443d4d2cffde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/xep0060.erl:4571-4585 | src/xep0060.erl:4626-4640 | src/xep0060.erl:4680-4694 | src/xep0060.erl:4734-4748 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0060.erl:4571\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":"src/xep0060.erl"},"region":{"startLine":4571}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eef597cb38af26390452f4e93cbce3ca913c571c07b6b93cf42af5e9fa5b27e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0138.erl:356-370 | src/xep0138.erl:377-391 \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 \u0060src/xep0138.erl:356\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":"src/xep0138.erl"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee667b9982d9e82654496d2363bafec50e738e51cb0ceeb78c009fe3e5c591f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0004.erl:641-655 | src/xep0004.erl:669-683 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0004.erl:641\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":"src/xep0004.erl"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9d1c7bb5cd1b262ecc2a8427fdfe35262e1d4cfb85c0197d8de1f2c42ebfae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 6): src/xep0059.erl:137-161 | src/xep0059.erl:169-193 | src/xep0059.erl:201-225 | src/xep0059.erl:233-257 | src/xep0059.erl:265-289 | src/xep0059.erl:297-321 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0059.erl:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0059.erl:162\u0060 calls \u0060decode_rsm_before\u0060 and \u0060src/xep0059.erl:226\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0059.erl"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3945fc8c06187ddbe6a1f1b913b5b9508ed031fc9905ea96238468e98cf96e00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/xep0060.erl:1549-1563 | src/xep0060.erl:1592-1606 | src/xep0060.erl:1635-1649 | src/xep0060.erl:1690-1704 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0060.erl:1549\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":"src/xep0060.erl"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"601c5b76d65bdb2a1f659a149636e18932d3c4fbf4cd2a20e199827872b56d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0054.erl:6910-6924 | src/xep0054.erl:6938-6952 \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 \u0060src/xep0054.erl:6910\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":"src/xep0054.erl"},"region":{"startLine":6910}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fb74de5a5a6eb1b3d05c044c14d7062ff1c7c6b365535561be94ac0ec3cd46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): src/xep0055.erl:118-132 | src/xep0055.erl:150-164 | src/xep0055.erl:182-196 | src/xep0055.erl:214-228 | src/xep0055.erl:246-260 | src/xep0055.erl:279-293 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0055.erl:118\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":"src/xep0055.erl"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1108e6dc1b3e57fbcfe0100fcc8f508b5a6055a0fa20248ed2d4426c9a92281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/xep0260.erl:180-194 | src/xep0260.erl:207-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0260.erl:180\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":"src/xep0260.erl"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"835d8722bcd73d748d60ad49bb4c04be2aac305aff418de6d599c8d5264df95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/xep0045.erl:1431-1445 | src/xep0045.erl:1474-1488 | src/xep0045.erl:1529-1543 | src/xep0045.erl:1561-1575 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0045.erl:1431\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":"src/xep0045.erl"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2851f5190e7b0aa977bc0cb5cfd835747af6d91d832a478a05ffd7ed47443088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 12): src/rfc6120.erl:3053-3066 | src/rfc6120.erl:3075-3089 | src/rfc6120.erl:3098-3112 | src/rfc6120.erl:3121-3135 | src/rfc6120.erl:3144-3158 | src/rfc6120.erl:3167-3181 | src/rfc6120.erl:3190-3204 | src/rfc6120.erl:3213-3227 | src/rfc6120.erl:3236-3250 | src/rfc6120.erl:3259-3272 | src/rfc6120.erl:3281-3294 | src/rfc6120.erl:3303-3317 \u2014 all 12 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":"src/rfc6120.erl"},"region":{"startLine":3053}}}],"partialFingerprints":{"codehealthFindingId/v1":"561dc1dd72151e0811c222ac2612a483eeead0e4600268eab962eabd9c1a26bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 17): src/xep0166.erl:853-865 | src/xep0166.erl:878-889 | src/xep0166.erl:902-913 | src/xep0166.erl:926-938 | src/xep0166.erl:951-962 | src/xep0166.erl:975-986 | src/xep0166.erl:999-1011 | src/xep0166.erl:1024-1036 | src/xep0166.erl:1049-1060 | src/xep0166.erl:1073-1084 | src/xep0166.erl:1097-1110 | src/xep0166.erl:1123-1134 | src/xep0166.erl:1147-1159 | src/xep0166.erl:1172-1183 | src/xep0166.erl:1196-1207 | src/xep0166.erl:1220-1233 | src/xep0166.erl:1246-1258 \u2014 all 17 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 \u0060src/xep0166.erl:853\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":"src/xep0166.erl"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf355fdf3648a498f7ddcc785cac18e205c057c425b4a0863216dae7ad42a22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0065.erl:131-144 | src/xep0065.erl:156-168 \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 \u0060src/xep0065.erl:131\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":"src/xep0065.erl"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e67da42d3353531835fc909942bc8f5860793ae899d97c9f89e8974ba8293a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/xep0022.erl:83-96 | src/xep0022.erl:111-124 | src/xep0022.erl:139-152 \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 \u0060src/xep0022.erl: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":"src/xep0022.erl"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd09f3a8b861db255049de5de9ae8bab35ef3a2f5d108601fa52ff9fda3097a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0050.erl:535-547 | src/xep0050.erl:559-572 \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 \u0060src/xep0050.erl:535\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":"src/xep0050.erl"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99f33f68f3bf8435df1c0c11160d0c8c45f27385c0c873d327992fc2cc966c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0016.erl:458-471 | src/xep0016.erl:484-497 \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 \u0060src/xep0016.erl:458\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":"src/xep0016.erl"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67c7b29fd304fea6cd1a199790ea04473f92955af60d7f0fb29c3c787929141"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0402.erl:112-125 | src/xep0402.erl:137-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0402.erl:112\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":"src/xep0402.erl"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"157756f5aeafcfe4d8dc77ee8ab3a541d13eeb2453ef9dcf194ffd5fb0fc4a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0377.erl:108-121 | src/xep0377.erl:134-147 \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 \u0060src/xep0377.erl:108\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":"src/xep0377.erl"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"47439ca16ef853b4b2aa7e6b114046df7f2da0c5df49b3a2e589fda29d7c994b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/xep0004.erl:642-655 | src/xep0004.erl:670-683 | src/xep0004.erl:699-712 \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 \u0060src/xep0004.erl:642\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":"src/xep0004.erl"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6a33ce09bf9a79ae3b245b888a4ff3b987e3bc785f92b6cfef678bf8b12e5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/xep0060.erl:4572-4585 | src/xep0060.erl:4627-4640 | src/xep0060.erl:4681-4694 | src/xep0060.erl:4735-4748 | src/xep0060.erl:4777-4790 \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 \u0060src/xep0060.erl:4572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0060.erl:4774\u0060 calls \u0060decode_pubsub_create\u0060 and \u0060src/xep0060.erl:4571\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":4572}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35171ab88b18589bfeb35061619dfa62a6bb2d18ecd5872da2ec3c5c3ab9830"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/xep0363.erl:767-780 | src/xep0363.erl:787-800 | src/xep0363.erl:807-820 \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 \u0060src/xep0363.erl:767\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":"src/xep0363.erl"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"5181eea2168d6a8090b5a145c644f8fdc9639e26b44f211838804bf283efc530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/xep0004.erl:176-189 | src/xep0004.erl:204-217 | src/xep0004.erl:232-245 \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 \u0060src/xep0004.erl:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0004.erl:229\u0060 calls \u0060decode_xdata_reported\u0060 and \u0060src/xep0004.erl:175\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8895d8d0886c3dd65df88b04be122ebf07256499688fa68ae168ea419c0984d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 22): src/rfc6120.erl:4187-4199 | src/rfc6120.erl:4211-4224 | src/rfc6120.erl:4236-4248 | src/rfc6120.erl:4260-4272 | src/rfc6120.erl:4284-4297 | src/rfc6120.erl:4309-4321 | src/rfc6120.erl:4333-4345 | src/rfc6120.erl:4357-4369 | src/rfc6120.erl:4381-4393 | src/rfc6120.erl:4405-4417 | src/rfc6120.erl:4429-4442 | src/rfc6120.erl:4454-4467 | src/rfc6120.erl:4479-4492 | src/rfc6120.erl:4504-4516 | src/rfc6120.erl:4528-4541 | src/rfc6120.erl:4553-4566 | src/rfc6120.erl:4578-4591 | src/rfc6120.erl:4603-4616 | src/rfc6120.erl:4628-4641 | src/rfc6120.erl:4653-4666 | src/rfc6120.erl:4678-4691 | src/rfc6120.erl:4703-4716 \u2014 all 22 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 \u0060src/rfc6120.erl:4187\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":"src/rfc6120.erl"},"region":{"startLine":4187}}}],"partialFingerprints":{"codehealthFindingId/v1":"79eb11a248aebdd463293c51df275559fe67857a49a3c319dff153ff6d16dca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): src/xep0045.erl:1433-1446 | src/xep0045.erl:1476-1489 | src/xep0045.erl:1531-1544 | src/xep0045.erl:1563-1575 | src/xep0045.erl:1594-1607 \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 \u0060src/xep0045.erl:1433\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":"src/xep0045.erl"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7eba72a19a2d804dd066eb495ea45e05bb03ceba46aab156cecad885374811"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): src/xep0388.erl:873-886 | src/xep0388.erl:898-911 | src/xep0388.erl:923-936 | src/xep0388.erl:948-961 | src/xep0388.erl:973-986 | src/xep0388.erl:998-1011 | src/xep0388.erl:1023-1036 | src/xep0388.erl:1048-1061 | src/xep0388.erl:1073-1086 | src/xep0388.erl:1098-1110 | src/xep0388.erl:1122-1135 \u2014 all 11 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 \u0060src/xep0388.erl:873\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":"src/xep0388.erl"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8363b41a318486727f13ff4465567c46f4a7ff818cdb9e528e3081bbf2134ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0055.erl:261-274 | src/xep0055.erl:294-307 \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 \u0060src/xep0055.erl:261\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":"src/xep0055.erl"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdeae4211c67f28c6d3939128471295505c0eb0130dbbb802f7d1e59b12e3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/xep0054.erl:6912-6925 | src/xep0054.erl:6940-6953 | src/xep0054.erl:6968-6981 | src/xep0054.erl:6996-7009 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:6912\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":"src/xep0054.erl"},"region":{"startLine":6912}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8947fa4698f3c1e035920e6d23298e39b801a2c126af9a7d651f9fcb65eb6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/xep0260.erl:181-194 | src/xep0260.erl:208-221 | src/xep0260.erl:235-248 \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 \u0060src/xep0260.erl:181\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0260.erl:232\u0060 calls \u0060decode_jingle_s5b_activated\u0060 and \u0060src/xep0260.erl:180\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0260.erl"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d6502b61e6a8162d5e0e35cd926c301d2987dd2b6dba5aa4061957183db42a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/xep0060.erl:1550-1563 | src/xep0060.erl:1593-1606 | src/xep0060.erl:1636-1649 | src/xep0060.erl:1691-1704 | src/xep0060.erl:1746-1759 \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 \u0060src/xep0060.erl:1550\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0060.erl:1743\u0060 calls \u0060decode_pubsub_purge\u0060 and \u0060src/xep0060.erl:1549\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b76bf6ff5c2d6d6bd7aa338bd22662b5425ab963ecea6ddf42494e60394c417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): src/xep0054.erl:4496-4509 | src/xep0054.erl:4526-4539 | src/xep0054.erl:4556-4569 | src/xep0054.erl:4586-4599 | src/xep0054.erl:4616-4629 \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 \u0060src/xep0054.erl:4496\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0054.erl:4613\u0060 calls \u0060decode_vcard_X400\u0060 and \u0060src/xep0054.erl:4495\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4496}}}],"partialFingerprints":{"codehealthFindingId/v1":"503df2b5b814d4efc715ef319b4c3e1866dbad9e98e870bf165c030e11aca67b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/xep0260.erl:184-197 | src/xep0260.erl:211-224 | src/xep0260.erl:238-251 | src/xep0260.erl:265-278 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0260.erl:184\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":"src/xep0260.erl"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf440c673e1b6a746287d990b8a0a5822b50bed49e0905975bb4c793a01d0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0078.erl:116-129 | src/xep0078.erl:142-155 \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 \u0060src/xep0078.erl: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":"src/xep0078.erl"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7baf55918b4b5aed41d39967702d60dde9e8883bd08935a592870a8c3f071d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0313.erl:1444-1457 | src/xep0313.erl:1476-1489 \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 \u0060src/xep0313.erl:1444\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":"src/xep0313.erl"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52de918ddcbd3509d5f8a4eb2b1138d43fc7847565d9127d4c472a21e58a5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0055.erl:442-455 | src/xep0055.erl:468-481 \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 \u0060src/xep0055.erl:442\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":"src/xep0055.erl"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cb1d35269e69e7412730076b11619c17c56083c7f8d07bcbd5cf2bc06e8eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/xep0004.erl:177-190 | src/xep0004.erl:205-218 | src/xep0004.erl:233-246 | src/xep0004.erl:262-275 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0004.erl:177\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":"src/xep0004.erl"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3de92842a3463d3eff71b66bef6c89b7ddced269ec5174a20fc647bbf81d382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0045.erl:1576-1588 | src/xep0045.erl:1607-1620 \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 \u0060src/xep0045.erl:1576\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":"src/xep0045.erl"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f87b148d5fce3eaec8de4592f652f6b9bbb6c673ae29b146b7c9088c5685f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/xep0022.erl:84-97 | src/xep0022.erl:112-125 | src/xep0022.erl:140-153 | src/xep0022.erl:168-181 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0022.erl: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. 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":"src/xep0022.erl"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9908eb7403947e555db77d208af35e1d82cd3d7aa9315b53cc7646214715aa97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/xep0060.erl:1705-1718 | src/xep0060.erl:1760-1773 \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 \u0060src/xep0060.erl:1705\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":"src/xep0060.erl"},"region":{"startLine":1705}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea7adb6571cd48e0c855d854e03b612fd7f3fbd6a92c98e87c45e95fc893daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0369.erl:240-252 | src/xep0369.erl:282-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 \u0060src/xep0369.erl:240\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":"src/xep0369.erl"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc5e55a824a5113b6cf3347630fd860438da117c05fa332361e06c06eed5299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0417.erl:427-439 | src/xep0417.erl:451-463 \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 \u0060src/xep0417.erl:427\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":"src/xep0417.erl"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaa9182cf28c89ffac24782fbfaa9cda5df952b350953753a586999b8fcac5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0013.erl:99-111 | src/xep0013.erl:123-135 \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 \u0060src/xep0013.erl:99\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":"src/xep0013.erl"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7dba719815751c7606d466eda7ccd9e488e7d70a4ea43eb5837d95781e544d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0092.erl:75-87 | src/xep0092.erl:99-111 \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 \u0060src/xep0092.erl:75\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":"src/xep0092.erl"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5291dd77a8c9c5a65a1ab98235da8edad683a801c2ecc9012e73aebc64e2551d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0045.erl:1774-1786 | src/xep0045.erl:1798-1810 \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":"src/xep0045.erl"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d2ef7e56c2daefe028ee970ffefdaf0cc21b4eb2a00b1c5e495b59e69525de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/rfc6120.erl:6133-6145 | src/rfc6120.erl:6179-6191 \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 \u0060src/rfc6120.erl:6133\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":"src/rfc6120.erl"},"region":{"startLine":6133}}}],"partialFingerprints":{"codehealthFindingId/v1":"da08eed51d44db2b2bb974d9c1ce16c97c426a951dc0cc8d02e50e7999444a7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0054.erl:3873-3885 | src/xep0054.erl:3897-3909 \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 \u0060src/xep0054.erl:3873\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":"src/xep0054.erl"},"region":{"startLine":3873}}}],"partialFingerprints":{"codehealthFindingId/v1":"0678be16ab35a6e46c875ab99a4b9f4e56b45c7347817ba6d0731c3be3b51334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/xep0016.erl:459-471 | src/xep0016.erl:485-497 | src/xep0016.erl:511-523 \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 \u0060src/xep0016.erl:459\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":"src/xep0016.erl"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2911957be2f6da27ba0ab0dadb0a8168b9540e5db1723dc4689220308fcc66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0045.erl:1236-1248 | src/xep0045.erl:1260-1272 \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 \u0060src/xep0045.erl:1236\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":"src/xep0045.erl"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46ac3dbabbf3e702cf2297c7ec2b7afa447b969f8b60ed5cd662101b80f928e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0045.erl:644-656 | src/xep0045.erl:668-680 \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":"src/xep0045.erl"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ee986c218ce1d16de0388d92651a7930cee153592dd8789751f87efd6ea54e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 23): src/rfc6120.erl:4168-4179 | src/rfc6120.erl:4192-4203 | src/rfc6120.erl:4216-4228 | src/rfc6120.erl:4241-4252 | src/rfc6120.erl:4265-4276 | src/rfc6120.erl:4289-4301 | src/rfc6120.erl:4314-4325 | src/rfc6120.erl:4338-4349 | src/rfc6120.erl:4362-4373 | src/rfc6120.erl:4386-4397 | src/rfc6120.erl:4410-4421 | src/rfc6120.erl:4434-4446 | src/rfc6120.erl:4459-4471 | src/rfc6120.erl:4484-4496 | src/rfc6120.erl:4509-4520 | src/rfc6120.erl:4533-4545 | src/rfc6120.erl:4558-4570 | src/rfc6120.erl:4583-4595 | src/rfc6120.erl:4608-4620 | src/rfc6120.erl:4633-4645 | src/rfc6120.erl:4658-4670 | src/rfc6120.erl:4683-4695 | src/rfc6120.erl:4708-4720 \u2014 all 23 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 \u0060src/rfc6120.erl:4168\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":"src/rfc6120.erl"},"region":{"startLine":4168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8693bcd6265a3d818e170e3fe992e3231fbc2ea724554f3838fce08fc567023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/rfc6120.erl:5515-5527 | src/rfc6120.erl:5564-5576 \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 \u0060src/rfc6120.erl:5515\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":"src/rfc6120.erl"},"region":{"startLine":5515}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84b1ee3b3f49c1060d1b2e525857fa85be012fcf2e5b6ce053f6259c1dabcff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/xep0055.erl:447-459 | src/xep0055.erl:473-485 | src/xep0055.erl:499-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 \u0060src/xep0055.erl:447\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":"src/xep0055.erl"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"99459f232ee17f1e24b643779e0477f335ed3d081cc72974bca5633e2ea905c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0050.erl:152-164 | src/xep0050.erl:176-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0050.erl:152\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":"src/xep0050.erl"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b326a5258d66c2dfea1b4a716cf98649b77929169cfa631ac7d1aec771b91f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0363.erl:1243-1255 | src/xep0363.erl:1278-1290 \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 \u0060src/xep0363.erl:1243\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":"src/xep0363.erl"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a651bbd60406d1e0c9c8aadb57800ab857b152d0d933f4fadd20eb6723f3d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0045.erl:941-953 | src/xep0045.erl:965-977 \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 \u0060src/xep0045.erl:941\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":"src/xep0045.erl"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f11fcc7fb90a84e5be6473ca117f13e9660915d1aaa7c4d85ebfe0e771ba42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0016.erl:148-160 | src/xep0016.erl:172-184 \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 \u0060src/xep0016.erl:148\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":"src/xep0016.erl"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"481668e3fd53bbab075ce4ba9a2a4ebaeaa6c69f084fce92719a763edd7e50b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): src/muc_roomconfig.erl:790-801 | src/muc_roomconfig.erl:1376-1388 | src/muc_roomconfig.erl:1486-1498 | src/muc_roominfo.erl:454-466 | src/pubsub_meta_data.erl:289-300 | src/pubsub_meta_data.erl:481-492 | src/pubsub_meta_data.erl:508-519 | src/pubsub_node_config.erl:545-557 | src/pubsub_node_config.erl:638-649 | src/pubsub_publish_options.erl:547-559 | src/pubsub_publish_options.erl:640-651 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:790\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":"src/muc_roomconfig.erl"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9f28f664197624704da641448a217b5ca5e9a32d30a2d6ab35010b555a6f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/xep0078.erl:121-133 | src/xep0078.erl:147-159 | src/xep0078.erl:173-185 \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 \u0060src/xep0078.erl: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0078.erl"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7b1c1e009c6d148f7501e8609959febfc58506c6b62f200c19b7380451db74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0054.erl:4600-4612 | src/xep0054.erl:4630-4642 \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 \u0060src/xep0054.erl:4600\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":"src/xep0054.erl"},"region":{"startLine":4600}}}],"partialFingerprints":{"codehealthFindingId/v1":"6633d5fcaaf18d6846dda865c715cc97c9780438dd1653e516fbf7cf68b20cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0054.erl:4236-4248 | src/xep0054.erl:4260-4272 \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 \u0060src/xep0054.erl:4236\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":"src/xep0054.erl"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4721152b2c2374982df948816d8c116370c0945d962c4abc61f934a6084fdc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0054.erl:4102-4114 | src/xep0054.erl:4126-4138 \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 \u0060src/xep0054.erl:4102\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":"src/xep0054.erl"},"region":{"startLine":4102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb199a2f9b09e24ea790140b4e40bbcea3558323b735f88bef3176dc318e0ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 12): src/xep0388.erl:851-862 | src/xep0388.erl:875-887 | src/xep0388.erl:900-912 | src/xep0388.erl:925-937 | src/xep0388.erl:950-962 | src/xep0388.erl:975-987 | src/xep0388.erl:1000-1012 | src/xep0388.erl:1025-1037 | src/xep0388.erl:1050-1062 | src/xep0388.erl:1075-1087 | src/xep0388.erl:1100-1111 | src/xep0388.erl:1124-1136 \u2014 all 12 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 \u0060src/xep0388.erl:851\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":"src/xep0388.erl"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b881ada72eeeae08f1910dc43c79b59577726e8ae034912ebeb55576fb7fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0388.erl:628-640 | src/xep0388.erl:654-666 \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 \u0060src/xep0388.erl:628\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":"src/xep0388.erl"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"f877053db19271b9f150951e596529d55dd174c0e23f5b71c0a673d25a4bff47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/xep0030.erl:332-344 | src/xep0030.erl:357-369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0030.erl"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5eac87aa8bd310e68dc62433468af11ac86407b8d8d14ee9c4e4c7319cd0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/xep0060.erl:1650-1662 | src/xep0060.erl:1705-1717 | src/xep0060.erl:1760-1772 \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 \u0060src/xep0060.erl:1650\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":"src/xep0060.erl"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b546547e6dfa4134571e0d665ad8db5b5ca783b4ac1ca8d2e5b3629aea30d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/xep0313.erl:1412-1424 | src/xep0313.erl:1444-1456 | src/xep0313.erl:1476-1488 \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 \u0060src/xep0313.erl:1412\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":"src/xep0313.erl"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85bb6118a2da488f2f5c5b825ad18cf1ea0c6a38c5906548c194d5429e43735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): src/xep0234.erl:671-683 | src/xep0234.erl:706-718 | src/xep0234.erl:741-753 | src/xep0234.erl:776-788 | src/xep0234.erl:811-823 \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 \u0060src/xep0234.erl:671\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0234.erl:684\u0060 calls \u0060decode_hash_used\u0060 and \u0060src/xep0234.erl:754\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0234.erl"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"7471a2429758d4295beb44347d6497ecaf54d6b07970464020a518f175d6256d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/xep0377.erl:109-121 | src/xep0377.erl:135-147 | src/xep0377.erl:161-173 \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 \u0060src/xep0377.erl: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xep0377.erl:158\u0060 calls \u0060decode_third_party\u0060 and \u0060src/xep0377.erl:108\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0377.erl"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4093af9024dd64e0d82699b83ba87234da2a543abab83be476ee09336ba10ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/muc_roomconfig.erl:811-821 | src/muc_roominfo.erl:368-379 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:811\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":"src/muc_roomconfig.erl"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"778e7849c96358025c53aefe4d2860cf54c6bf1398753386c762893fafea2077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/xep0054.erl:4570-4581 | src/xep0054.erl:4600-4611 | src/xep0054.erl:4630-4641 \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 \u0060src/xep0054.erl:4570\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":"src/xep0054.erl"},"region":{"startLine":4570}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70b31269851e94235fe3b16d8ee1aa37be4dec815a8811dfe3e71102dd0011b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/muc_roominfo.erl:479-490 | src/pubsub_meta_data.erl:376-386 | src/pubsub_node_config.erl:773-783 | src/pubsub_publish_options.erl:775-785 \u2014 before extracting anything, compare \u0060src/muc_roominfo.erl\u0060 and \u0060src/pubsub_meta_data.erl\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roominfo.erl:479\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":"src/muc_roominfo.erl"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e91943119401dc8094e83db558f91259243a4aa155fdf9da5044c78b6180573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/xep0260.erl:163-174 | src/xep0260.erl:191-202 | src/xep0260.erl:218-229 | src/xep0260.erl:245-256 | src/xep0260.erl:272-283 \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 \u0060src/xep0260.erl: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":"src/xep0260.erl"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7506ca6626dc6b6c1d7bcf5cddfd038fba59078f28c6198d98ce34c944d3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/xep0060.erl:1607-1618 | src/xep0060.erl:1650-1661 | src/xep0060.erl:1705-1716 | src/xep0060.erl:1760-1771 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0060.erl:1607\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0060.erl:1619\u0060 calls \u0060decode_pubsub_default\u0060 and \u0060src/xep0060.erl:1717\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"5919766f381e3348f6f12dd423b802b765e6f65cad13e2223c190f1b7df34a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/xep0388.erl:611-622 | src/xep0388.erl:638-648 | src/xep0388.erl:664-674 \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 \u0060src/xep0388.erl:611\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0388.erl:623\u0060 calls \u0060decode_sasl2_additional_data\u0060 and \u0060src/xep0388.erl:675\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0388.erl"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ff9afa3e7806b2bec698944dc9668e5d9a57a343ea1a32f19228bb19c56197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/xep0054.erl:3626-3637 | src/xep0054.erl:3643-3654 \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 \u0060src/xep0054.erl:3626\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":"src/xep0054.erl"},"region":{"startLine":3626}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3311baeca909bc0d75a2ceaab17ffec0663f97832f1b812412e38d5811975cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 158): src/captcha_form.erl:284-293 | src/captcha_form.erl:314-323 | src/captcha_form.erl:344-353 | src/captcha_form.erl:374-382 | src/captcha_form.erl:403-411 | src/captcha_form.erl:432-441 | src/captcha_form.erl:462-471 | src/captcha_form.erl:492-499 | src/captcha_form.erl:520-529 | src/captcha_form.erl:550-558 | src/captcha_form.erl:579-588 | src/captcha_form.erl:609-618 | src/captcha_form.erl:639-648 | src/captcha_form.erl:669-678 | src/captcha_form.erl:701-712 | src/captcha_form.erl:736-747 | src/flex_offline.erl:221-230 | src/http_upload.erl:223-232 | src/mam_query.erl:247-255 | src/mam_query.erl:276-285 | src/mam_query.erl:306-314 | src/mam_query.erl:335-344 | src/mam_query.erl:365-374 | src/mam_query.erl:395-404 | src/muc_register.erl:250-259 | src/muc_register.erl:281-290 | src/muc_register.erl:328-337 | src/muc_register.erl:359-368 | src/muc_register.erl:392-403 | src/muc_register.erl:425-434 | src/muc_request.erl:240-249 | src/muc_request.erl:270-279 | src/muc_request.erl:300-309 | src/muc_request.erl:330-339 | src/muc_roomconfig.erl:439-449 | src/muc_roomconfig.erl:475-486 | src/muc_roomconfig.erl:512-523 | src/muc_roomconfig.erl:552-563 | src/muc_roomconfig.erl:589-600 | src/muc_roomconfig.erl:626-637 | src/muc_roomconfig.erl:663-674 | src/muc_roomconfig.erl:696-705 | src/muc_roomconfig.erl:732-743 | src/muc_roomconfig.erl:767-776 | src/muc_roomconfig.erl:825-834 | src/muc_roomconfig.erl:861-872 | src/muc_roomconfig.erl:901-912 | src/muc_roomconfig.erl:941-952 | src/muc_roomconfig.erl:995-1005 | src/muc_roomconfig.erl:1029-1040 | src/muc_roomconfig.erl:1066-1077 | src/muc_roomconfig.erl:1106-1117 | src/muc_roomconfig.erl:1146-1157 | src/muc_roomconfig.erl:1181-1190 | src/muc_roomconfig.erl:1217-1228 | src/muc_roomconfig.erl:1257-1268 | src/muc_roomconfig.erl:1317-1328 | src/muc_roomconfig.erl:1352-1361 | src/muc_roomconfig.erl:1418-1429 | src/muc_roomconfig.erl:1457-1468 | src/muc_roomconfig.erl:1528-1539 | src/muc_roomconfig.erl:1565-1576 | src/muc_roomconfig.erl:1598-1606 | src/muc_roomconfig.erl:1627-1636 | src/muc_roominfo.erl:309-319 | src/muc_roominfo.erl:346-357 | src/muc_roominfo.erl:386-397 | src/muc_roominfo.erl:425-436 | src/muc_roominfo.erl:496-507 | src/muc_roominfo.erl:531-540 | src/muc_roominfo.erl:564-575 | src/muc_roominfo.erl:599-608 | src/muc_roominfo.erl:634-645 | src/muc_roominfo.erl:671-682 | src/muc_roominfo.erl:708-719 | src/muc_roominfo.erl:745-756 | src/muc_roominfo.erl:784-795 | src/muc_roominfo.erl:819-829 | src/muc_roominfo.erl:856-867 | src/muc_roominfo.erl:909-918 | src/pubsub_get_pending.erl:229-238 | src/pubsub_meta_data.erl:326-337 | src/pubsub_meta_data.erl:359-368 | src/pubsub_meta_data.erl:390-399 | src/pubsub_meta_data.erl:421-430 | src/pubsub_meta_data.erl:454-465 | src/pubsub_meta_data.erl:543-552 | src/pubsub_meta_data.erl:573-582 | src/pubsub_meta_data.erl:603-612 | src/pubsub_meta_data.erl:636-646 | src/pubsub_meta_data.erl:670-681 | src/pubsub_node_config.erl:448-458 | src/pubsub_node_config.erl:480-489 | src/pubsub_node_config.erl:516-527 | src/pubsub_node_config.erl:599-609 | src/pubsub_node_config.erl:675-686 | src/pubsub_node_config.erl:713-724 | src/pubsub_node_config.erl:752-763 | src/pubsub_node_config.erl:787-796 | src/pubsub_node_config.erl:818-827 | src/pubsub_node_config.erl:849-858 | src/pubsub_node_config.erl:880-889 | src/pubsub_node_config.erl:911-920 | src/pubsub_node_config.erl:946-957 | src/pubsub_node_config.erl:981-990 | src/pubsub_node_config.erl:1016-1027 | src/pubsub_node_config.erl:1053-1064 | src/pubsub_node_config.erl:1088-1099 | src/pubsub_node_config.erl:1123-1134 | src/pubsub_node_config.erl:1156-1165 | src/pubsub_node_config.erl:1189-1200 | src/pubsub_node_config.erl:1227-1238 | src/pubsub_node_config.erl:1264-1275 | src/pubsub_node_config.erl:1299-1310 | src/pubsub_node_config.erl:1358-1369 | src/pubsub_node_config.erl:1393-1402 | src/pubsub_node_config.erl:1424-1433 | src/pubsub_node_config.erl:1455-1464 | src/pubsub_node_config.erl:1485-1494 | src/pubsub_publish_options.erl:450-460 | src/pubsub_publish_options.erl:482-491 | src/pubsub_publish_options.erl:518-529 | src/pubsub_publish_options.erl:601-611 | src/pubsub_publish_options.erl:677-688 | src/pubsub_publish_options.erl:715-726 | src/pubsub_publish_options.erl:754-765 | src/pubsub_publish_options.erl:789-798 | src/pubsub_publish_options.erl:820-829 | src/pubsub_publish_options.erl:851-860 | src/pubsub_publish_options.erl:882-891 | src/pubsub_publish_options.erl:913-922 | src/pubsub_publish_options.erl:948-959 | src/pubsub_publish_options.erl:983-992 | src/pubsub_publish_options.erl:1018-1029 | src/pubsub_publish_options.erl:1055-1066 | src/pubsub_publish_options.erl:1090-1101 | src/pubsub_publish_options.erl:1125-1136 | src/pubsub_publish_options.erl:1158-1167 | src/pubsub_publish_options.erl:1191-1202 | src/pubsub_publish_options.erl:1229-1240 | src/pubsub_publish_options.erl:1266-1277 | src/pubsub_publish_options.erl:1301-1312 | src/pubsub_publish_options.erl:1360-1371 | src/pubsub_publish_options.erl:1395-1404 | src/pubsub_publish_options.erl:1426-1435 | src/pubsub_publish_options.erl:1457-1466 | src/pubsub_publish_options.erl:1487-1496 | src/pubsub_subscribe_authorization.erl:246-255 | src/pubsub_subscribe_authorization.erl:276-285 | src/pubsub_subscribe_authorization.erl:308-319 | src/pubsub_subscribe_authorization.erl:341-350 | src/pubsub_subscribe_options.erl:280-289 | src/pubsub_subscribe_options.erl:311-320 | src/pubsub_subscribe_options.erl:345-356 | src/pubsub_subscribe_options.erl:380-389 | src/pubsub_subscribe_options.erl:410-420 | src/pubsub_subscribe_options.erl:463-474 | src/pubsub_subscribe_options.erl:502-513 \u2014 before extracting anything, compare \u0060src/captcha_form.erl\u0060 and \u0060src/flex_offline.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/captcha_form.erl:284\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":"src/captcha_form.erl"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"738bdcd87f379de3a7470d3b6912ffd8643438f3ad5e0731a7d738e7886947c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/xep0059.erl:216-227 | src/xep0059.erl:248-259 | src/xep0059.erl:280-291 | src/xep0059.erl:312-323 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0059.erl:216\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0059.erl:228\u0060 calls \u0060decode_rsm_first\u0060 and \u0060src/xep0059.erl:292\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0059.erl"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6666dc505bccc8e3b577bce25de1b1832fc6a26f58203eab55ddf17d704faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/muc_register.erl:235-245 | src/pubsub_subscribe_authorization.erl:231-241 \u2014 before extracting anything, compare \u0060src/muc_register.erl\u0060 and \u0060src/pubsub_subscribe_authorization.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_register.erl:235\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":"src/muc_register.erl"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ebbe42a214f6b988ed9bc29c5f46d5866bbed9572996f68395590dad4f3df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/muc_roomconfig.erl:1013-1023 | src/muc_roominfo.erl:804-814 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:1013\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":"src/muc_roomconfig.erl"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"239d2ee5ca51ca8559cb687ce2bb5e38dcf0da1bf8b3fb9db599a5e2bf304792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/muc_register.erl:377-387 | src/muc_request.erl:286-296 \u2014 before extracting anything, compare \u0060src/muc_register.erl\u0060 and \u0060src/muc_request.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_register.erl:377\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":"src/muc_register.erl"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d2cab4972ca70bf2fce40125c9bdada5235888cefe84257bb10d0177117b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/rfc6120.erl:5479-5489 | src/rfc6120.erl:5525-5535 | src/rfc6120.erl:5574-5584 \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 \u0060src/rfc6120.erl:5479\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/rfc6120.erl:5490\u0060 calls \u0060decode_presence_show\u0060 and \u0060src/rfc6120.erl:5585\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":5479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89238bf8e7d977f90a0cf57359f8cfb5660fea3c39950dffd8c111ad915bd28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/xep0016.erl:443-453 | src/xep0016.erl:469-479 | src/xep0016.erl:495-505 | src/xep0016.erl:521-531 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0016.erl:443\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0016.erl:454\u0060 calls \u0060decode_privacy_message\u0060 and \u0060src/xep0016.erl:506\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0016.erl"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"585d2431a07049719c58224740b071d6fb75bcd5ccc8dadeb75157f4748a1689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/xep0054.erl:4540-4550 | src/xep0054.erl:4570-4580 | src/xep0054.erl:4600-4610 | src/xep0054.erl:4630-4640 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:4540\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:4551\u0060 calls \u0060decode_vcard_INTERNET\u0060 and \u0060src/xep0054.erl:4611\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4540}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d3c6cd8a16762c32c3ef5f073cac8fc37ffd66a6e7707d199e52891f346085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/xep0055.erl:427-437 | src/xep0055.erl:453-463 | src/xep0055.erl:479-489 | src/xep0055.erl:505-515 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0055.erl:427\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0055.erl:438\u0060 calls \u0060decode_search_first\u0060 and \u0060src/xep0055.erl:490\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0055.erl"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcd91541758141e94ce8af89ec5f312bd7d6138134a8bbfb5a389ddccfc9bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/xep0054.erl:5707-5717 | src/xep0054.erl:5741-5751 | src/xep0054.erl:5775-5785 | src/xep0054.erl:5809-5819 | src/xep0054.erl:5843-5853 | src/xep0054.erl:5877-5887 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5707\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5718\u0060 calls \u0060decode_vcard_POSTAL\u0060 and \u0060src/xep0054.erl:5786\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5707}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8d1c5e16688abcdda8771bc20b09dbdb5d8267163227e58087af6cccf03b1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/xep0078.erl:101-111 | src/xep0078.erl:127-137 | src/xep0078.erl:153-163 | src/xep0078.erl:179-189 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0078.erl: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0078.erl:112\u0060 calls \u0060decode_legacy_auth_username\u0060 and \u0060src/xep0078.erl:164\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0078.erl"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b8e08a920d2c662a6bdc29b3e900e91cafd5181ac0ead3dd8a36cf90831f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/muc_roomconfig.erl:980-990 | src/muc_roominfo.erl:516-526 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:980\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":"src/muc_roomconfig.erl"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c2f530429580a6d3c76503d937d6cc58b66757e4d9b47d255d370d22c44a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/xep0059.erl:184-194 | src/xep0059.erl:216-226 | src/xep0059.erl:248-258 | src/xep0059.erl:280-290 | src/xep0059.erl:312-322 \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 \u0060src/xep0059.erl:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0059.erl:195\u0060 calls \u0060decode_rsm_count\u0060 and \u0060src/xep0059.erl:259\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0059.erl"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3475faf94b7227b644ffe9bfa1893a37fc422138e2ccedeb4c135a6a014218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/rfc6120.erl:6095-6105 | src/rfc6120.erl:6144-6154 | src/rfc6120.erl:6190-6200 \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 \u0060src/rfc6120.erl:6095\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":"src/rfc6120.erl"},"region":{"startLine":6095}}}],"partialFingerprints":{"codehealthFindingId/v1":"53074fd1db7d887bb354c206c0a4398edcbb0fa2157524d10c88662bb6240966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): src/xep0054.erl:4479-4488 | src/xep0054.erl:4509-4518 | src/xep0054.erl:4539-4548 | src/xep0054.erl:4569-4578 | src/xep0054.erl:4599-4608 | src/xep0054.erl:4629-4638 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:4479\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:4489\u0060 calls \u0060decode_vcard_HOME\u0060 and \u0060src/xep0054.erl:4549\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":4479}}}],"partialFingerprints":{"codehealthFindingId/v1":"11405f2cd72a167a116e807931d55a4369cb9a8977ef25efeb44b56dc1fc5caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 51): src/muc_register.erl:456-464 | src/muc_request.erl:412-419 | src/muc_roomconfig.erl:1708-1716 | src/muc_roomconfig.erl:1759-1767 | src/muc_roomconfig.erl:1778-1786 | src/muc_roomconfig.erl:1794-1802 | src/muc_roomconfig.erl:1810-1816 | src/muc_roomconfig.erl:1844-1851 | src/muc_roomconfig.erl:1875-1883 | src/muc_roomconfig.erl:1891-1898 | src/muc_roomconfig.erl:1906-1914 | src/muc_roomconfig.erl:1922-1928 | src/muc_roomconfig.erl:2026-2032 | src/muc_roomconfig.erl:2040-2046 | src/muc_roomconfig.erl:2054-2061 | src/muc_roomconfig.erl:2070-2078 | src/muc_roomconfig.erl:2086-2092 | src/muc_roomconfig.erl:2132-2139 | src/muc_roomconfig.erl:2147-2154 | src/muc_roomconfig.erl:2260-2267 | src/muc_roomconfig.erl:2275-2281 | src/muc_roominfo.erl:957-965 | src/muc_roominfo.erl:973-982 | src/muc_roominfo.erl:1149-1157 | src/muc_roominfo.erl:1200-1208 | src/pubsub_node_config.erl:1734-1741 | src/pubsub_node_config.erl:1749-1757 | src/pubsub_node_config.erl:1949-1957 | src/pubsub_node_config.erl:1966-1974 | src/pubsub_node_config.erl:1983-1991 | src/pubsub_node_config.erl:2000-2008 | src/pubsub_node_config.erl:2017-2024 | src/pubsub_node_config.erl:2034-2042 | src/pubsub_node_config.erl:2084-2092 | src/pubsub_node_config.erl:2161-2169 | src/pubsub_node_config.erl:2178-2185 | src/pubsub_publish_options.erl:1736-1743 | src/pubsub_publish_options.erl:1751-1759 | src/pubsub_publish_options.erl:1951-1959 | src/pubsub_publish_options.erl:1968-1976 | src/pubsub_publish_options.erl:1985-1993 | src/pubsub_publish_options.erl:2002-2010 | src/pubsub_publish_options.erl:2019-2026 | src/pubsub_publish_options.erl:2036-2044 | src/pubsub_publish_options.erl:2086-2094 | src/pubsub_publish_options.erl:2163-2171 | src/pubsub_publish_options.erl:2180-2187 | src/pubsub_subscribe_authorization.erl:371-379 | src/pubsub_subscribe_options.erl:537-545 | src/pubsub_subscribe_options.erl:554-562 | src/pubsub_subscribe_options.erl:606-614 \u2014 before extracting anything, compare \u0060src/muc_register.erl\u0060 and \u0060src/muc_request.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_register.erl:456\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":"src/muc_register.erl"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7a88106175e0c63a2beabf32469d6613f6af836a202c4b1cac626644660ea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/xep0004.erl:626-635 | src/xep0004.erl:654-663 | src/xep0004.erl:682-691 | src/xep0004.erl:711-720 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0004.erl:626\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":"src/xep0004.erl"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7158bec985f7a8094eeb4037938623c323b907ebf0f3304927d1b6c2f08dbe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/push_summary.erl:235-242 | src/push_summary.erl:265-274 | src/push_summary.erl:294-302 | src/push_summary.erl:320-328 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/push_summary.erl:235\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":"src/push_summary.erl"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b9531399e964b3a14f74e38c37fc156b5d4608e4202543ed23418ca1d0f970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): src/mam_query.erl:453-460 | src/mam_query.erl:467-474 | src/muc_roomconfig.erl:1958-1967 | src/muc_roomconfig.erl:1974-1983 | src/muc_roominfo.erl:1052-1061 | src/muc_roominfo.erl:1182-1191 \u2014 before extracting anything, compare \u0060src/mam_query.erl\u0060 and \u0060src/muc_roomconfig.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:1958\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":"src/mam_query.erl"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b416210e0d9bcd8c75c439bdcb92e7e0bad0e5b3ac7ab9aea4137f6602b1e141"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/xep0022.erl:67-76 | src/xep0022.erl:95-104 | src/xep0022.erl:123-132 | src/xep0022.erl:151-160 | src/xep0022.erl:179-188 \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 \u0060src/xep0022.erl: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0022.erl"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32ec21e8109ffb7143d3ceb67d78e9cf0cf6fd952e80f327dc34b9ed706fc75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/xep0004.erl:159-168 | src/xep0004.erl:188-197 | src/xep0004.erl:216-225 | src/xep0004.erl:244-253 | src/xep0004.erl:273-282 \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 \u0060src/xep0004.erl:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0004.erl"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"784274726d9eeb975c378f8955582a365f6172f04c023c53ae364286b6a28431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): src/muc_register.erl:486-493 | src/muc_roominfo.erl:1215-1224 | src/pubsub_node_config.erl:1642-1651 | src/pubsub_node_config.erl:1678-1687 | src/pubsub_publish_options.erl:1644-1653 | src/pubsub_publish_options.erl:1680-1689 \u2014 before extracting anything, compare \u0060src/muc_register.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roominfo.erl:1215\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":"src/muc_register.erl"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e646632a284a8bc0916df6c076aa3e697c8eb25102bdcc8de5221434252b4aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/xep0363.erl:555-564 | src/xep0417.erl:294-303 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0363.erl:555\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":"src/xep0363.erl"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b7d721546f785c5f19fcf07079bc632392a4bf31bb15a4d79e785c8508601a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): src/xep0059.erl:119-128 | src/xep0059.erl:151-160 | src/xep0059.erl:183-192 | src/xep0059.erl:215-224 | src/xep0059.erl:247-256 | src/xep0059.erl:279-288 | src/xep0059.erl:311-320 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0059.erl: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0059.erl:129\u0060 calls \u0060decode_rsm_after\u0060 and \u0060src/xep0059.erl:193\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0059.erl"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdb1c4fe61b2157358345e1cd9cf06a8c683cdaa6c118d78142b1a75f462f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/xep0054.erl:6895-6904 | src/xep0054.erl:6923-6932 | src/xep0054.erl:6951-6960 | src/xep0054.erl:6979-6988 | src/xep0054.erl:7007-7016 \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 \u0060src/xep0054.erl:6895\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":"src/xep0054.erl"},"region":{"startLine":6895}}}],"partialFingerprints":{"codehealthFindingId/v1":"12770ddd90724b19c58091f4193a58586714a917454bed4e61c6b8d8afdfc9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): src/flex_offline.erl:252-260 | src/http_upload.erl:253-260 | src/muc_roomconfig.erl:1825-1834 | src/muc_roominfo.erl:939-947 | src/muc_roominfo.erl:1119-1126 | src/pubsub_meta_data.erl:787-795 | src/pubsub_node_config.erl:1871-1879 | src/pubsub_publish_options.erl:1873-1881 | src/push_summary.erl:346-354 | src/push_summary.erl:365-374 \u2014 before extracting anything, compare \u0060src/flex_offline.erl\u0060 and \u0060src/http_upload.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:1825\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":"src/flex_offline.erl"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d47abc438a5d9f7c28e7a77b890cd69c31eec692ca90b076601c4cd3bd6fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): src/mam_query.erl:439-446 | src/muc_request.erl:383-390 | src/pubsub_meta_data.erl:735-743 | src/pubsub_subscribe_authorization.erl:401-408 | src/push_summary.erl:384-392 \u2014 before extracting anything, compare \u0060src/mam_query.erl\u0060 and \u0060src/muc_request.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mam_query.erl"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea28c22ac277d62d526e8f78e676cbdca6326d01599a0ee36db4d5f675eae4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): src/muc_roomconfig.erl:1860-1867 | src/muc_roomconfig.erl:2163-2169 | src/muc_roomconfig.erl:2206-2212 | src/muc_roominfo.erl:1023-1030 | src/pubsub_meta_data.erl:704-711 | src/pubsub_meta_data.erl:805-812 | src/pubsub_meta_data.erl:822-829 | src/pubsub_node_config.erl:1626-1634 | src/pubsub_node_config.erl:1697-1704 | src/pubsub_publish_options.erl:1628-1636 | src/pubsub_publish_options.erl:1699-1706 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/muc_roominfo.erl\u0060 as WHOLE FILES: this scan already matched 28 separate duplicated blocks between them, totalling at least 448 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:1860\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":"src/muc_roomconfig.erl"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"297e2dc2b85e94ebebadb5d3983ee3fcbace066afcbbc5eaf55fc0c630922136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 48): src/captcha_form.erl:784-791 | src/captcha_form.erl:830-836 | src/captcha_form.erl:844-852 | src/captcha_form.erl:860-867 | src/captcha_form.erl:875-881 | src/captcha_form.erl:889-897 | src/captcha_form.erl:919-926 | src/captcha_form.erl:934-941 | src/captcha_form.erl:949-956 | src/captcha_form.erl:964-971 | src/captcha_form.erl:994-1000 | src/mam_query.erl:482-489 | src/mam_query.erl:497-504 | src/mam_query.erl:512-519 | src/muc_register.erl:473-479 | src/muc_register.erl:501-507 | src/muc_register.erl:515-521 | src/muc_register.erl:529-535 | src/muc_register.erl:543-549 | src/muc_request.erl:398-404 | src/muc_roomconfig.erl:1657-1665 | src/muc_roomconfig.erl:2177-2183 | src/muc_roomconfig.erl:2191-2197 | src/muc_roominfo.erl:1039-1045 | src/muc_roominfo.erl:1069-1077 | src/muc_roominfo.erl:1089-1097 | src/muc_roominfo.erl:1105-1112 | src/muc_roominfo.erl:1134-1141 | src/muc_roominfo.erl:1166-1174 | src/muc_roominfo.erl:1233-1241 | src/pubsub_meta_data.erl:751-758 | src/pubsub_meta_data.erl:838-844 | src/pubsub_meta_data.erl:852-860 | src/pubsub_node_config.erl:1561-1569 | src/pubsub_node_config.erl:1712-1720 | src/pubsub_node_config.erl:1765-1772 | src/pubsub_node_config.erl:2193-2200 | src/pubsub_node_config.erl:2208-2216 | src/pubsub_publish_options.erl:1563-1571 | src/pubsub_publish_options.erl:1714-1722 | src/pubsub_publish_options.erl:1767-1774 | src/pubsub_publish_options.erl:2195-2202 | src/pubsub_publish_options.erl:2210-2218 | src/pubsub_subscribe_authorization.erl:388-394 | src/pubsub_subscribe_authorization.erl:416-424 | src/pubsub_subscribe_options.erl:572-580 | src/pubsub_subscribe_options.erl:589-597 | src/push_summary.erl:401-409 \u2014 before extracting anything, compare \u0060src/captcha_form.erl\u0060 and \u0060src/mam_query.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/captcha_form.erl:844\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":"src/captcha_form.erl"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ce8bda78e941c6a2dbb320725e39cb31d9865a2038ac6c47511232a4a702f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 21): src/muc_request.erl:371-376 | src/muc_roomconfig.erl:1691-1698 | src/muc_roomconfig.erl:1743-1751 | src/muc_roomconfig.erl:2246-2252 | src/muc_roominfo.erl:1007-1014 | src/pubsub_meta_data.erl:916-921 | src/pubsub_meta_data.erl:948-953 | src/pubsub_node_config.erl:1547-1553 | src/pubsub_node_config.erl:1606-1614 | src/pubsub_node_config.erl:1816-1823 | src/pubsub_node_config.erl:1902-1909 | src/pubsub_node_config.erl:1935-1941 | src/pubsub_node_config.erl:2070-2076 | src/pubsub_node_config.erl:2145-2153 | src/pubsub_publish_options.erl:1549-1555 | src/pubsub_publish_options.erl:1608-1616 | src/pubsub_publish_options.erl:1818-1825 | src/pubsub_publish_options.erl:1904-1911 | src/pubsub_publish_options.erl:1937-1943 | src/pubsub_publish_options.erl:2072-2078 | src/pubsub_publish_options.erl:2147-2155 \u2014 before extracting anything, compare \u0060src/muc_request.erl\u0060 and \u0060src/muc_roomconfig.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_request.erl:371\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":"src/muc_request.erl"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcfab18d8b17c08cea1bb7ecd134dad39889bcc5c86c0eaa9e825074f1e2bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): src/xep0054.erl:5639-5647 | src/xep0054.erl:5673-5681 | src/xep0054.erl:5707-5715 | src/xep0054.erl:5741-5749 | src/xep0054.erl:5775-5783 | src/xep0054.erl:5809-5817 | src/xep0054.erl:5843-5851 | src/xep0054.erl:5877-5885 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xep0054.erl:5639\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/xep0054.erl:5648\u0060 calls \u0060decode_vcard_HOME\u0060 and \u0060src/xep0054.erl:5716\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0054.erl"},"region":{"startLine":5639}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b0b6ed64a1d6fe397db3597196a097ce4a5de5d3534c73b49f2297d97061a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/muc_roomconfig.erl:2116-2124 | src/pubsub_subscribe_options.erl:652-659 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/pubsub_subscribe_options.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:2116\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":"src/muc_roomconfig.erl"},"region":{"startLine":2116}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acf5cd4be1548c0ac7cadb49efc802dccc41ecfbebb0df9aaf4c9a1890eb562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/muc_roomconfig.erl:2100-2107 | src/pubsub_subscribe_options.erl:624-632 \u2014 before extracting anything, compare \u0060src/muc_roomconfig.erl\u0060 and \u0060src/pubsub_subscribe_options.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_roomconfig.erl:2100\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":"src/muc_roomconfig.erl"},"region":{"startLine":2100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9260020cbafc77ff045b477c55b2104238717bb22e8eab39bcee7720b6e5b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 23): src/muc_request.erl:369-375 | src/muc_roomconfig.erl:1689-1695 | src/muc_roomconfig.erl:1741-1748 | src/muc_roomconfig.erl:2244-2250 | src/muc_roominfo.erl:1005-1011 | src/pubsub_meta_data.erl:914-920 | src/pubsub_meta_data.erl:946-952 | src/pubsub_node_config.erl:1545-1551 | src/pubsub_node_config.erl:1604-1611 | src/pubsub_node_config.erl:1814-1820 | src/pubsub_node_config.erl:1900-1906 | src/pubsub_node_config.erl:1933-1939 | src/pubsub_node_config.erl:2068-2074 | src/pubsub_node_config.erl:2143-2150 | src/pubsub_publish_options.erl:1547-1553 | src/pubsub_publish_options.erl:1606-1613 | src/pubsub_publish_options.erl:1816-1822 | src/pubsub_publish_options.erl:1902-1908 | src/pubsub_publish_options.erl:1935-1941 | src/pubsub_publish_options.erl:2070-2076 | src/pubsub_publish_options.erl:2145-2152 | src/pubsub_subscribe_options.erl:683-689 | src/pubsub_subscribe_options.erl:715-721 \u2014 before extracting anything, compare \u0060src/muc_request.erl\u0060 and \u0060src/muc_roomconfig.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/muc_request.erl:369\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/pubsub_meta_data.erl:944\u0060 calls \u0060tr\u0060, \u0060T\u0060 and \u0060src/pubsub_node_config.erl:1898\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/muc_request.erl"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"57378ea41bf2df462e2654faf232e1a8103c566364ccbd0d430ecfe12d00b309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/captcha_form.erl:798-805 | src/captcha_form.erl:905-911 \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":"src/captcha_form.erl"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"434e93cf11bae1e6c895f36e834d3c381212dddd02e92fea86105a2275d3a88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/xmpp_stream_in.erl:277-282 | src/xmpp_stream_out.erl:281-286 \u2014 before extracting anything, compare \u0060src/xmpp_stream_in.erl\u0060 and \u0060src/xmpp_stream_out.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 193 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/xmpp_stream_in.erl:277\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/xmpp_stream_out.erl:278\u0060 calls \u0060format_error\u0060, \u0060format\u0060 and \u0060src/xmpp_stream_in.erl:276\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_in.erl"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"786f5f023e5caddc84e9f6f249acd780828c3240c79925c02fdc9efed470b376"}},{"ruleId":"D12","level":"warning","message":{"text":"No dependency lockfile committed (rebar.config): rebar.config declares 6 dependencies but no lockfile (rebar.lock or mix.lock) is committed beside it, so \u0060rebar3 compile\u0060 resolves versions afresh on every machine and every CI run \u2014 two builds of this commit are not guaranteed to be the same build. Run \u0060rebar3 compile\u0060 and commit the resulting \u0060rebar.lock\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8167d684e70969326978dc347dd61843dfe24c2c826307dbb1edecc8ff726c1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/xep0060.erl: src/xep0060.erl changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in xep0060.decode_pubsub_els at line 1943. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 13:50:35 \u002B01:00\u0027 --until=\u00272026-11-12 13:50:35 \u002B01:00\u0027 --full-history --no-merges -- src/xep0060.erl\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0060.erl"},"region":{"startLine":1943}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f44f3e36fd56e935e45fa3801d05306e0f87c293bb02ed917402c691ea5b1a6"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: src/xmpp_stream_out.erl, src/xmpp_socket.erl, src/xmpp_sasl_digest.erl, src/xmpp_sasl.erl. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c737801af169091e6f743ce2e7ec6ac95e7c8ee6e34bba78e3448f7f5e56ecc4"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (6 single-owned of 108 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 108 of the 150 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/muc_roominfo.erl, src/xep0184.erl."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: write correct types for these callbacks \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":"src/xmpp_sasl.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"604943b4c59716648636b8b11baf76afcf6a46a2a570cf0687959ecda5fea0f9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: their code should be improved \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":"src/xmpp_socket.erl"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"796151204ace613abcee4296fdae756612466cf5f9d0adc1a5c71e93b2df7420"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: make fast_tls return atoms \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":"src/xmpp_stream_in.erl"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"df86e7b5d5cc5fbe3be5cfff9c9e2bbf1de74fdfd7982668000e0df2843a6795"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: make fast_tls return atoms \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":"src/xmpp_stream_out.erl"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2222e90dde1a7e9bf15a18f94dd1626a444a30056aed31e55e247321484a87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: return atomic errors \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":"src/xmpp_stream_pkix.erl"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a248ac9ca1d5cddc9c25c9776a6c2ad236d261197653438bc8ec725cd13a9f81"}},{"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":"e9b79a42c1353f66f0a4d39600ecafc51a05b89031e98896312f2acc981a4331"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b50d6185f231a28fa9959e31861b0be76667502f1a2f794cc5c60d4fa797cb7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"02d8fbae43495eba6c2d9565865170f9c020839762212823a8689c53ac98263f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8eb7281ce0374ff9721d9a19fe35cceedb80664a0f121580efb4582a7b2b3c63"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bdca5138dfe6d4d46ffbbf4652773280651a8ac2306101693f36172f996f4307"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"263d8fa1e8fba3fdd735342ee636a7e3641f9a48c6d612f7e4c6c247eeff49a5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: xmpp_sasl_digest.erl \u2194 xmpp_sasl_scram.erl: \u0060src/xmpp_sasl_digest.erl\u0060 and \u0060src/xmpp_sasl_scram.erl\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00608c1920d4\u0060 Improve handling of c=y sasl flag when plus variants are disabled; \u006089d93b1f\u0060 Add guards for undefined ClientIn; \u00608929be60\u0060 Support for get_password returning multiple passwords \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_digest.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d74c2faa3fc0faeaf5c66dd9725ecd99188b0367278fd0652c286075227a2f"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"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"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"90ef8645d5d250a2cdd6c4ddecf434c2439a3eaf0b71b0b76b3e93b4d1bb9e49"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"5ee20bfdfaecd1c404003e38688eb0cde0a35f2f8a9f0593048e12e7b62df15f"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rfc6120.erl"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"76edaf29479ca4035c2185ed9e7c2e61753f47e88d246b2b1bd4481ef3e73cf0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xdata_codec.erl"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c34996bea45abb4b3d377a09347477b8495d8a4b8f942fd33b60cfe0628530"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xep0215.erl"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fbc9a675aa24d0bc68927627ffddbc72a48893b350e562065ce7b766a23c04"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_socket.erl"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"822bdaa92bde9294d52151d2b93448a7682acf7020d3a73bc60d5d922cff7b94"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_socket.erl"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d15d12f19e3bcc769a00de147d05637f13b8b12ff8ea73abd3f0401a2611ce3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"568e051e038a75b048f4acd5ca0bb00f18a266c4e9b1e0dadd99d62bb1b78ee6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_out.erl"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ea4c09c7047f1f7d0aee71291b9a02ca7887fe071fc64df095e87dc8a9768b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_pkix.erl"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0fb6682b5d654f0f684f7f35253551a54bb1e9e1e9dcb71b464ecf152a2b8ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_pkix.erl"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"60adcb3f0ffe9937641bc859d0004ea567e6ad9c05afc39c72146904aa41c36b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_stream_pkix.erl"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d930e555794bc51cfa707f01ebf1517c08ebfdd1919127385e7868ffae14c5c"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060jid:string_to_usr/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jid.erl"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b44c9ff9cb65962d44afd8eca03547c1e7f1a1db7f141e101301208a736d4da"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060xmpp_sasl_digest:parse/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_digest.erl"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5cbaee78fef01306ad25de41a65838c7350fc7b2afaddff42e466fead85671"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060xmpp_sasl_fast:parse/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_fast.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2828e7a5dc0268ab3eb8c4d25c9fe2813c04ba95961f1a6ace7d9dfadcda82f9"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060xmpp_sasl_oauth:parse/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_oauth.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46443707bbf730cdef6f17b48e0c5f24bcba0f20a0c59a564b950f2c88571d6"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060xmpp_sasl_plain:parse/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/xmpp_sasl_plain.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f25fe4adb0e12e3e8d6d531b1ae4d61c6880d8672fda28c5ce5911f170f6c4e"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":12,"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."]}]}