{"$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":"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"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":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"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":"offerUpdate._updateOfferPrice (cyclomatic 186): offerUpdate._updateOfferPrice has cyclomatic complexity 186 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: priv/www/src/sig-offer-update.js holds 8 of the 90 methods over the threshold \u2014 including the worst \u2014 and 495 of the 1660 points over it (30%), 2.3\u00D7 the next-largest file (src/ocs_rating.erl at 216). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1951}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35801642fa8370b71ca73192617c7f9474680f74e74da8522e448e5afc1f943"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.charge2 (cyclomatic 136): ocs_rating.charge2 has cyclomatic complexity 136 (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/ocs_rating.erl"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e867b423f3badac3e9d3cd73620b78a5a397af38746ce35c17082ebdf76c202"}},{"ruleId":"D1","level":"warning","message":{"text":"offerUpdate._updateOfferAlteration (cyclomatic 104): offerUpdate._updateOfferAlteration has cyclomatic complexity 104 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: priv/www/src/sig-offer-update.js holds 8 of the 90 methods over the threshold \u2014 including the worst \u2014 and 495 of the 1660 points over it (30%), 2.3\u00D7 the next-largest file (src/ocs_rating.erl at 216). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a52572f6e35b1e3644d2ca3c69653ba9d0d800757b0e77127c3494e104ccbd"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_log.dia_req_and_res (cyclomatic 102): ocs_log.dia_req_and_res has cyclomatic complexity 102 (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/ocs_log.erl"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"d050b45e5928df09e70401d2407fdd45276e7d838b76bece790e1520ff4364ca"}},{"ruleId":"D1","level":"warning","message":{"text":"offerAdd._addOffer::mapPrice (cyclomatic 82): offerAdd._addOffer::mapPrice has cyclomatic complexity 82 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (offerAdd._addOffer) 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":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c705f8b539c8523bc26b4259b238f0aaa72c1bfe579f889c482b650ad9a7401"}},{"ruleId":"D1","level":"warning","message":{"text":"offerUpdate._updateProductOffer (cyclomatic 82): offerUpdate._updateProductOffer has cyclomatic complexity 82 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: priv/www/src/sig-offer-update.js holds 8 of the 90 methods over the threshold \u2014 including the worst \u2014 and 495 of the 1660 points over it (30%), 2.3\u00D7 the next-largest file (src/ocs_rating.erl at 216). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1133374052a1ab23fbbeb7f8c433146947d3b0a762964f43e9b7c5a42c24a13"}},{"ruleId":"D1","level":"warning","message":{"text":"offerUpdate._activeItemChanged (cyclomatic 79): offerUpdate._activeItemChanged has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: priv/www/src/sig-offer-update.js holds 8 of the 90 methods over the threshold \u2014 including the worst \u2014 and 495 of the 1660 points over it (30%), 2.3\u00D7 the next-largest file (src/ocs_rating.erl at 216). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2361a31f25db5028a1807fe8bf2f0dd18d59ae03771574801eee04ef11011a"}},{"ruleId":"D1","level":"warning","message":{"text":"dashBoard._healthChart::handleAjaxResponse (cyclomatic 78): dashBoard._healthChart::handleAjaxResponse has cyclomatic complexity 78 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"d792c29d0441971c2613d7b5a4d52885ae6a2fc123f44931d416000419db13bd"}},{"ruleId":"D1","level":"warning","message":{"text":"offerUpdate._updateAddPrice (cyclomatic 78): offerUpdate._updateAddPrice has cyclomatic complexity 78 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: priv/www/src/sig-offer-update.js holds 8 of the 90 methods over the threshold \u2014 including the worst \u2014 and 495 of the 1660 points over it (30%), 2.3\u00D7 the next-largest file (src/ocs_rating.erl at 216). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3210}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3e738b5e06342b6f4b6591abbc4ca9c37ea64b0e3e12de7beedcbcb01d1934"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs.update_resource (cyclomatic 59): ocs.update_resource has cyclomatic complexity 59 (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/ocs.erl"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"900f1ba7df7b5867b5eed5cef140688b787b5bad67a1992837c3a554d2c84ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_log.ipdr_csv (cyclomatic 55): ocs_log.ipdr_csv has cyclomatic complexity 55 (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/ocs_log.erl"},"region":{"startLine":4189}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dbf0f936e85b514745e14a4426a38c08aa86edabde0c9c724fbc7f370c82c8"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_log.dia_req_and_res (cyclomatic 52): ocs_log.dia_req_and_res has cyclomatic complexity 52 (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/ocs_log.erl"},"region":{"startLine":2587}}}],"partialFingerprints":{"codehealthFindingId/v1":"298efbf8509b7c2fda42cdc944ea8929584974d01801313e5e757f9d72f514a5"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs.adjustment (cyclomatic 50): ocs.adjustment has cyclomatic complexity 50 (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/ocs.erl"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"51337ae397da422434d12d6921c0d2be7ea6ce3f5375cc6eff3dc8371873e68e"}},{"ruleId":"D1","level":"warning","message":{"text":"offerAdd._addPrice (cyclomatic 48): offerAdd._addPrice has cyclomatic complexity 48 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d0ff0c26dfba47eb6aab951e1971dd15bf4558d6f98a8801258a13cabdb8f8"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_usage.query_page1 (cyclomatic 45): ocs_rest_res_usage.query_page1 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: ocs_rest_res_usage.ipdr_wlan_characteristics (cyclomatic 49) 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/ocs_rest_res_usage.erl"},"region":{"startLine":3223}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c090c3b5bfe0a3ceaea8812efeeae566ff295e57efb76cde77cce26972b3d1"}},{"ruleId":"D1","level":"warning","message":{"text":"offerUpdate._updatePricesDialog (cyclomatic 45): offerUpdate._updatePricesDialog has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: priv/www/src/sig-offer-update.js holds 8 of the 90 methods over the threshold \u2014 including the worst \u2014 and 495 of the 1660 points over it (30%), 2.3\u00D7 the next-largest file (src/ocs_rating.erl at 216). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5ceeecb6fe5ebce5c13c42d79779a36074f72972d91da1b61b63755b6ac6b2"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.charge3 (cyclomatic 44): ocs_rating.charge3 has cyclomatic complexity 44 (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/ocs_rating.erl"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e4d71bb943cb04901d1285df6fa90b1c790d41131d1650e04350438a1ab3a6"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_product.product (cyclomatic 44): ocs_rest_res_product.product has cyclomatic complexity 44 (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/ocs_rest_res_product.erl"},"region":{"startLine":2250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9160b3c6006190bef6c0b68c238f77a06219ad77bb6ceda8ff99815ca2d43f"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_log.ipdr_ims_voip1 (cyclomatic 38): ocs_log.ipdr_ims_voip1 has cyclomatic complexity 38 (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/ocs_log.erl"},"region":{"startLine":3690}}}],"partialFingerprints":{"codehealthFindingId/v1":"c440ed46d047f5680ea7d87b3898bcd1747736b7b8042f8db6e8f379229deeb0"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs.add_resource (cyclomatic 36): ocs.add_resource has cyclomatic complexity 36 (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/ocs.erl"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bf3849bd43424e37d4a1626ffd88ca210a390a567b552e2cda9e6e7e7ce8f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_nrf.rate2 (cyclomatic 36): ocs_rest_res_nrf.rate2 has cyclomatic complexity 36 (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/ocs_rest_res_nrf.erl"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"930ae4005a179a5eb4a58c65fcc6e322a989505e6f81d30c49bedde95a5c2973"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_mib.dcca_peer_stats_get_next (cyclomatic 35): ocs_mib.dcca_peer_stats_get_next 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/ocs_mib.erl"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7789e90c3bb37faadb42fedd75c138a60dc98eb4b6ffcecd4df562f493c32c"}},{"ruleId":"D1","level":"warning","message":{"text":"SigApp.refresh (cyclomatic 35): SigApp.refresh has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"785ac38a93a13d4cda2cfa8bd6a9828e79187d9547a9de91c1191a901dde980e"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_usage.query_start1 (cyclomatic 32): ocs_rest_res_usage.query_start1 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. This is NOT this file\u0027s highest cyclomatic complexity: ocs_rest_res_usage.ipdr_wlan_characteristics (cyclomatic 49) 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/ocs_rest_res_usage.erl"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d30e01f9e7f5441121cd79525acc98f264f022c5090da12bc1c8fa2db5f5c6"}},{"ruleId":"D1","level":"warning","message":{"text":"offerAdd._addOffer (cyclomatic 32): offerAdd._addOffer has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (offerAdd._addOffer::mapPrice) 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":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da5784da57190824fc7bb278abbd78dc12f53fc077781cdf58e3dc5567785b2"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_mib.dcca_peer_stats_get (cyclomatic 31): ocs_mib.dcca_peer_stats_get 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/ocs_mib.erl"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f36e6f1f97904fd215962b2e6c34759b7a723d3a47f10216f9055b2f87399f"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.tariff_rate (cyclomatic 30): ocs_rating.tariff_rate 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/ocs_rating.erl"},"region":{"startLine":3754}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78afd6de2bd7a3c985b6f8f5bd622e50ce17ddb4cc286ae020eca0bbe244a0c"}},{"ruleId":"D1","level":"warning","message":{"text":"bucketList._getBuckets::handleAjaxResponse (cyclomatic 30): bucketList._getBuckets::handleAjaxResponse has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f69b0af2e129b47f7b633e6687e8a81f073e24475fa30183b1c68a9b6681f84"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs.add_offer (cyclomatic 29): ocs.add_offer has cyclomatic complexity 29 (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/ocs.erl"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"be31972ad92516d1b5143d98a6cb06030a7d8e8b10a5d8c24db4b45a3ed41fec"}},{"ruleId":"D1","level":"warning","message":{"text":"offerAdd._addAlteration (cyclomatic 29): offerAdd._addAlteration has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dd157b34b45bb4f8d76f6a456b3d81b375537d91215438820422022f16aef0"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.rate1 (cyclomatic 28): ocs_rating.rate1 has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions \u2014 but note WHERE they are: these tests sit in guard sequences, and a guard is a restricted expression sublanguage that allows neither binding a local nor calling a function you wrote, so neither of those moves is available in place. Move the decision out of the guard instead: keep one clause with a permissive guard, compute the compound test in the body through named predicate functions, and dispatch on their result. Where the clauses genuinely differ by pattern rather than by test, keep the patterns and lift only the comma-conjunctions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fd2e567f1306f1f4789f33380e493b8e41809f564c5ea47b627e98a6284e8c"}},{"ruleId":"D1","level":"warning","message":{"text":"user_default.peer_stat1 (cyclomatic 28): user_default.peer_stat1 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: user_default.dia_count (cyclomatic 91) 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/user_default.erl"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"910946e6a118a1f5d4969cf2ab8bce2e4abe7a5e3c3daf5e550ae287861f4abb"}},{"ruleId":"D1","level":"warning","message":{"text":"offerAdd._addUpdatePriceDialog (cyclomatic 28): offerAdd._addUpdatePriceDialog has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2a872d3cf361667f68005da3a5cbdcbb88f02c28c77b190449b3911ed89c0e"}},{"ruleId":"D1","level":"warning","message":{"text":"productList._getProduct::handleAjaxResponse (cyclomatic 28): productList._getProduct::handleAjaxResponse has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-product-list.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f777c4e2b1009666338245c6f9c4a7965847b8970a77f2cdf1285c68f537eb7"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_product.price (cyclomatic 27): ocs_rest_res_product.price has cyclomatic complexity 27 (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/ocs_rest_res_product.erl"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afb1c428e3115bcaca0b366095731d7a17c77ecf160b0ff66253d5fda131a6f"}},{"ruleId":"D1","level":"warning","message":{"text":"subAdd._serviceAddSubmit (cyclomatic 27): subAdd._serviceAddSubmit has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"723944656c7a1ac14f735839376cdca4d439d5465496db98b506090b8a55a6a0"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.authorize2 (cyclomatic 26): ocs_rating.authorize2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"168f34cce0b7be4699c7aad0efe51f2b7b92574af5eb2415bc92d9bbe8c06b63"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.rate2 (cyclomatic 26): ocs_rating.rate2 has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions \u2014 but note WHERE they are: these tests sit in guard sequences, and a guard is a restricted expression sublanguage that allows neither binding a local nor calling a function you wrote, so neither of those moves is available in place. Move the decision out of the guard instead: keep one clause with a permissive guard, compute the compound test in the body through named predicate functions, and dispatch on their result. Where the clauses genuinely differ by pattern rather than by test, keep the patterns and lift only the comma-conjunctions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"383acb9cadd2e6bff8ae85d94c805a5caa40702a7566615914230c54162385f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_log.acct_query4 (cyclomatic 25): ocs_log.acct_query4 has cyclomatic complexity 25 (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: ocs_log.diameter_user_location_info (cyclomatic 34) 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/ocs_log.erl"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"671b21004be819a576c4577b14446d6ad4660d96e0d14d57c623d047960334e9"}},{"ruleId":"D1","level":"warning","message":{"text":"accountingList._getAccounting (cyclomatic 25): accountingList._getAccounting has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (handleAjaxResponse, a function literal at line 349, a function literal at line 465, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e95ca3c02256779ca25eab7a302f9e70f7a41aa18d318f315e41f128eac5c5"}},{"ruleId":"D1","level":"warning","message":{"text":"subUpdate.updateSubscriberAuthorization (cyclomatic 25): subUpdate.updateSubscriberAuthorization has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"029eee3b73b54740dcd32336f3548aba926842a541f2a8ba4bbe111de43b90cc"}},{"ruleId":"D1","level":"warning","message":{"text":"SigApp._routePageChanged (cyclomatic 25): SigApp._routePageChanged has cyclomatic complexity 25 (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":"priv/www/src/sig-app.js"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e58a3c781bcba0b75b144d5b317e5e3d0eb19d8cbd0edac2bfeb63a5f7928cf"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_product.alteration (cyclomatic 24): ocs_rest_res_product.alteration has cyclomatic complexity 24 (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: ocs_rest_res_product.char_value (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/ocs_rest_res_product.erl"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"425f31dc116c64c8d9e93309d44ee433ee3450048597f3f9d9dbc8823bfc9160"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_service.patch_service (cyclomatic 24): ocs_rest_res_service.patch_service has cyclomatic complexity 24 (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/ocs_rest_res_service.erl"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eb23e0fe100ebf5080c62de1e361efaafe2f071ab6d7c14882df3e6db5e9e0"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_nrf.rate (cyclomatic 23): ocs_rest_res_nrf.rate has cyclomatic complexity 23 (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/ocs_rest_res_nrf.erl"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ecfddad9edd0760d870476d1fe9a89f229b3940bf3b26d6da0651a6a50f22a"}},{"ruleId":"D1","level":"warning","message":{"text":"offerList.getOffers::handleAjaxResponse (cyclomatic 23): offerList.getOffers::handleAjaxResponse has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-list.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a719da4c177a102b9f70d1bcdfaebb05406917305be58cef495fa93b3ccbc01"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs.subscription (cyclomatic 22): ocs.subscription 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs.erl"},"region":{"startLine":3365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09b53574cd7603f0c4b4d67bbc02e6664b4b538c032ccca67e2e5817f5575fc"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_app.start16 (cyclomatic 22): ocs_app.start16 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_app.erl"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41062cab975609a8b6f1a9d053f2fe49bf952d75b32bca41de5c04b177d586a"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_log.btree_search (cyclomatic 22): ocs_log.btree_search 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: ocs_log.diameter_user_location_info (cyclomatic 34) 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/ocs_log.erl"},"region":{"startLine":3354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b624d184e5aaa6f709e4c0f4c26c94092df4721f3a8e20c9a76221927a52c8c1"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.rate (cyclomatic 22): ocs_rating.rate 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: ocs_rating.get_final (cyclomatic 23) 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/ocs_rating.erl"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7dd00b2cb087f0b7d41a857d64844440507f7b0567d1b11ffb59bfbf91234f"}},{"ruleId":"D1","level":"warning","message":{"text":"accessList._getAccess (cyclomatic 22): accessList._getAccess has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 6 function items inside it that branch (handleAjaxResponse, checkHead, checkChar, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-access-list.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1cf3893c47dbca37a78315f3553b29dae33b29d387d6bb110e6068cf01a155"}},{"ruleId":"D1","level":"warning","message":{"text":"offerUpdate._updateAlterationsDialog (cyclomatic 22): offerUpdate._updateAlterationsDialog has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: priv/www/src/sig-offer-update.js holds 8 of the 90 methods over the threshold \u2014 including the worst \u2014 and 495 of the 1660 points over it (30%), 2.3\u00D7 the next-largest file (src/ocs_rating.erl at 216). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"569cc881721a70e4bc6bf0604d4320279973a9a2424cfcb36afdb4e7ec833255"}},{"ruleId":"D1","level":"warning","message":{"text":"subList._getSub::handleAjaxResponse (cyclomatic 22): subList._getSub::handleAjaxResponse has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-list.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd68d359b9e93b6443f466779e1d0814679cc6253675f496cb3fafdca38016b2"}},{"ruleId":"D1","level":"warning","message":{"text":"policyList._getPolicy::handleAjaxResponse (cyclomatic 22): policyList._getPolicy::handleAjaxResponse has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"103a23456ba4048ee16a7ef767a1269638bf98e586d622e107dde91f5fc86bf2"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_mib.dcca_peer_info_get_next (cyclomatic 21): ocs_mib.dcca_peer_info_get_next 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: ocs_mib.peer_stats1 (cyclomatic 22) 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/ocs_mib.erl"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"076054a7c368e2a613d82162bff47c59a3f4862ca11c978def355c77a79b4436"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_product.patch_product (cyclomatic 21): ocs_rest_res_product.patch_product 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: ocs_rest_res_product.char_value (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/ocs_rest_res_product.erl"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e94b7fed8156a542af53e235fdc54c15c9e0804f8d3556cb3a20f1ea61e0844"}},{"ruleId":"D1","level":"warning","message":{"text":"periodList._getPeriodTable (cyclomatic 21): periodList._getPeriodTable has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 3 function items inside it that branch (handleAjaxResponse, a function literal at line 182, a function literal at line 241). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-list.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eae9833833b28cd78fbc1368f4c6210ebcd7d92aacdfd8e03ecda7b376139f4"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.authorize (cyclomatic 20): ocs_rating.authorize 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. This is NOT this file\u0027s highest cyclomatic complexity: ocs_rating.get_final (cyclomatic 23) 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/ocs_rating.erl"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bfa6641c2d1e2280a3181833a5c9d3d8e100f7aeee9ba63049ed81bc1e7778"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_balance.query_filter (cyclomatic 20): ocs_rest_res_balance.query_filter 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. This is NOT this file\u0027s highest cyclomatic complexity: ocs_rest_res_balance.bucket (cyclomatic 22) 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/ocs_rest_res_balance.erl"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf63b3840ab3bdfa0840d9d280a2d7c6a9e04716617846654edf50fc7bc2f25"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_client.query_filter (cyclomatic 20): ocs_rest_res_client.query_filter 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/ocs_rest_res_client.erl"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa96ee33e4fd728e21a4be063e877f1dc856008cdb8c37aab9bc08a152a5ace2"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_product.patch_offer (cyclomatic 20): ocs_rest_res_product.patch_offer 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. This is NOT this file\u0027s highest cyclomatic complexity: ocs_rest_res_product.char_value (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/ocs_rest_res_product.erl"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c1d53b86fd27559738016050d0e02a456875769f6e446ed95632d3ce251d18"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_product.query_filter (cyclomatic 20): ocs_rest_res_product.query_filter 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. This is NOT this file\u0027s highest cyclomatic complexity: ocs_rest_res_product.char_value (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/ocs_rest_res_product.erl"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd43a694bf612ef3bb20a005a751d1b68623b0de45f45a245f71205f53b29476"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_resource.query_filter (cyclomatic 20): ocs_rest_res_resource.query_filter 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. This is NOT this file\u0027s highest cyclomatic complexity: ocs_rest_res_resource.resource (cyclomatic 23) 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/ocs_rest_res_resource.erl"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f70b6274abcbda68c8061555612934abbff4c9ff7a617c76138550f3f563d8"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_service.query_filter (cyclomatic 20): ocs_rest_res_service.query_filter 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. This is NOT this file\u0027s highest cyclomatic complexity: ocs_rest_res_service.radius_reserve (cyclomatic 24) 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/ocs_rest_res_service.erl"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ab0d2c39b5c2ef6173557d07b2f2bcc6af5fe03a9262e16c1ab6d3897d7145"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_usage.get_usages1 (cyclomatic 20): ocs_rest_res_usage.get_usages1 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. This is NOT this file\u0027s highest cyclomatic complexity: ocs_rest_res_usage.ipdr_wlan_characteristics (cyclomatic 49) 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/ocs_rest_res_usage.erl"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87f80933962e6d18579405b8d3d9788beeef2d7eaa4a0918fcf3f19d69a083e"}},{"ruleId":"D1","level":"warning","message":{"text":"subAdd._addServiceResponse (cyclomatic 20): subAdd._addServiceResponse has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4322d92ed0128a868e3c3cc1988f314cc6f46243fc553a22a766cc93765ba6"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_diameter_acct_service_fsm.service_options (cyclomatic 19): ocs_diameter_acct_service_fsm.service_options has cyclomatic complexity 19 (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: ocs_diameter_acct_service_fsm.split_options (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/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"071340258e09898dab220a8a087fb88bb16dd439cd4483e8cc8155e2e2758112"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rating.charge (cyclomatic 19): ocs_rating.charge has cyclomatic complexity 19 (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: ocs_rating.get_final (cyclomatic 23) 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/ocs_rating.erl"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc984815a499657311098c093b09a345fca330db47d20cb43cf38f8d8adc9034"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_hub_fsm.registered (cyclomatic 19): ocs_rest_hub_fsm.registered has cyclomatic complexity 19 (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/ocs_rest_hub_fsm.erl"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfe0f056ea52ec6e54a2db21d269d2d6f892315d7fb9b53e9f0f1340c1a1fc1"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_role.get_roles1 (cyclomatic 19): ocs_rest_res_role.get_roles1 has cyclomatic complexity 19 (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/ocs_rest_res_role.erl"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47b0ddc67091ddea081e7d248e7ff184f3cecb2226e959a92d458648e758852"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_user.get_users1 (cyclomatic 19): ocs_rest_res_user.get_users1 has cyclomatic complexity 19 (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/ocs_rest_res_user.erl"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ec8b1d3c0e487999d971450973ba0dcaecee15b92052980efcf82a5912d7ad"}},{"ruleId":"D1","level":"warning","message":{"text":"offerUpdate._updateAddAlteration (cyclomatic 19): offerUpdate._updateAddAlteration has cyclomatic complexity 19 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: priv/www/src/sig-offer-update.js holds 8 of the 90 methods over the threshold \u2014 including the worst \u2014 and 495 of the 1660 points over it (30%), 2.3\u00D7 the next-largest file (src/ocs_rating.erl at 216). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7a3d2a3cc68a1b357583e9849f0c527a7e200d6bf61a6bc8c5ad44bfb421c7"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_eap_aka_auc_fsm.idle1 (cyclomatic 18): ocs_eap_aka_auc_fsm.idle1 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/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6f7998cb34cc0f4c8564970a318a41c2b2ae7812643823500df0450729743a"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_nrf.initial_nrf1 (cyclomatic 18): ocs_rest_res_nrf.initial_nrf1 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: ocs_rest_res_nrf.subscriber_id (cyclomatic 20) 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/ocs_rest_res_nrf.erl"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76b27d00d9174d84b4abc555d077a6e85873c830479d19adb983a3dcf5d7386"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_resource.patch_resource (cyclomatic 18): ocs_rest_res_resource.patch_resource 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: ocs_rest_res_resource.resource (cyclomatic 23) 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/ocs_rest_res_resource.erl"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea266a36abdc6da5d12d3cb94515a4b64316a8520e9f8c8a79e1aadfaac02ce7"}},{"ruleId":"D1","level":"warning","message":{"text":"userList._getUsers (cyclomatic 18): userList._getUsers has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 4 function items inside it that branch (handleAjaxResponse, a function literal at line 149, a function literal at line 206, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-user-list.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ffb74125e61d1df31d86adf957c70c0f2b9328c52eb134447eae39a4a56df2"}},{"ruleId":"D1","level":"warning","message":{"text":"rateList._getPrefixTable (cyclomatic 18): rateList._getPrefixTable has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (handleAjaxResponse, a function literal at line 153, a function literal at line 206). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-rate-list.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b112d532b3ebdff542afbbeda61f50c8f3ba32bf797154d7494782a3112d4e10"}},{"ruleId":"D1","level":"warning","message":{"text":"roamingList._getRoamingTable (cyclomatic 18): roamingList._getRoamingTable has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (handleAjaxResponse, a function literal at line 142, a function literal at line 195). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-roaming-list.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c977cb2fb0ae3cdfb7f774626854989116b7ab5ac54b88f5fb3e7f0d063048"}},{"ruleId":"D1","level":"warning","message":{"text":"subUpdate.updateSubscriberBalance (cyclomatic 17): subUpdate.updateSubscriberBalance has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"50914c1f580ed1f3782525b404f4a0f8984186da8b9c5226abd2de9a49645b9e"}},{"ruleId":"D1","level":"warning","message":{"text":"subUpdate.updateSubscriberProduct (cyclomatic 17): subUpdate.updateSubscriberProduct has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b12443678f4755850af45d952392dc03c114c19c4227ea071ad8f5cd83b6fd"}},{"ruleId":"D1","level":"warning","message":{"text":"_loadingChanged (cyclomatic 17): _loadingChanged has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: _pageChanged (cyclomatic 18) 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 method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23afd0d4f2bb396d328cf64ebf52fbca6d3b3a3ef56b047bb28cd3b7f7772ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_nrf.user_location_info1 (cyclomatic 16): ocs_rest_res_nrf.user_location_info1 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: ocs_rest_res_nrf.subscriber_id (cyclomatic 20) 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/ocs_rest_res_nrf.erl"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0a9b65c360f24299e6c6f30193788c47757b543505006410585e7103f079e8"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_rest_res_usage.usage_aaa_acct (cyclomatic 16): ocs_rest_res_usage.usage_aaa_acct 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: ocs_rest_res_usage.ipdr_wlan_characteristics (cyclomatic 49) 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/ocs_rest_res_usage.erl"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"c392bc147bc0ab06632b00eb12b151cd3d342e838f1eaf716abd04648133cb34"}},{"ruleId":"D1","level":"warning","message":{"text":"ocs_scheduler.product_charge1 (cyclomatic 16): ocs_scheduler.product_charge1 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/ocs_scheduler.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"125d4c907b32b1d688e9756f0658c803e5a0e4cf01b8617dace36ceaf5f3eb7c"}},{"ruleId":"D1","level":"warning","message":{"text":"subAdd._addProductResponse (cyclomatic 16): subAdd._addProductResponse has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d72f5c6eff2008b7ef3963514a506de8ef108c35d944d3cc836d479f9e85a1"}},{"ruleId":"D1","level":"warning","message":{"text":"tableRateAdd._tableAdd (cyclomatic 16): tableRateAdd._tableAdd has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-rate-table-add.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82b301b9b959f1071502a331c4e0665e5fff01674aa280bde548ec72c0e3c7d"}},{"ruleId":"D1","level":"warning","message":{"text":"tablePeriodAdd._tableAdd (cyclomatic 16): tablePeriodAdd._tableAdd has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-period-table-add.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9f7b577e818b10bd65ebd7ee3db702f311c04021e431803f895acb2020b316"}},{"ruleId":"D1","level":"warning","message":{"text":"periodUpdate._updatePeriodRow (cyclomatic 16): periodUpdate._updatePeriodRow has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-update.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af63b32424c0fb7f25cc08df2b34659e97447f93145f0ff9ece972c735e51cf"}},{"ruleId":"D1","level":"warning","message":{"text":"tableRoamingAdd._tableAdd (cyclomatic 16): tableRoamingAdd._tableAdd has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-roaming-table-add.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ac1f920e27fef324232924536cc8268a79e1cc44c8c6ad3d704ee10be70c16"}},{"ruleId":"D1","level":"warning","message":{"text":"balanceList._getBalances (cyclomatic 16): balanceList._getBalances has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (handleAjaxResponse, checkHead, a function literal at line 210, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-balance-list.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c72356d2d63b924597045b63fd3b578902b2b6970f9f7b2f6a7afbbdb738ab"}},{"ruleId":"D2","level":"warning","message":{"text":"_updateOfferPrice (cognitive 237): _updateOfferPrice has cognitive complexity 237 (threshold 15). Drivers by points: if/else 110 (152 pts), boolean chains 73, match/switch 4 (12 pts) (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1951}}}],"partialFingerprints":{"codehealthFindingId/v1":"f147d95de4b72388753c374b13abc46459e8acc7abc19575cd21d0f1a93ed438"}},{"ruleId":"D2","level":"warning","message":{"text":"dashBoard._healthChart::handleAjaxResponse (cognitive 232): dashBoard._healthChart::handleAjaxResponse has cognitive complexity 232 (threshold 15). Drivers by points: if/else 51 (161 pts), loops 16 (64 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 159). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e6192f9e6ae6534a2a4b966e25aa12915086fea8e1cd40ee6c44e0076161f7"}},{"ruleId":"D2","level":"warning","message":{"text":"offerUpdate._activeItemChanged (cognitive 182): offerUpdate._activeItemChanged has cognitive complexity 182 (threshold 15). Drivers by points: if/else 46 (146 pts), match/switch 6 (24 pts), loops 3 (8 pts), boolean chains 4 (nesting depth added 123). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd6ac9c9cb60647d278ac5d8cc3a42cafda23ceaf4c4b41cb77196e5e1b3af7"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rating.charge2 (cognitive 158): ocs_rating.charge2 has cognitive complexity 158 (threshold 15). Drivers by points: match/switch 78 (132 pts), boolean chains 26 (nesting depth added 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/ocs_rating.erl"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"89873e387aa83779721130eaa811dc01ebbec2e68dbf5a63e4c699bb934a960d"}},{"ruleId":"D2","level":"warning","message":{"text":"offerUpdate._updatePricesDialog (cognitive 121): offerUpdate._updatePricesDialog has cognitive complexity 121 (threshold 15). Drivers by points: if/else 35 (107 pts), match/switch 3 (10 pts), loops 1 (4 pts) (nesting depth added 82). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c02ca0f7124066a76b0ca04bf191ed56103206a6d54204d0ceac18c7f77e95f"}},{"ruleId":"D2","level":"warning","message":{"text":"offerAdd._addOffer::mapPrice (cognitive 120): offerAdd._addOffer::mapPrice has cognitive complexity 120 (threshold 15). Drivers by points: if/else 74 (105 pts), boolean chains 15 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (offerAdd._addOffer) 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":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b41ea8a628496afafd94a9b47802d0ef6743db28fb21d715c6197c6e31de7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"_updateOfferAlteration (cognitive 120): _updateOfferAlteration has cognitive complexity 120 (threshold 15). Drivers by points: if/else 47 (68 pts), boolean chains 46, match/switch 3 (6 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d32d7851c3e3a28f3b8b7d16e87d4691582662d68235aafd00da6438aacd6e"}},{"ruleId":"D2","level":"warning","message":{"text":"_updateAddPrice (cognitive 120): _updateAddPrice has cognitive complexity 120 (threshold 15). Drivers by points: if/else 54 (102 pts), boolean chains 9, match/switch 5 (9 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3210}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce9ff14649f483530f3e3fd66562676a35bed0543543f5666e7eeb036e8ef96"}},{"ruleId":"D2","level":"warning","message":{"text":"bucketList._getBuckets::handleAjaxResponse (cognitive 108): bucketList._getBuckets::handleAjaxResponse has cognitive complexity 108 (threshold 15). Drivers by points: if/else 30 (106 pts), loops 1 (2 pts) (nesting depth added 77). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7496c7b3527b6a9de4244c605793f60e808cd98bc908558f2af4583c1b5a56"}},{"ruleId":"D2","level":"warning","message":{"text":"productList._getProduct::handleAjaxResponse (cognitive 101): productList._getProduct::handleAjaxResponse has cognitive complexity 101 (threshold 15). Drivers by points: if/else 25 (91 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 71). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-product-list.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8c919fb433d3719370ab9599131a58f355acb222de21c150ea4dafced09b14"}},{"ruleId":"D2","level":"warning","message":{"text":"_updateProductOffer (cognitive 95): _updateProductOffer has cognitive complexity 95 (threshold 15). Drivers by points: if/else 42 (52 pts), boolean chains 43 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe768a488dceb8e078d22e9d0b153d8af73145b63267e135d3e496a24d6cf4bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_log.dia_req_and_res (cognitive 90): ocs_log.dia_req_and_res has cognitive complexity 90 (threshold 15). Drivers by points: match/switch 78, boolean chains 12. 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/ocs_log.erl"},"region":{"startLine":2766}}}],"partialFingerprints":{"codehealthFindingId/v1":"741ef4dddff0a283d787b11dd5d74903dffa5dc4525ac4af041957d5f6c56b7f"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_log.ipdr_csv (cognitive 72): ocs_log.ipdr_csv has cognitive complexity 72 (threshold 15). Drivers by points: match/switch 68, loops 4. 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/ocs_log.erl"},"region":{"startLine":4189}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d688d87347c618d1c666d2427b367d0d1d5748b067b3b24907c5478480873c"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs.update_resource (cognitive 69): ocs.update_resource has cognitive complexity 69 (threshold 15). Drivers by points: match/switch 35 (56 pts), boolean chains 10, error handling 3 (nesting depth added 21). 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/ocs.erl"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"017283087fa284983a4c6451252039c17caebe07a6694dc76aa8f25b21ce1e39"}},{"ruleId":"D2","level":"warning","message":{"text":"SigApp.refresh (cognitive 68): SigApp.refresh has cognitive complexity 68 (threshold 15). Drivers by points: if/else 51 (68 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7853e00f3e795aaa0a7d7c71c162255f159688c5a10895529198e9683be94791"}},{"ruleId":"D2","level":"warning","message":{"text":"policyList._getPolicy::handleAjaxResponse (cognitive 66): policyList._getPolicy::handleAjaxResponse has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (56 pts), loops 3 (10 pts) (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"a689cd3b7d8013337f4c53546a6767e8003800ed4e0a2a4f0fc04420963a0a96"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_usage.query_page1 (cognitive 65): ocs_rest_res_usage.query_page1 has cognitive complexity 65 (threshold 15). Drivers by points: match/switch 27 (37 pts), error handling 21 (28 pts) (nesting depth added 17). 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/ocs_rest_res_usage.erl"},"region":{"startLine":3223}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db972ae78ce5b370c79cd45450d117c7c3f580475f668ce3224aae9a269974"}},{"ruleId":"D2","level":"warning","message":{"text":"subList._getSub::handleAjaxResponse (cognitive 59): subList._getSub::handleAjaxResponse has cognitive complexity 59 (threshold 15). Drivers by points: if/else 19 (56 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-list.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bfd402f1906fddeeb460dc647d542608c678e3e9621624c56e750fc898e493"}},{"ruleId":"D2","level":"warning","message":{"text":"offerList.getOffers::handleAjaxResponse (cognitive 57): offerList.getOffers::handleAjaxResponse has cognitive complexity 57 (threshold 15). Drivers by points: if/else 14 (49 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-list.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d202be19d2b5ab69c98ea852e6996b45323a63ebcda167ad856a9cc1df92712"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs.add_resource (cognitive 55): ocs.add_resource has cognitive complexity 55 (threshold 15). Drivers by points: match/switch 30 (43 pts), boolean chains 9, error handling 3 (nesting depth added 13). 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/ocs.erl"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17de4f3bc46a6138451ef900a62a45ec79c683025888ecf7c763273d8e859b4"}},{"ruleId":"D2","level":"warning","message":{"text":"subUpdate.updateSubscriberAuthorization (cognitive 54): subUpdate.updateSubscriberAuthorization has cognitive complexity 54 (threshold 15). Drivers by points: if/else 28 (52 pts), loops 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"c479867b6a84477fedf37c3fe71f889d15b326fd9359048ab4db4e5af5453a7e"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs.adjustment (cognitive 45): ocs.adjustment has cognitive complexity 45 (threshold 15). Drivers by points: match/switch 14 (22 pts), loops 6 (19 pts), boolean chains 4 (nesting depth added 21). 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/ocs.erl"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0e79e3dda3cf6f024946e955bb031cb1c8b79f005446878e050cd70e99c5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"subAdd._addServiceResponse (cognitive 44): subAdd._addServiceResponse has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (42 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8f803ff1a2a514f417d059269c23ddcd1772fc170cb164c4bdb0501dddf080"}},{"ruleId":"D2","level":"warning","message":{"text":"offerAdd._addUpdatePriceDialog (cognitive 43): offerAdd._addUpdatePriceDialog has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (31 pts), match/switch 3 (9 pts), boolean chains 3 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b52e9e2ebeb47158e84254ee12788eeef2b969b9284a0f4328316546c93ba8"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_product.patch_product (cognitive 41): ocs_rest_res_product.patch_product has cognitive complexity 41 (threshold 15). Drivers by points: loops 4 (20 pts), match/switch 8 (16 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_product.erl"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5496c9ff69f002ffab8b21a3266b234abbf936d20da726d085cdb354184b53"}},{"ruleId":"D2","level":"warning","message":{"text":"offerAdd._addOffer (cognitive 39): offerAdd._addOffer has cognitive complexity 39 (threshold 15). Drivers by points: if/else 102 (137 pts), boolean chains 20, loops 1 (2 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (offerAdd._addOffer::mapPrice) 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":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"6918ca5f254e6034342afd80f169649f25eeab12b078f27ce733da73380c1e22"}},{"ruleId":"D2","level":"warning","message":{"text":"offerAdd._addPrice (cognitive 35): offerAdd._addPrice has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 14, match/switch 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1607a03711c6246b76dbd18ae401f091b343ecd329396be46bcde6344264ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_usage.query_start1 (cognitive 34): ocs_rest_res_usage.query_start1 has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 16 (31 pts), error handling 3 (nesting depth added 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. 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/ocs_rest_res_usage.erl"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aec4903b30719638bb5288a442b381b0c4fa30691b7a3a7fa26fb9a35645812"}},{"ruleId":"D2","level":"warning","message":{"text":"offerUpdate._updateAlterationsDialog (cognitive 34): offerUpdate._updateAlterationsDialog has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (24 pts), match/switch 3 (9 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b9802274c8916246f9adb50848fcfaa860fb6076ac268b828ed6e2e48acd92"}},{"ruleId":"D2","level":"warning","message":{"text":"subAdd._serviceAddSubmit (cognitive 34): subAdd._serviceAddSubmit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 30 (34 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd07f594640fe0dba06981ec0eaff2644c9a0b7fb1dbf514734330a4ebffaa3"}},{"ruleId":"D2","level":"warning","message":{"text":"subUpdate.updateSubscriberProduct (cognitive 34): subUpdate.updateSubscriberProduct has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb2850fef3bbe884da7c8a368cb122356fbdfb4787945d77015ab913f67ad79"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_log.ipdr_ims_voip1 (cognitive 33): ocs_log.ipdr_ims_voip1 has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 26 (33 pts) (nesting depth added 7). 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/ocs_log.erl"},"region":{"startLine":3690}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec21796ae3591ebcb331f1626197ca04cb9aa31a7f03fee71c95639528f97a20"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rating.charge3 (cognitive 33): ocs_rating.charge3 has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 15 (29 pts), boolean chains 4 (nesting depth added 14). 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/ocs_rating.erl"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"a198a09a5b028faa061a56869e45599ed5d2ac1606f64038bef89f3bdafa788a"}},{"ruleId":"D2","level":"warning","message":{"text":"accountingList._getAccounting::handleAjaxResponse (cognitive 33): accountingList._getAccounting::handleAjaxResponse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aab7c3610416783a73cce4b3f8913a5688ee9042c3429e4b2ea1d7e29d11a23"}},{"ruleId":"D2","level":"warning","message":{"text":"subUpdate.updateSubscriberBalance (cognitive 32): subUpdate.updateSubscriberBalance has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4b2d5b5948b4f27e2ec4a6188153e93a8b15805d2fe04568eb9efd67b9d558"}},{"ruleId":"D2","level":"warning","message":{"text":"rateList._getPrefixTable (cognitive 32): rateList._getPrefixTable has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (25 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 10). Most of this is not in the body itself: 9 of the 32 points are its own statements and the rest belongs to 3 function items inside it that branch (handleAjaxResponse, a function literal at line 153, a function literal at line 206). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-rate-list.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5461d0838711f21d3ad8f9f969defb71159a7da34dfc909aab226554b200c118"}},{"ruleId":"D2","level":"warning","message":{"text":"roamingList._getRoamingTable (cognitive 32): roamingList._getRoamingTable has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (25 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 10). Most of this is not in the body itself: 9 of the 32 points are its own statements and the rest belongs to 3 function items inside it that branch (handleAjaxResponse, a function literal at line 142, a function literal at line 195). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-roaming-list.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b8d5993f3b0b28721adc37a5215a4fc144a406ef2c7193907b156a5a9f6b68"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_user.patch_user (cognitive 31): ocs_rest_res_user.patch_user has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 9 (20 pts), error handling 3 (10 pts), boolean chains 1 (nesting depth added 18). 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/ocs_rest_res_user.erl"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6629677638d01dbcf9065488c1767653e2a6dcc098b59b49e2510965268fc95"}},{"ruleId":"D2","level":"warning","message":{"text":"subAdd._addProductResponse (cognitive 31): subAdd._addProductResponse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b1420ffb57ccc45e9143188d835a547500bfcda69546b38a5e019864103a09"}},{"ruleId":"D2","level":"warning","message":{"text":"userList._getUsers (cognitive 31): userList._getUsers has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 9). Most of this is not in the body itself: 10 of the 31 points are its own statements and the rest belongs to 4 function items inside it that branch (handleAjaxResponse, a function literal at line 149, a function literal at line 206, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-user-list.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7029eaefa08443891dae9f82d840bafc4a64becc6ff04d86feb01af3e6c490"}},{"ruleId":"D2","level":"warning","message":{"text":"policyAdd._add (cognitive 31): policyAdd._add has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-add.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"82babef1787103b87d1abbffd6813d48baf25dad765f07238f5cd0d97b9493b6"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_service.patch_service (cognitive 30): ocs_rest_res_service.patch_service has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 9 (19 pts), error handling 3 (7 pts), boolean chains 4 (nesting depth added 14). 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/ocs_rest_res_service.erl"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e8599222d2d1d94ecf91a38f47903b678c7ac5466d5f4dfbe3c4b8c816446a"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_nrf.rate2 (cognitive 29): ocs_rest_res_nrf.rate2 has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 17 (23 pts), boolean chains 6 (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/ocs_rest_res_nrf.erl"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1b6dc44c654698290bca25a40c1e7e5b3b3a302edd2869db5e227b535c82a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_nrf.rate (cognitive 28): ocs_rest_res_nrf.rate has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 18 (22 pts), loops 2 (6 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/ocs_rest_res_nrf.erl"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"55da2a9528234eccafbbd0943009458a84ad823ffdd0c65556021363f9fb50a9"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_mib.dcca_peer_info_get_next (cognitive 27): ocs_mib.dcca_peer_info_get_next has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 5 (11 pts), loops 3 (10 pts), error handling 2 (6 pts) (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_mib.erl"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3c49534deddb2449850adb702619e8e116ffc07f4b87356b51fc31f20b75c5"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rating.rate1 (cognitive 27): ocs_rating.rate1 has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 22, match/switch 2 (3 pts), error handling 2 (nesting depth added 1). To reduce it, name the conditions \u2014 but note WHERE they are: these tests sit in guard sequences, and a guard is a restricted expression sublanguage that allows neither binding a local nor calling a function you wrote, so neither of those moves is available in place. Move the decision out of the guard instead: keep one clause with a permissive guard, compute the compound test in the body through named predicate functions, and dispatch on their result. Where the clauses genuinely differ by pattern rather than by test, keep the patterns and lift only the comma-conjunctions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ffdc10d70d0bf2a48db8aedff739887a9d9ed07301920a31f870143f04d08c"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_product.patch_offer (cognitive 26): ocs_rest_res_product.patch_offer has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 9 (17 pts), error handling 3 (8 pts), boolean chains 1 (nesting depth added 13). 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/ocs_rest_res_product.erl"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"5469725500b2d899bf360ef7ba8ad49e182236aedc5a7bf2cdb7171a4b50592e"}},{"ruleId":"D2","level":"warning","message":{"text":"balanceList._getBalances (cognitive 24): balanceList._getBalances has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (handleAjaxResponse, a function literal at line 210, a function literal at line 257, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-balance-list.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75edfee92f0355c76149238f8110f10f2782e2fe55bb597947817ec56aa4d67"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rating.authorize2 (cognitive 23): ocs_rating.authorize2 has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, match/switch 7 (9 pts), error handling 1 (nesting depth added 2). To reduce it, name the conditions \u2014 but note WHERE they are: these tests sit in guard sequences, and a guard is a restricted expression sublanguage that allows neither binding a local nor calling a function you wrote, so neither of those moves is available in place. Move the decision out of the guard instead: keep one clause with a permissive guard, compute the compound test in the body through named predicate functions, and dispatch on their result. Where the clauses genuinely differ by pattern rather than by test, keep the patterns and lift only the comma-conjunctions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3ab851a79c8d0945c6eb30eb90006d9095bc659a55a324b5e90c2bea4a0751"}},{"ruleId":"D2","level":"warning","message":{"text":"clientList._getClient (cognitive 23): clientList._getClient has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 8 of the 23 points are its own statements and the rest belongs to 4 function items inside it that branch (handleAjaxResponse, a function literal at line 207, a function literal at line 255, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-list.js"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"238288fc07c31b10476a762dc4df0c84bee7dfe48d2eb55eebffa3b6fa5e2e6a"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_log.dia_req_and_res (cognitive 22): ocs_log.dia_req_and_res has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 18, boolean chains 4. 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/ocs_log.erl"},"region":{"startLine":2587}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb18c3746c0b3318938e5271ec6620c11a678f7bbd36f831cf2179408a1faccb"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_balance.query_filter (cognitive 21): ocs_rest_res_balance.query_filter has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11 (21 pts) (nesting depth added 10). 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/ocs_rest_res_balance.erl"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3cc19dee21e86c8f3c8812a9deca37fcfb399fd561fcab3440e7ad103026f9"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_client.query_filter (cognitive 21): ocs_rest_res_client.query_filter has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11 (21 pts) (nesting depth added 10). 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/ocs_rest_res_client.erl"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98dba94ca3df5c395b70846e5a6902e0208c79ff0af76809314f86812b4a6fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_product.query_filter (cognitive 21): ocs_rest_res_product.query_filter has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11 (21 pts) (nesting depth added 10). 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/ocs_rest_res_product.erl"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70f6fc448705b16bf617c668bc74f4ae8eb568bc1df119d41bb9b4979b6363e"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_resource.query_filter (cognitive 21): ocs_rest_res_resource.query_filter has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11 (21 pts) (nesting depth added 10). 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/ocs_rest_res_resource.erl"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed1f700a815eb2f3fc7683bc33c56824242fe23893ec45c72c8463670429599"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_role.get_roles1 (cognitive 21): ocs_rest_res_role.get_roles1 has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11 (21 pts) (nesting depth added 10). 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/ocs_rest_res_role.erl"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c30c4577071fcea19158decbfecc69d8ffc4c48430ba61bcc7b8472d12bf09"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_service.query_filter (cognitive 21): ocs_rest_res_service.query_filter has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11 (21 pts) (nesting depth added 10). 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/ocs_rest_res_service.erl"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b11e0be8d3ff4afc758db1afb521e1d67cdca7b75ab8457db2ca8a5d29e00b"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_usage.get_usages1 (cognitive 21): ocs_rest_res_usage.get_usages1 has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11 (21 pts) (nesting depth added 10). 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/ocs_rest_res_usage.erl"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"63224e21ef017165a3bdb94c249cb4590326033bdbf28915ad6c428a2820e278"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_user.get_users1 (cognitive 21): ocs_rest_res_user.get_users1 has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 11 (21 pts) (nesting depth added 10). 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/ocs_rest_res_user.erl"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56f55ea3a11abb4ad867fee73236e795af182816860d68386915a4158db2542"}},{"ruleId":"D2","level":"warning","message":{"text":"accessList._getAccess::handleAjaxResponse (cognitive 21): accessList._getAccess::handleAjaxResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-access-list.js"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4791604762c4774f48fb1b64de9bc0ea4f9d099d28c775f6ec61efc1b6d8c97"}},{"ruleId":"D2","level":"warning","message":{"text":"ipdrListVoip.getLogContentResponseVoip (cognitive 21): ipdrListVoip.getLogContentResponseVoip has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 3 function items inside it that branch (handleAjaxResponse, a function literal at line 299, a function literal at line 275). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-ipdr-list-voip.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a3cdfa6bfbd5827ed29d8a0fb1fa57d553b25d457cf339c7debb7f59718d04"}},{"ruleId":"D2","level":"warning","message":{"text":"_bucketAddSubmit (cognitive 21): _bucketAddSubmit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-add.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4068fb654f3053588c399ee5c644b83b8950b6eaa618f829e1cdedf78a121c"}},{"ruleId":"D2","level":"warning","message":{"text":"getLogContentResponse (cognitive 21): getLogContentResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 4 function items inside it that branch (handleAjaxResponse, a function literal at line 397, a function literal at line 372, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-ipdr-list-wlan.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"bedec3c68235dc2b89966872c7fec57ae88bbaa5ff1196d03af0db9c67f5218d"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rating.tariff_rate (cognitive 20): ocs_rating.tariff_rate has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 9 (14 pts), boolean chains 6 (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/ocs_rating.erl"},"region":{"startLine":3754}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86f6d7555890059aa82b5423b8dcc545ee3a3ea4165226404111eb86e377a61"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest.format_problem1 (cognitive 20): ocs_rest.format_problem1 has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 11 (20 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/ocs_rest.erl"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf88db15f8e795e8ffaafb11a99c82f76febd8c039e38224ebb8a22b4cf5542"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_product.product (cognitive 20): ocs_rest_res_product.product has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 5 (9 pts), boolean chains 8, loops 2, error handling 1 (nesting depth added 4). 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/ocs_rest_res_product.erl"},"region":{"startLine":2250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49be7c936a9c8e795b90c53aeef8a5e92d59ed254ee3caafdde9eb2a3855496"}},{"ruleId":"D2","level":"warning","message":{"text":"userUpdate._updateUserSubmit (cognitive 20): userUpdate._updateUserSubmit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-user-update.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dd66d7e8f170e207e7462204e55437329382a760c10d540c5599c119e3fe10"}},{"ruleId":"D2","level":"warning","message":{"text":"periodUpdate._updatePeriodRow (cognitive 20): periodUpdate._updatePeriodRow has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20. Of this number, 10 points are the body\u0027s own statements and 10 belong to 5 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-update.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"6845f4971183304891359636cc9b5863df1bc49c5f530bb894ec7aa8e8faeff1"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_mib.dcca_peer_stats_get_next (cognitive 19): ocs_mib.dcca_peer_stats_get_next has cognitive complexity 19 (threshold 15). Drivers by points: loops 3 (10 pts), match/switch 4 (7 pts), error handling 1 (2 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_mib.erl"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded606afc027ca943f8f3644b402ab84e2d4f9cbbf9da794f9270e4f92e3bad8"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rating.rate (cognitive 19): ocs_rating.rate has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 7 (13 pts), loops 1 (4 pts), boolean chains 2 (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/ocs_rating.erl"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9725d076f2c1c47b54550a43162f61a0fa3190fb782e647e7a45eeaf3898fdde"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_scheduler.product_charge1 (cognitive 19): ocs_scheduler.product_charge1 has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 6 (14 pts), loops 1 (5 pts) (nesting depth added 12). 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/ocs_scheduler.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a499b209845765ea474301922774609ac41d8d085079923cd8184682d8bea1"}},{"ruleId":"D2","level":"warning","message":{"text":"offerAdd._addAlteration (cognitive 18): offerAdd._addAlteration has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, match/switch 3 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"34888bb00e0df0e73f810ac4221277fef9846f62483ec73f83ffb8a119017667"}},{"ruleId":"D2","level":"warning","message":{"text":"clientUpdate.updateClientAuth (cognitive 18): clientUpdate.updateClientAuth has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0f28781e6dd7a8033f732e6912b8cf2efe65cf90de2b1abfab7ece87b19c19"}},{"ruleId":"D2","level":"warning","message":{"text":"periodList._getPeriodTable::handleAjaxResponse (cognitive 18): periodList._getPeriodTable::handleAjaxResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-list.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"03980d274539fe457e45f48b52156be5060c5e2efe6f3d7bab8a4ec02640e96c"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rating.charge (cognitive 17): ocs_rating.charge has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (12 pts), loops 1 (4 pts), boolean chains 1 (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/ocs_rating.erl"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de4ff76a877e407f7092fb2ae8abdb8d9eaf32c6d231f7fcc5f49cca8da31e1"}},{"ruleId":"D2","level":"warning","message":{"text":"ocs_rest_res_resource.patch_resource (cognitive 17): ocs_rest_res_resource.patch_resource has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 7 (12 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 7). 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/ocs_rest_res_resource.erl"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf066c31af416301c73e7ca7884eae6b392bad811ef542edd020cf5e68987215"}},{"ruleId":"D2","level":"warning","message":{"text":"user_default.peer_stat1 (cognitive 17): user_default.peer_stat1 has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 10 (15 pts), boolean chains 2 (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/user_default.erl"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"996b817937de2b7f966e19865ae929bc1786779129f3ca58c6613b8fce818a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"_loadingChanged (cognitive 17): _loadingChanged has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f0fb184be9c8fbaa8d61e78955e9bf0262e260515ea088950993d7dab08702"}},{"ruleId":"D2","level":"warning","message":{"text":"httpList._getHttpResponse (cognitive 16): httpList._getHttpResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (handleAjaxResponse, a function literal at line 204). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-http-list.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"74018f972ce8dea45e13372237ae72669c2102ce85626d0245a94d8151c253bf"}},{"ruleId":"D2","level":"warning","message":{"text":"SigApp._routePageChanged (cognitive 16): SigApp._routePageChanged has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b55457126eb5d8c6e80f4d5aba4190987356739d0e035ef7f91e60f1410b70c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_log.erl: FileTooLong \u2014 6729 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 356 functions. The bar is 500 significant lines; this is 6229 over it, 13.46\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/ocs_log.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f89e150f590c226af3afe3df31af3214b8fa10a0bf6e9c636e39902d7a109f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: offerUpdate: ClassTooLong \u2014 3354 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 2954 over it, 8.39\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf1261d7f823b240166f5299b2075757bb91bfef1fe6c6033fb28372be8f097"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rest_res_usage.erl: FileTooLong \u2014 4147 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 160 functions. The bar is 500 significant lines; this is 3647 over it, 8.29\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/ocs_rest_res_usage.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fa3bd53c83086fc3a777bc73797d7c528ab4b5c693b51789c07809bdd0ee14"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerAdd.template: MethodTooLong \u2014 template runs 807 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 707 over it, 8.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bc5e9c199ce82ba374e00b9ac0c47ec445d0d69ba37da21c8a01a667004608"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerUpdate.template: MethodTooLong \u2014 template runs 768 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 668 over it, 7.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5468aea46dbe907b28ea9a67abc5e9462f378fa13c7ec23e116e4209d063ad7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rating.erl: FileTooLong \u2014 3591 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 71 functions. The bar is 500 significant lines; this is 3091 over it, 7.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/ocs_rating.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"509fc64b2c5f3d7e929b0605467f99f4ae3c4ebe5f85845be647e42cc905b98b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs.erl: FileTooLong \u2014 3510 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 154 functions. The bar is 500 significant lines; this is 3010 over it, 7.02\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/ocs.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7467be25440a9b661fe624956a1a336bfabba8cc3abc066bd4cec8eb450943"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sig-offer-update.js: FileTooLong \u2014 3372 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 99% of them inside a single declaration: offerUpdate (32-3798). The bar is 1500 significant lines; this is 1872 over it, 2.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b83654b8b037973d298d73e5bdcc949ab836147b556e9d02d0fdf2505145dce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerUpdate._updateOfferPrice: MethodTooLong \u2014 _updateOfferPrice runs 656 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 556 over it, 6.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1951}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b15c43734f3c236867c9d73c11e7b03531f2e047948217b7b152d6754bbb198"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: offerAdd: ClassTooLong \u2014 2091 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 1691 over it, 5.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0802d5bd94bb7166031a7bc442f4c1f12512de9b8e3f4e7a9f4adfd515f4aa6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rest_res_product.erl: FileTooLong \u2014 2393 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 87 functions. The bar is 500 significant lines; this is 1893 over it, 4.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/ocs_rest_res_product.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"539bd12d1f68f7cadb63f98d6578ca46840271f8f60d08090580df6519680372"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: dashBoard: ClassTooLong \u2014 1863 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 1463 over it, 4.66\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d05dda74f69cfb2900aeb62a18e69ad696d251c2d7d514303229c5a9f0cc47"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_diameter_3gpp_ro_nrf_app_cb.erl: FileTooLong \u2014 2238 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 77 functions. The bar is 500 significant lines; this is 1738 over it, 4.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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadb4a667c8c309f324e0217a1b4c7249a2a8346916e9753f09d5bb45ebe9dc4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: subAdd.template: MethodTooLong \u2014 template runs 439 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 339 over it, 4.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d2c47ebc1aae8af5f0a5c1d521dcd47c023b54fa077c713e073f061d3855c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerAdd._addOffer: MethodTooLong \u2014 _addOffer runs 432 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 332 over it, 4.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"6379e6d2018039545f541a904a7ddd01cce686d17131add9385a0272318e440a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sig-offer-add.js: FileTooLong \u2014 2108 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 99% of them inside a single declaration: offerAdd (31-2374). The bar is 1500 significant lines; this is 608 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0c31162e6f51c12cfead760e03638556302db36099d5ba9170071d6cd28efc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sig-dashboard.js: FileTooLong \u2014 1879 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 99% of them inside a single declaration: dashBoard (29-2074). The bar is 1500 significant lines; this is 379 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd54305ca8e4f61a9868c5c8e68df00550781a3f9b8326ec7b496d077573644"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SigApp.template: MethodTooLong \u2014 template runs 343 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 243 over it, 3.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce51487f36b3df42141ddc1d9fc0c49f1cf57394cf33f52e35032740f2397538"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_diameter.erl: FileTooLong \u2014 1706 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1206 over it, 3.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/ocs_diameter.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c8111abc28349df0870a22f476881ac189052b6455d98721f64e6acb07d074"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerUpdate._updateAddPrice: MethodTooLong \u2014 _updateAddPrice runs 323 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 223 over it, 3.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4df4c9d72ec6ca3e4069809df2c009adef6c69108c8e2bd9838f9843be80e89"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: policyList.template: MethodTooLong \u2014 template runs 312 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 212 over it, 3.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d6334e544d7e23ebfb848486552a7b72b6a229719d945e07401e63932379a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: subUpdate.template: MethodTooLong \u2014 template runs 312 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 212 over it, 3.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b48444eac036851196030a5fa1fa52d6ff614389f825d71ad606dfcf7a5ad77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerUpdate._updateOfferAlteration: MethodTooLong \u2014 _updateOfferAlteration runs 293 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 193 over it, 2.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d87e7f86bc6576a55f11d588b1092ca710c5a75153df6bd74798fe1d2cade22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_eap_akap_fsm.erl: FileTooLong \u2014 1415 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 915 over it, 2.83\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/ocs_eap_akap_fsm.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e263f08f2b4822e63553cbd6b96c3e47d6787660cf74b52f905b3802e553f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_eap_aka_fsm.erl: FileTooLong \u2014 1392 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 892 over it, 2.78\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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85c48ca873406931e72bbd256c25d2a61989ca5a7c2d52ac20b891e08e2474d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rest_res_nrf.erl: FileTooLong \u2014 1340 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 65 functions. The bar is 500 significant lines; this is 840 over it, 2.68\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/ocs_rest_res_nrf.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"580134241ccb00a55552631c632cc611f1e927eca4dcb0af51fe0d3b147abbb8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerUpdate._updateProductOffer: MethodTooLong \u2014 _updateProductOffer runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb2c17bc029e5dc29c14eaba1ba2cdebbfe0e01813113f974917a86cda30e46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_eap_ttls_fsm.erl: FileTooLong \u2014 1265 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 765 over it, 2.53\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/ocs_eap_ttls_fsm.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b5a6ae24929c1fdf2b1055df96697224df4520616f042e12d91ca2676d13a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rest_res_resource.erl: FileTooLong \u2014 1245 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 59 functions. The bar is 500 significant lines; this is 745 over it, 2.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/ocs_rest_res_resource.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a21dc54be67aa5034f3362b4a5bc986d85db71a9abf131c03154eca2dffebde"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_app.erl: FileTooLong \u2014 1198 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 85 functions. The bar is 500 significant lines; this is 698 over it, 2.40\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/ocs_app.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8507e17878ef463696b0c2cfecbb662f98fa77d9814ce09feda7160505ba8f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: dashBoard._healthChart: MethodTooLong \u2014 _healthChart runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3330e13e6e63ce79269aa00be3f33953475552930681c3d86780cf405bc5b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_diameter_3gpp_ro_application_cb.erl: FileTooLong \u2014 1184 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 684 over it, 2.37\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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57717f20a3b2887b97f52b09c79e708d26a05643205116d2078f1c181b8ce7ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ipdrListWlan.template: MethodTooLong \u2014 template runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-ipdr-list-wlan.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df8aee9942d77573f69b0e05a2d394e3362de9ecb85bee7a1155153572525fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rest_res_balance.erl: FileTooLong \u2014 1135 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 49 functions. The bar is 500 significant lines; this is 635 over it, 2.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/ocs_rest_res_balance.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03c15888926f6b14112a03d70902d53dec17fadf72e4d3ef19e59084ef0cfab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerUpdate._activeItemChanged: MethodTooLong \u2014 _activeItemChanged runs 227 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 127 over it, 2.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"2caaf6cb70b4eebe92ff6711c85593b295c398cfa6b81e352ae7ffc31b045a50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_eap_pwd_fsm.erl: FileTooLong \u2014 1127 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 627 over it, 2.25\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/ocs_eap_pwd_fsm.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7474d3fdb2175362a97352ba51bea2d2509c6e8ee875f796cc53ef09aa11e61c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: accountingList.template: MethodTooLong \u2014 template runs 219 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 119 over it, 2.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd94664764bf5e6c9d040b599806c23966d904fed365a0b186ad09ef1be7662"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: subAdd: ClassTooLong \u2014 823 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 423 over it, 2.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba9977481da0dd9d6e3316882562c658dfd1bc6d9488f042eb999835b0e3f75"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: subUpdate: ClassTooLong \u2014 768 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 368 over it, 1.92\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"909f8443563be215dfac9dcd6999ac307c9d67aff4c9c0770d2aa171bb839c34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: dashBoard.template: MethodTooLong \u2014 template runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b61b50f7f8b7828447e0be2e47cb0d59d429612ba96f50b2dc7bd4884e4e59"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rest_res_service.erl: FileTooLong \u2014 906 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 406 over it, 1.81\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/ocs_rest_res_service.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"926d0eba10940e44eaacec2f6241c80aea5fa7de6c15d0670c0dcfcaabc4d31e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SigApp: ClassTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 316 over it, 1.79\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6937668949b3979f7e4822393c46dc900ca8f9f361455ac11acbdb6248740a9d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerAdd.template: MethodTooLong \u2014 template runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-add.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"282357512bd50eaf6472e3adba983f1094f995fa29abac1dc4688333189493a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: dashBoard.draw_nrf: MethodTooLong \u2014 draw_nrf runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2549ca43ba7ed63faf786b952983859516cbf48c51e86ea9a741532f112c7eae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: dashBoard.draw_credit: MethodTooLong \u2014 draw_credit runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a95c1ff50b40e7b30acf5bb192dade1497466862d8e1182d7c0fed25fe9a9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sig-sub-add.js: FileTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: subAdd (31-945). The bar is 500 significant lines; this is 340 over it, 1.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c7bff91e9df4e839f29522a07b212c669b9e9f90254d0dae278d37bcc1e56e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: policyList: ClassTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 262 over it, 1.66\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf09155d725d14864642db5508b4e198b6d8c45679c3479ed8392b8386da2ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rest.erl: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 42 functions. The bar is 500 significant lines; this is 320 over it, 1.64\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/ocs_rest.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb64849710397f7b6eaa5ce4cba7c5bee1b93165dd546ca3dc33d29a943f015"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/user_default.erl: FileTooLong \u2014 818 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 37 functions. The bar is 500 significant lines; this is 318 over it, 1.64\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/user_default.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8843e81a0a2936473f9ccd40bfeeab341c7940abb892aab78253c58b0e7fadb4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerUpdate._updatePricesDialog: MethodTooLong \u2014 _updatePricesDialog runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"8685a49fda8b802ad32a7796cdb9deca0167c4bcd4749a0dc9ef4f8b2c3d16a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sig-sub-update.js: FileTooLong \u2014 785 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: subUpdate (31-917). The bar is 500 significant lines; this is 285 over it, 1.57\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34fafd9af1404d9cc1e850ed0fb3390b99d12fb112b69a3026b21a71a2f2be8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: clientUpdate.template: MethodTooLong \u2014 template runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14ea75c7b50f72fab05005995b43d44548c252fae578c531378600d631f951c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: bucketList.template: MethodTooLong \u2014 template runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bcda197c5a43870350e97091f560c53afbc190884d1594eb5d19c2770470de"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ipdrListVoip.template: MethodTooLong \u2014 template runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-ipdr-list-voip.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb02b52ad1a06c7315c89ae4ae19afe7f1a00b58e38a9c3d80b49276bbe55be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sig-app.js: FileTooLong \u2014 738 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SigApp (42-868). The bar is 500 significant lines; this is 238 over it, 1.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9208623ad82cc2ac3b69177763ceef5b38f2a95ca8c3d2fad2670cd7c103d01b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: productAddClass.template: MethodTooLong \u2014 template runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-product-add.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"084a8978df88a25f7cff21121c014f089836bbb1fe84e2661629bee9c8d1b7e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: clientAdd.template: MethodTooLong \u2014 template runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-add.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f43d82868de08cfc065dde48406bfa7fbd1eca443e35d1b11f9008aabfe3e1b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: subUpdate.updateSubscriberAuthorization: MethodTooLong \u2014 updateSubscriberAuthorization runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"55558729ce23be84f6cf551f2943ac625a2413b4d2bcf6c6568f337b9faadd92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_mib.erl: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 31 functions. The bar is 500 significant lines; this is 186 over it, 1.37\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/ocs_mib.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"530c6c62c86246353ec0713202abbcc512fc5009dd45726042e52f2643b1bf26"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: periodUpdate.template: MethodTooLong \u2014 template runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-update.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfef4707d42186312916fc04702a0f6499cb552a6bcae52e1431b2f368ef9a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sig-policy-list.js: FileTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: policyList (30-792). The bar is 500 significant lines; this is 178 over it, 1.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f00883addb47985f7b61d7940b42dff3fddf40dbe3c7c6264f7bc2a7d8f92d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: policyAdd.template: MethodTooLong \u2014 template runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-add.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d0463490ce1e048a48f6a389d26b54a6a64274a247de7a83f989829171896e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_diameter_auth_port_server.erl: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 167 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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49d1f1735d065b98023daa708cfe5baf82205eb6001876114a2d22dae7b321f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_eap_aka_auc_fsm.erl: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 139 over it, 1.28\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/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45024efc92e8bb3469be965b2617db82e7b9b123ddd58517c1695936dc009189"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: dashBoard.draw_sched: MethodTooLong \u2014 draw_sched runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3eef9ab9ef9339729c2e50e31efd20d90ac7ca5476d1b9e238b9b3fc2ef7d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: dashBoard.draw_dia: MethodTooLong \u2014 draw_dia runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bfb90b62413b227d28add622692a34c6502e646f13cade3f98ca821e26225e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_eap_codec.erl: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 125 over it, 1.25\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/ocs_eap_codec.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f46242cbfa12dc4c4f0dc613ac08731dd5a92ae4547d4fe552abb184d8be97"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: subAdd._serviceAddSubmit: MethodTooLong \u2014 _serviceAddSubmit runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdca2bf052246ae2b440014c552a261d3ed335671c0a17164f11df91d3759d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: accountingList._getAccounting: MethodTooLong \u2014 _getAccounting runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"076f1ddc94348d34e985c8eb6134754654b9eb5200468f1d79608a2bcbf1ea1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_diameter_3gpp_s6a_application_cb.erl: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 106 over it, 1.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/ocs_diameter_3gpp_s6a_application_cb.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af4e215cb0b6beca615aee12cd975f97869d14f714d5b5589361eeee2b622dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: httpList.template: MethodTooLong \u2014 template runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-http-list.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91c1c67a3216be2311eb17ae489e65a8bacfdc628f458fa46eaa8a9ad7fa77e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerAdd._addPrice: MethodTooLong \u2014 _addPrice runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb3abbed790709254c3abf5d6723aa1a27f8420c8e6f77e8d9cb83662fa703a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_rest_res_client.erl: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 92 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/ocs_rest_res_client.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"651d44b10b248ae20e940c63fba82a0112deafc8d11fee4596cc014bce9783de"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: bucketList._getBuckets: MethodTooLong \u2014 _getBuckets runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"88353e9ee9abcc5feb962fbf56ad49556714cae0b89f7f4cf3029d3f790a51bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: dashBoard.draw_sta: MethodTooLong \u2014 draw_sta runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50c9a552afcc5752c6439aa1d786d96f97e7bc67dddc36183e0862479cc33b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SigApp.refresh: MethodTooLong \u2014 refresh runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29e5d7ed225d84472d202ce50610b5e3e0b1df5755f79f3d48f97dcf18143d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: balanceList.template: MethodTooLong \u2014 template runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-balance-list.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8650ae219b1df8b1ed181a09fbe4bbc926a2dfc326c6964f0f56edaec2d7ebc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: policyList._update: MethodTooLong \u2014 _update runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"720e312b03ac6b5b920040423cab49640c5fd85bd9f44d9d1e143d8e369fdd78"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: clientList.template: MethodTooLong \u2014 template runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-list.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e94d4306b320c750161cae7a1e8c53755a896fe26cd19511f887a886927a168"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: offerUpdate: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ac1c65ed2a656e9efd1184ec3b5fccc1202dfc651138069d341deab978b970"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerAdd.properties: MethodTooLong \u2014 properties runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2ad4f8f1d5bedc2e0846b8001abd2e21500606216491e986f766b1d1645431"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: dashBoard: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0159e8eeebd7061482827f2f73dd670fa82765cb3331693c26a1b2f9f035f184"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: productList._getProduct: MethodTooLong \u2014 _getProduct runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-product-list.js"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaa361e9d319b9003b0b8b763675c9364efc973d1e11b300f1a5a8b5925bab6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: subList._getSub: MethodTooLong \u2014 _getSub runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-list.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"408f5bff3509589560ea4c32fe61d1d1d589b4c1d8f7b457542b486dbc5750b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: policyList._getPolicy: MethodTooLong \u2014 _getPolicy runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"466e5c51c1b460aa6417d99eb7eda91a9a11d5a78e664b93ded764da9b2698d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: productList.template: MethodTooLong \u2014 template runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-product-list.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5dbbc0bac2c3c103d7a02f5efdf8067e31e4a7ec63e17f9eadb81d451fa2948"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ocs_simple_auth_fsm.erl: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 19 over it, 1.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/ocs_simple_auth_fsm.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d058a1f01f5cc17f9c321e3932b752a95921f10f63dda08404f6ca65d98b41"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: offerUpdate.properties: MethodTooLong \u2014 properties runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c29a17d545b0f8f3cb80145d2c16a7842331c2e9507e29b26564832ff847610"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: periodAdd.template: MethodTooLong \u2014 template runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-add.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd764f4973396247f5ed5ff88b73954336b0536106d967072c661f8452bdf157"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: accountingList: ClassTooLong \u2014 405 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 5 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c266ba0fc85391ab536065085e880eb75220b3574e1692891f605d71796286c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 26 shared lines): src/ocs_rest_res_balance.erl:1043-1098 | src/ocs_rest_res_client.erl:441-496 | src/ocs_rest_res_product.erl:2402-2457 | src/ocs_rest_res_resource.erl:391-446 | src/ocs_rest_res_role.erl:144-197 | src/ocs_rest_res_service.erl:833-888 | src/ocs_rest_res_usage.erl:122-177 | src/ocs_rest_res_user.erl:69-122 \u2014 These 8 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d3720311ed0b5afa388359175ce12b8be4e4a1bf4527dffc59f9af088ffb26"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 17 shared lines): src/ocs_rest_res_balance.erl:1110-1175 | src/ocs_rest_res_client.erl:508-569 | src/ocs_rest_res_resource.erl:449-510 | src/ocs_rest_res_role.erl:355-378 | src/ocs_rest_res_service.erl:900-961 | src/ocs_rest_res_usage.erl:3223-3478 | src/ocs_rest_res_user.erl:470-494 \u2014 These 7 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e546e5a1bdc8459187de82d41ea501227f75a15ad7be37a657d6530d696916"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 12 shared lines): src/ocs_rest_res_balance.erl:1110-1175 | src/ocs_rest_res_client.erl:508-569 | src/ocs_rest_res_product.erl:2469-2533 | src/ocs_rest_res_resource.erl:449-510 | src/ocs_rest_res_service.erl:900-961 | src/ocs_rest_res_user.erl:470-494 \u2014 These 6 members are variants of one another: a block of 12 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72a217922a187e98c111df8955bff57a4bd1b87dbfcfaae3c8bddf6c4b3803c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 14 shared lines): src/ocs_diameter_3gpp_s6b_application_cb.erl:186-204 | src/ocs_diameter_3gpp_sta_application_cb.erl:200-217 | src/ocs_diameter_3gpp_swm_application_cb.erl:199-216 | src/ocs_diameter_3gpp_swx_application_cb.erl:192-210 \u2014 These 4 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_s6b_application_cb.erl"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeeea66744090917822ac7f7923d098e1979a92844e9dbf6ba24209d79b1e3b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 13 shared lines): src/ocs_eap_aka_fsm.erl:540-588 | src/ocs_eap_aka_fsm.erl:830-922 | src/ocs_eap_akap_fsm.erl:553-605 | src/ocs_eap_akap_fsm.erl:849-940 \u2014 These 4 members are variants of one another: a block of 13 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_eap_aka_fsm.erl"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba22b3d94dd9aa00d41896bde7c53f70adf522846e2f335d421197e023fc5de"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 38 shared lines): src/ocs_rest_res_product.erl:521-612 | src/ocs_rest_res_product.erl:662-748 | src/ocs_rest_res_service.erl:224-341 \u2014 These 3 members are variants of one another: a block of 38 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_product.erl"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37a2537afb8497c9b048df4f126b4546f111b09f1db1c48341eef970a49a618"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (145 shared lines): src/ocs_eap_aka_fsm.erl:1259-1417 | src/ocs_eap_akap_fsm.erl:1277-1435 \u2014 These two members are variants of one another: 145 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc81b2a4228b04e4ccef122e363f699c5f8471f1d1417996de641af8b75037b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (90 shared lines): src/ocs.erl:1817-2026 | src/ocs.erl:2039-2303 \u2014 These two members are variants of one another: 90 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/ocs.erl"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b23c60a7d66e1664690cdaa18eae2e7e32024fe3549b4dbc66a99c8eee653fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (69 shared lines): src/ocs_eap_aka_fsm.erl:369-461 | src/ocs_eap_akap_fsm.erl:375-472 \u2014 These two members are variants of one another: 69 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd74b64bea104326e13fc90deceec7146323a12c08e9ef876ff60284dec9db40"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (56 shared lines): src/ocs_rating.erl:142-251 | src/ocs_rating.erl:471-555 \u2014 These two members are variants of one another: 56 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/ocs_rating.erl"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb503101694887f2cd1713e09129a16ced680d703e5c849ad3f840c19c4d34e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): src/ocs_pgw_fsm.erl:236-308 | src/ocs_pgw_fsm.erl:320-415 \u2014 These two members are variants of one another: 46 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/ocs_pgw_fsm.erl"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffa341fd75d7b92824de84e28ac76a034b99a4e76986c4e869a8f88a649d11d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): src/ocs_rating.erl:2276-2368 | src/ocs_rating.erl:2370-2476 \u2014 These two members are variants of one another: 27 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/ocs_rating.erl"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"857a7526d21546566b390717d40eb8948ee699c23bbfc1948aee3ef0d12c2e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (24 shared lines): src/ocs_rest_res_nrf.erl:234-305 | src/ocs_rest_res_nrf.erl:359-437 \u2014 These two members are variants of one another: 24 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/ocs_rest_res_nrf.erl"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a476d9a5e127dbbcab5fcb5e0762efe5db6fb9bef73daf99f86f42b6610779b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (18 shared lines): src/ocs_diameter_auth_port_server.erl:640-705 | src/ocs_radius_auth_port_server.erl:455-524 \u2014 These two members are variants of one another: 18 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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"328387bf4872b7f327397e210cf0ec56531e2c2b723fce5aacd76242d7372f7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (27 members, 50\u002B identical tokens): src/ocs_rest_res_usage.erl:1120-1128 | src/ocs_rest_res_usage.erl:1142-1150 | src/ocs_rest_res_usage.erl:1164-1172 | src/ocs_rest_res_usage.erl:1174-1182 | src/ocs_rest_res_usage.erl:1184-1192 | src/ocs_rest_res_usage.erl:1194-1202 | src/ocs_rest_res_usage.erl:1204-1212 | src/ocs_rest_res_usage.erl:1214-1222 | src/ocs_rest_res_usage.erl:1224-1232 | src/ocs_rest_res_usage.erl:1234-1242 | src/ocs_rest_res_usage.erl:1256-1264 | src/ocs_rest_res_usage.erl:1266-1274 | src/ocs_rest_res_usage.erl:1276-1284 | src/ocs_rest_res_usage.erl:1286-1294 | src/ocs_rest_res_usage.erl:1296-1304 | src/ocs_rest_res_usage.erl:1306-1314 | src/ocs_rest_res_usage.erl:1316-1324 | src/ocs_rest_res_usage.erl:1326-1334 | src/ocs_rest_res_usage.erl:1336-1344 | src/ocs_rest_res_usage.erl:1346-1354 | src/ocs_rest_res_usage.erl:1380-1388 | src/ocs_rest_res_usage.erl:1423-1431 | src/ocs_rest_res_usage.erl:1465-1473 | src/ocs_rest_res_usage.erl:1521-1529 | src/ocs_rest_res_usage.erl:1531-1539 | src/ocs_rest_res_usage.erl:1576-1584 | src/ocs_rest_res_usage.erl:1598-1606 \u2014 These 27 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 27 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 27 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3a615ce9c0b03cd606b79a6f661decc7d005a98bc6ea48bc9163a1695bf997"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): src/mod_ocs_rest_accepted_content.erl:238-275 | src/mod_ocs_rest_delete.erl:117-134 | src/mod_ocs_rest_delete.erl:137-222 | src/mod_ocs_rest_delete.erl:225-302 | src/mod_ocs_rest_get.erl:174-191 | src/mod_ocs_rest_get.erl:194-481 | src/mod_ocs_rest_get.erl:484-580 | src/mod_ocs_rest_head.erl:168-185 | src/mod_ocs_rest_head.erl:188-226 | src/mod_ocs_rest_head.erl:229-325 | src/mod_ocs_rest_patch.erl:119-149 | src/mod_ocs_rest_patch.erl:160-241 | src/mod_ocs_rest_patch.erl:244-348 | src/mod_ocs_rest_post.erl:119-141 | src/mod_ocs_rest_post.erl:255-355 \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/mod_ocs_rest_accepted_content.erl"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6246cb0440dca4d8fce3673be45ddc662ecab8abcded3498c28aa695b980cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): src/ocs_rest_res_usage.erl:1130-1140 | src/ocs_rest_res_usage.erl:1152-1162 | src/ocs_rest_res_usage.erl:1244-1254 | src/ocs_rest_res_usage.erl:1356-1366 | src/ocs_rest_res_usage.erl:1368-1378 | src/ocs_rest_res_usage.erl:1453-1463 | src/ocs_rest_res_usage.erl:1475-1485 | src/ocs_rest_res_usage.erl:1487-1497 | src/ocs_rest_res_usage.erl:1541-1551 | src/ocs_rest_res_usage.erl:1564-1574 | src/ocs_rest_res_usage.erl:1586-1596 | src/ocs_rest_res_usage.erl:1865-1874 | src/ocs_rest_res_usage.erl:1897-1906 | src/ocs_rest_res_usage.erl:1909-1918 \u2014 These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"280f3ef5d82fdb6e414043e841da8fe502cbbd9f4ad073024dec21816c69e757"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): src/ocs_diameter_3gpp_gx_application_cb.erl:191-236 | src/ocs_diameter_3gpp_ro_application_cb.erl:206-251 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:242-287 | src/ocs_diameter_3gpp_s6a_application_cb.erl:554-599 | src/ocs_diameter_3gpp_s6b_application_cb.erl:282-329 | src/ocs_diameter_3gpp_sta_application_cb.erl:326-373 | src/ocs_diameter_3gpp_swm_application_cb.erl:326-373 | src/ocs_diameter_3gpp_swx_application_cb.erl:273-318 | src/ocs_diameter_base_application_cb.erl:182-229 | src/ocs_diameter_cc_application_cb.erl:191-236 | src/ocs_diameter_eap_application_cb.erl:185-230 | src/ocs_diameter_nas_application_cb.erl:184-229 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_gx_application_cb.erl"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"02985afca8f558876728da2c5943956aa7380cc6c4b5edf934ab1c1cf61989ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): src/ocs_rest_res_hub_balance.erl:160-173 | src/ocs_rest_res_hub_product.erl:164-177 | src/ocs_rest_res_hub_product.erl:261-274 | src/ocs_rest_res_hub_resource.erl:161-174 | src/ocs_rest_res_hub_role.erl:154-167 | src/ocs_rest_res_hub_service.erl:161-174 | src/ocs_rest_res_hub_usage.erl:163-176 | src/ocs_rest_res_hub_user.erl:161-174 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_hub_balance.erl"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f9bf3f3fdf4d671cb918ff48d24d05a752868d17646ecacd2cead835c7e39f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/ocs_rest_res_balance.erl:69-109 | src/ocs_rest_res_balance.erl:222-248 | src/ocs_rest_res_client.erl:86-118 | src/ocs_rest_res_product.erl:253-287 | src/ocs_rest_res_product.erl:304-332 | src/ocs_rest_res_resource.erl:350-380 | src/ocs_rest_res_service.erl:152-178 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fab82e574723f36f9afdd5b6b9fe63f986fe405c0042b8f1211c5a4a4a3d1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/ocs_rest_res_hub_balance.erl:188-195 | src/ocs_rest_res_hub_product.erl:289-296 | src/ocs_rest_res_hub_resource.erl:189-196 | src/ocs_rest_res_hub_role.erl:182-189 | src/ocs_rest_res_hub_service.erl:189-196 | src/ocs_rest_res_hub_usage.erl:191-198 | src/ocs_rest_res_hub_user.erl:189-196 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_hub_balance.erl"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a09ba03b2361f00a072acd6a506016fdd235fafd3e5a66e879c95339932d96"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/ocs_rest_res_hub_balance.erl:197-209 | src/ocs_rest_res_hub_product.erl:298-310 | src/ocs_rest_res_hub_resource.erl:198-210 | src/ocs_rest_res_hub_role.erl:191-204 | src/ocs_rest_res_hub_service.erl:198-210 | src/ocs_rest_res_hub_usage.erl:200-212 | src/ocs_rest_res_hub_user.erl:198-210 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_hub_balance.erl"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba7f9e5e69f0635ba142a3e04d352a018c48f3b5c29bad2cc57dbfbb1b556cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/ocs.erl:271-288 | src/ocs.erl:454-471 | src/ocs.erl:996-1013 | src/ocs.erl:1445-1462 | src/ocs.erl:1714-1731 | src/ocs.erl:2317-2334 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs.erl"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c80f725e2bf6ddec328810f102f0d6edcd3bff586e8c755fac945da85df0b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/ocs_rest_res_hub_balance.erl:130-145 | src/ocs_rest_res_hub_resource.erl:132-147 | src/ocs_rest_res_hub_role.erl:125-140 | src/ocs_rest_res_hub_service.erl:132-147 | src/ocs_rest_res_hub_usage.erl:133-148 | src/ocs_rest_res_hub_user.erl:132-147 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_hub_balance.erl"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2098914151103f0c40af977175dc6eb72160a072ff9444d071341af126a747b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/ocs_rest_res_usage.erl:1390-1399 | src/ocs_rest_res_usage.erl:1401-1410 | src/ocs_rest_res_usage.erl:1412-1421 | src/ocs_rest_res_usage.erl:1499-1508 | src/ocs_rest_res_usage.erl:1510-1519 | src/ocs_rest_res_usage.erl:1553-1562 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb787bae32c844977c21a344cb0eec4e32ffd6ed88c2d1677534aafb98061338"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/ocs_rest_res_balance.erl:1035-1041 | src/ocs_rest_res_client.erl:433-439 | src/ocs_rest_res_product.erl:2394-2400 | src/ocs_rest_res_resource.erl:383-389 | src/ocs_rest_res_service.erl:825-831 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc29e759685fc7d09421d070665361bf2da47a3145677699e03f091423a01db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/ocs_rest_res_balance.erl:1101-1107 | src/ocs_rest_res_client.erl:499-505 | src/ocs_rest_res_product.erl:2460-2466 | src/ocs_rest_res_resource.erl:520-526 | src/ocs_rest_res_service.erl:891-897 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ae725557360e1c7870b7bf2840350d0fabfd85fac59e5f7edc9cf7bd98ca1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/ocs_rest_res_balance.erl:1177-1182 | src/ocs_rest_res_client.erl:571-576 | src/ocs_rest_res_product.erl:2535-2540 | src/ocs_rest_res_resource.erl:512-517 | src/ocs_rest_res_service.erl:963-968 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17c780474f1a5d941499e146d9fb9fcbee7bd173488c3458d0316b68092d6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/ocs.erl:383-409 | src/ocs.erl:428-452 | src/ocs.erl:524-548 | src/ocs.erl:1500-1529 \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/ocs.erl"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd64ad5339ed4f95a71d5e603915ac20bc12bd8ebdbcaab143b8762b6c12510"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1644-1674 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1777-1822 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1836-1873 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1886-1917 \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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"0302a94c66f5ff117b3bc2bf3187960b1d7e36e67aaf3dea39709f8761432f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/ocs_diameter_3gpp_s6b_application_cb.erl:158-163 | src/ocs_diameter_3gpp_sta_application_cb.erl:172-177 | src/ocs_diameter_3gpp_swm_application_cb.erl:171-176 | src/ocs_diameter_3gpp_swx_application_cb.erl:164-169 \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/ocs_diameter_3gpp_s6b_application_cb.erl"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"11301093109b8de389885d5247efad46d1d02b73ffe143a22c3be92a4af31b5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/ocs_diameter_3gpp_s6b_application_cb.erl:250-263 | src/ocs_diameter_3gpp_sta_application_cb.erl:292-307 | src/ocs_diameter_3gpp_swm_application_cb.erl:292-307 | src/ocs_diameter_3gpp_swx_application_cb.erl:241-254 \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/ocs_diameter_3gpp_s6b_application_cb.erl"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"258c908b34f41de2e10fa0c514165d115336067fe2ae6bf03991e502ba2b2bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/ocs_rest_res_balance.erl:1185-1198 | src/ocs_rest_res_client.erl:579-592 | src/ocs_rest_res_product.erl:2543-2556 | src/ocs_rest_res_service.erl:971-984 \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/ocs_rest_res_balance.erl"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba7b7ae2048cde10fc4db1e996f30b171bd5d94d0d6dccf88d5888bee09eef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/ocs_rest_res_product.erl:977-998 | src/ocs_rest_res_product.erl:1093-1113 | src/ocs_rest_res_product.erl:1116-1136 | src/ocs_rest_res_product.erl:1160-1180 \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/ocs_rest_res_product.erl"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dac6dcf440cf0d9fa060b98589c66fcdabb435e65c53c88acaf01aed8f6a0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/ocs_rest_res_product.erl:1367-1376 | src/ocs_rest_res_product.erl:1379-1388 | src/ocs_rest_res_resource.erl:1014-1023 | src/ocs_rest_res_resource.erl:1026-1035 \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/ocs_rest_res_product.erl"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ef033b8d4303067045fe18f702f3c817033378c9f50fc89ca2bf4260e28802"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (93 corresponding lines): src/ocs_diameter_acct_service_fsm.erl:372-466 | src/ocs_diameter_auth_service_fsm.erl:420-512 \u2014 These two members are one piece of code written twice and then edited apart: 93 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"662f37cbae3a68a10f0b62bb39aded6f871fbf894de44fa47d59b30025a05169"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): src/ocs_rest_res_product.erl:1635-1690 | src/ocs_rest_res_product.erl:1785-1832 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/ocs_rest_res_product.erl"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e539e829bd82c7a1bcb173855304cc58009dcea7a42b7931fdac12e8af4d5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): src/ocs_log.erl:2191-2255 | src/ocs_log.erl:2331-2386 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/ocs_log.erl"},"region":{"startLine":2191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2485e4a5620354338a33f517b9c47776d13b17769a2e3163eeffdf400a9cb290"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): src/ocs_rest_res_product.erl:1692-1773 | src/ocs_rest_res_product.erl:1834-1908 \u2014 These two members are one piece of code written twice and then edited apart: 75 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_product.erl"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14a2f22f95fefc319349bb43e460e2ea47a50e5a56b4e0c3b8a5285f981a221"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): src/ocs_mib.erl:431-507 | src/ocs_mib.erl:509-579 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/ocs_mib.erl"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbc1b804a152c09530b3adcd8552b99f578ba8ffd61eff0efbe35d1f98cadc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/ocs_rest_res_balance.erl:626-660 | src/ocs_rest_res_balance.erl:737-774 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/ocs_rest_res_balance.erl"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c851c4fa3c35fdacb807ba697c22470b328ad4b5f1c583ca43145ae9135669b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/ocs_log.erl:3495-3531 | src/ocs_log.erl:3590-3639 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":3495}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34762e5d81203c5d49ce8293e8f0e9132dc35ca1f386329f9f6c4ace833440c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/ocs_eap_aka_auc_fsm.erl:445-488 | src/ocs_eap_aka_auc_fsm.erl:500-533 \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/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"393e5c4a2a94c9f61cac04823a7bb051103d1efe926fe2ca93967b22b871cc71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/ocs_log.erl:1737-1774 | src/ocs_log.erl:1853-1883 \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/ocs_log.erl"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfcbfff24e26ba3db17a86f461ce1075b92ff97397adffc49e67c87acf4e570"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1008-1038 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1164-1192 \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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"161643413fd9fe2ad6baecd50bfec5d72e0bfb7d7ad77a8da30befdb99df39ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/ocs_log.erl:857-886 | src/ocs_log.erl:1094-1122 \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/ocs_log.erl"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f382060894f16d3f0ffe4df2a397ea2ee39407518629638cedbca5356184fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/ocs_log.erl:990-1016 | src/ocs_log.erl:1257-1282 \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/ocs_log.erl"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"844a085cd4b16d10d852b77d903cd9b2b3b1ae483cba8799aba56ffc6ad6d435"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/ocs_diameter_auth_port_server.erl:232-267 | src/ocs_radius_auth_port_server.erl:205-237 \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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0fd6444b0b781ce27b2c5a30f1f3540acd4289fbc2beb98e07bfb5a8d70a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/ocs_eap_aka_fsm.erl:1080-1110 | src/ocs_eap_akap_fsm.erl:1098-1128 \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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"c755aecc2b58c369f9c238410c8b6e9ee149a10d5ab555b7d7ae4ba80342484e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/ocs_diameter_auth_port_server.erl:738-775 | src/ocs_radius_auth_port_server.erl:535-572 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_auth_port_server.erl"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"93972f023e6986e13d5890ba6f5b7b7908223890cf670960093f991295139e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/ocs_rest_res_resource.erl:789-835 | src/ocs_rest_res_resource.erl:851-887 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_resource.erl"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b42cd6a77f3823701965a4154ecfb8a70f070f44d3b7eff3ee2586dda6ea280"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/ocs_rest_res_product.erl:116-161 | src/ocs_rest_res_service.erl:63-100 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_product.erl"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"081af24c9258a1e6b20618ffd07c1c16792618e61d54326e4f13b8fdf9fc5261"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 30\u002B corresponding lines): src/ocs_rest_res_hub_balance.erl:85-114 | src/ocs_rest_res_hub_product.erl:89-118 | src/ocs_rest_res_hub_product.erl:192-221 | src/ocs_rest_res_hub_resource.erl:87-116 | src/ocs_rest_res_hub_service.erl:87-116 | src/ocs_rest_res_hub_usage.erl:87-116 | src/ocs_rest_res_hub_user.erl:87-116 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_hub_balance.erl"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"347e77c34ff5b601664ffec4dc2be72cb80961f4808e7ac662bf3604395430a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/ocs_rest_res_role.erl:323-352 | src/ocs_rest_res_user.erl:439-467 \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/ocs_rest_res_role.erl"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"38185ae55a6c0390836fa9066a15374c8d9477d738c75407ad4a49a7f145caaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/ocs_log.erl:6046-6068 | src/ocs_log.erl:6334-6356 \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/ocs_log.erl"},"region":{"startLine":6046}}}],"partialFingerprints":{"codehealthFindingId/v1":"814baff27d0b4d1831a3494bbcf3bebad026487be84bbcafa27cbad40e671f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/ocs_pgw_fsm.erl:513-554 | src/ocs_terminate_fsm.erl:350-381 \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/ocs_pgw_fsm.erl"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"3539199f5afb732637c934ff4a5c026b3ffaaff3679bd1cbd4f2c538c638bb5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/ocs_rest_res_usage.erl:965-989 | src/ocs_rest_res_usage.erl:992-1021 \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/ocs_rest_res_usage.erl"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc780797185f84bbcef3537e35947e11cb3e42668c53acd0cd52828e829f7955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:983-1006 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1134-1162 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"04952035ad537f083d881137a4ff26cd07329c0b741931c6d12fe4da00822c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/ocs_log.erl:939-957 | src/ocs_log.erl:1210-1226 \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/ocs_log.erl"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40b9cd5e8cc52b3c3fa7bef70ecff8eb9a470e09926e2025054deeec884c869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/ocs_log.erl:2046-2072 | src/ocs_log.erl:2303-2329 \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/ocs_log.erl"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d96dd42e49fb30c1a00bef3ffb39e6622fde58e9982fba1566fe162a1a0f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/ocs_rest_res_role.erl:61-90 | src/ocs_rest_res_user.erl:194-222 \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/ocs_rest_res_role.erl"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b305a9de6ce61a30dbcb853be45b362e5d7b9d332253a95e192dae726c896c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/ocs_log.erl:1516-1532 | src/ocs_log.erl:1534-1553 \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/ocs_log.erl"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"252d835785611990b9c860bcfd5778b3fe66199e2124d4660d37aa57a1136115"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/ocs_log.erl:1929-1946 | src/ocs_log.erl:2175-2189 \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/ocs_log.erl"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92735964923fde8e7b1282951c6a0588a47202480e2a2da609f2068addc826d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/ocs.erl:203-228 | src/ocs.erl:238-264 \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/ocs.erl"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"657ed1141456afac12f3240d8077d22f9de5adf2bdd403d445d5d675dfa625e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/ocs.erl:2454-2479 | src/ocs.erl:2500-2527 \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/ocs.erl"},"region":{"startLine":2454}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7863210428a6b12bb6afe4ceb5a8cf0ca609ac70f9d904a98922e303523138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/ocs_eap_pwd_fsm.erl:1178-1197 | src/ocs_simple_auth_fsm.erl:536-556 \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/ocs_eap_pwd_fsm.erl"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9300ff08a5db0fd971d9084897d95cd9ed1dbba70653504f84ef206af97d8cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1996-2022 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2025-2050 \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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6c02adfdd765164de358f40a9083db6adde7317b7312fb628ce2f24fbb9ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/ocs_diameter_3gpp_ro_application_cb.erl:841-867 | src/ocs_diameter_3gpp_ro_application_cb.erl:870-893 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc92a6f57dabe93e5c73bf7afbef65845f1dfdfaf9a7ec41bb23f8a29ade67a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/ocs_rest_res_resource.erl:749-773 | src/ocs_rest_res_resource.erl:903-935 \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/ocs_rest_res_resource.erl"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b55b268e082ea8068d8246abee921819339eed0843ae8b7cc6c7d6254b16f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/ocs_rest_res_nrf.erl:208-232 | src/ocs_rest_res_nrf.erl:333-357 \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/ocs_rest_res_nrf.erl"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"884f095d152115a442019b2c5c122f61cde33b3eba8b2e7527d629cb26e83c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): src/ocs_log.erl:5448-5464 | src/ocs_log.erl:5575-5591 | src/ocs_log.erl:5686-5702 | src/ocs_log.erl:5796-5812 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":5448}}}],"partialFingerprints":{"codehealthFindingId/v1":"801c9c32a91e01f94676855486d0fdc848b4f8ed7ec76cb138fc8d954dc1149e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/ocs_rest_res_client.erl:349-370 | src/ocs_rest_res_client.erl:372-394 \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/ocs_rest_res_client.erl"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"4868d7806226fa6193d6f96217744b03d0a719de6a58f3d4deb3a01630b523dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/ocs_diameter_3gpp_ro_application_cb.erl:1287-1294 | src/ocs_log.erl:7059-7066 \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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3fc3e5cfbfca51d989779f31840e69e930acce1a41e1866d3d0737ab1fc2f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): src/ocs_log.erl:5495-5524 | src/ocs_log.erl:5608-5635 | src/ocs_log.erl:5719-5746 | src/ocs_log.erl:5829-5864 \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/ocs_log.erl"},"region":{"startLine":5495}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dc21886899bf71aede325deae82c373567577201d553f92be051990f130234"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): src/ocs_rest_res_product.erl:1026-1044 | src/ocs_rest_res_product.erl:1047-1065 | src/ocs_rest_res_product.erl:1139-1156 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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/ocs_rest_res_product.erl"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2b5fbbd48f9e185da9a9461dc51030af9167b06239d4cc347e0acca6b2a2ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/ocs_diameter_3gpp_sta_application_cb.erl:219-234 | src/ocs_diameter_3gpp_swm_application_cb.erl:218-234 \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/ocs_diameter_3gpp_sta_application_cb.erl"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"94596237b5f61f9333f5cf174434171308aff57b50f8a05964369945409c60a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/ocs_diameter_acct_service_fsm.erl:97-117 | src/ocs_diameter_auth_service_fsm.erl:115-135 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"47108edd199d272a87188fbca4c0b21d671ba63e00f60b9555ef5609433c816e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/ocs_rest.erl:318-333 | src/ocs_rest.erl:345-358 | src/ocs_rest.erl:368-381 \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/ocs_rest.erl"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd4f82f623428d9283f57dd285dfc17bee718697d1bce342a938ccc5012c9a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/ocs_log.erl:3472-3493 | src/ocs_log.erl:3555-3576 \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/ocs_log.erl"},"region":{"startLine":3472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f819a51e402e962d8e3aefb21bac068cf7e56986ca4254650e0de6ca45396df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/ocs_diameter_eap_application_cb.erl:319-343 | src/ocs_diameter_nas_application_cb.erl:284-308 \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/ocs_diameter_eap_application_cb.erl"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3cf1a3cfd59cea7be622c4e8a07f69c83f6a4bb0e582f0ea73bf030c766094a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/ocs_log.erl:2089-2102 | src/ocs_log.erl:2388-2403 \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/ocs_log.erl"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c03a54a998b0273a0a07b4fdb88b32a15f962dffc9d9a5d07227ecc88c07c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/ocs_diameter_3gpp_ro_application_cb.erl:1207-1225 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:878-898 \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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"13afd3b7896b5546782c27cf960ad9e9389eac1ecb0888a3753f0ce7bc37c77b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/ocs_diameter_auth_port_server.erl:300-310 | src/ocs_radius_auth_port_server.erl:270-278 \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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"83429a305ae97aeca88c6a5bd59e5017a091645c3517f734b9b7c6c4fdb6e5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/ocs_log.erl:1472-1484 | src/ocs_log.erl:1486-1500 \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/ocs_log.erl"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"483837f49f4b947f2ad2962ec6ed8f40ff58bc348b707f9bebbdf5a8e80d9157"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/ocs_eap_ttls_fsm.erl:675-689 | src/ocs_eap_ttls_fsm.erl:914-928 \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/ocs_eap_ttls_fsm.erl"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8c5eb2014c61decbf132e7a72fec9b9f36fb6b716813da622d8e06fe5153ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/ocs_log.erl:844-855 | src/ocs_log.erl:1082-1092 \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/ocs_log.erl"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"758090c859d2cf88db2015f48372e143e1d71375263803819e7dab65387e1a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 22\u002B corresponding lines): src/ocs_rest_res_product.erl:74-102 | src/ocs_rest_res_product.erl:175-198 | src/ocs_rest_res_product.erl:212-235 | src/ocs_rest_res_service.erl:114-135 \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/ocs_rest_res_product.erl"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"effed40d8442973aa707273f5e62f9194a1ec32f45fcbe2f36c293f63cd5894e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): src/ocs_rest_res_usage.erl:1632-1645 | src/ocs_rest_res_usage.erl:1698-1711 | src/ocs_rest_res_usage.erl:1714-1732 | src/ocs_rest_res_usage.erl:1836-1852 | src/ocs_rest_res_usage.erl:2064-2077 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acdd8d62ceeac467c0bdac55189ad95e07de28c79c3b7676946aa3b461d79ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/ocs.erl:633-650 | src/ocs.erl:910-927 \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/ocs.erl"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a615624c0c8e48ef1226d2d0ea1495e1060d509832a265031992b85ad4cff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/ocs_gtt.erl:204-215 | src/ocs_gtt.erl:225-240 | src/ocs_gtt.erl:250-261 \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/ocs_gtt.erl"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c04dd7f8f8d02ebea920c574a0b8f5638253faa56beb96df124d3154fcb061e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/ocs_eap_aka_auc_fsm.erl:690-705 | src/ocs_eap_aka_auc_fsm.erl:763-779 \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/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69b077b1a699b92bb1ca57b5f29c8d87f3335973c821d5f893db0bd745997b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/ocs_rating.erl:3203-3219 | src/ocs_rating.erl:3253-3269 | src/ocs_rating.erl:3282-3295 \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/ocs_rating.erl"},"region":{"startLine":3203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa7824e011e7d66099f62eeda54ad119e388923ab38fb2ce2f905ec03fde02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/ocs_app.erl:57-77 | src/ocs_app.erl:88-104 \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/ocs_app.erl"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"06669ff4998bd38614b515655bb586952d418712abab0a1d4703adbb9b921dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/ocs_log.erl:5560-5573 | src/ocs_log.erl:5671-5684 | src/ocs_log.erl:5781-5794 \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/ocs_log.erl"},"region":{"startLine":5560}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c65d1fad5ffaeef6f4db04cc7382dff5a2e2a2b087fb67698951b4e40c43f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/ocs.erl:411-426 | src/ocs.erl:1079-1099 \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/ocs.erl"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92789ccd3ca1d31c27e11f4982c175d4339926c05a7a665335805b6e2a820fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/ocs_log.erl:5593-5606 | src/ocs_log.erl:5704-5717 | src/ocs_log.erl:5814-5827 \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/ocs_log.erl"},"region":{"startLine":5593}}}],"partialFingerprints":{"codehealthFindingId/v1":"186f3c02c21aed85ff84f286193d1441c1178ebd97757313606eb61104cd8f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/ocs.erl:1474-1487 | src/ocs_gtt.erl:317-330 \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/ocs.erl"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bb296e6da640942463edd1eae2f813fdf02b35b923ffc53caa3de3ab4fd471"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/ocs_rest_res_resource.erl:938-949 | src/ocs_rest_res_resource.erl:964-976 | src/ocs_rest_res_resource.erl:979-989 \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/ocs_rest_res_resource.erl"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ed9c65dce2ed0eb9b8cff997d3061d56eb5a84c928dd3ebfc06ff12b05b538"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/ocs_log.erl:431-439 | src/ocs_log.erl:698-706 | src/ocs_log.erl:1648-1657 \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/ocs_log.erl"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"290d62e2da176fadf00454f93e106d1baf259b9b802a374b2f52df6239a0c61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/ocs_rest.erl:335-343 | src/ocs_rest.erl:383-389 \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/ocs_rest.erl"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05564ed30a689a23a98c6cf96c5e02eb79091921e66036f0c0c7f5ebc838f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/ocs_log.erl:1917-1927 | src/ocs_log.erl:2160-2173 \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/ocs_log.erl"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3224636c43d84773b5d23484480fa199cc75189816ffb441055086f9d62214"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): src/ocs_log.erl:5548-5558 | src/ocs_log.erl:5659-5669 | src/ocs_log.erl:5770-5779 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":5548}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44c739a3287b12d91e541a749b9adce5d588b2cb6a7e84ef6da0f13665a9360"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/ocs_rest_res_usage.erl:1618-1629 | src/ocs_rest_res_usage.erl:1921-1932 \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/ocs_rest_res_usage.erl"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93727c371c13402ee693e5454ffab8f6a8b1d402d03bae85a5407e053db1649"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/ocs.erl:2481-2498 | src/ocs.erl:2529-2545 \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/ocs.erl"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"c846d262d7030d46b247afa8a285a74115c16cce6b461c8de1de1e108a791ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/ocs_log.erl:2430-2440 | src/ocs_log.erl:2442-2452 | src/ocs_log.erl:2454-2464 \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/ocs_log.erl"},"region":{"startLine":2430}}}],"partialFingerprints":{"codehealthFindingId/v1":"4047012c85a322c32f92875c6dd88b03a71157e9e428c15433ec644aec86d289"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/ocs.erl:484-496 | src/ocs.erl:498-511 | src/ocs.erl:1052-1066 \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/ocs.erl"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"32980c00acd32d3bfab0bb703ad8f00418f527011fc4dc8615528f12b7b6fd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/ocs_rest_res_product.erl:1287-1301 | src/ocs_rest_res_product.erl:1315-1326 \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/ocs_rest_res_product.erl"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b015a0ee8bfa8ef9fd2d52836ea0e53e489207502f70b406e746d7388e59fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/user_default.erl:528-538 | src/user_default.erl:558-568 \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/user_default.erl"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9c8bc66f5d91fba9e13537bfee945be7501cae1a7adee1ef1e131e898ffc04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/ocs_app.erl:139-154 | src/ocs_app.erl:174-189 | src/ocs_app.erl:393-408 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_app.erl"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedacb2bb56468c5966c63f392836fc12bd02d36b0d1725a0b2acf68f77f64ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/ocs_rest_res_hub_product.erl:134-149 | src/ocs_rest_res_hub_product.erl:237-247 \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/ocs_rest_res_hub_product.erl"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6b43851fdbf95c1009bed965458fb9d878cd9dcb575217eae621d8e069c0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/ocs_rest_res_product.erl:459-475 | src/ocs_rest_res_product.erl:629-645 | src/ocs_rest_res_service.erl:383-399 \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/ocs_rest_res_product.erl"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cea48144356b9c1eb6d5392aeaccc370095a130f44f54154f5383e4aa4926f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): src/ocs_diameter_codec_s6b.erl:68-78 | src/ocs_diameter_codec_s6b.erl:109-119 | src/ocs_diameter_codec_s6b.erl:148-158 | src/ocs_diameter_codec_s6b.erl:189-199 | src/ocs_diameter_codec_s6b.erl:230-240 | src/ocs_diameter_codec_s6b.erl:269-279 | src/ocs_diameter_codec_s6b.erl:308-318 | src/ocs_diameter_codec_s6b.erl:347-357 \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/ocs_diameter_codec_s6b.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74d2b0a7aaf7714b8dd60649d1ad916b63f8d2a2599580059e3cc76e2962a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): src/ocs_diameter_codec_sta.erl:68-78 | src/ocs_diameter_codec_sta.erl:109-119 | src/ocs_diameter_codec_sta.erl:148-158 | src/ocs_diameter_codec_sta.erl:189-199 | src/ocs_diameter_codec_sta.erl:230-240 | src/ocs_diameter_codec_sta.erl:269-279 | src/ocs_diameter_codec_sta.erl:308-318 | src/ocs_diameter_codec_sta.erl:347-357 \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/ocs_diameter_codec_sta.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b624b94657896aaefda8b72f57c9f002bc87780b67a1c26e71be405ca5a0dab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): src/ocs_diameter_codec_swm.erl:68-78 | src/ocs_diameter_codec_swm.erl:109-119 | src/ocs_diameter_codec_swm.erl:148-158 | src/ocs_diameter_codec_swm.erl:189-199 | src/ocs_diameter_codec_swm.erl:230-240 | src/ocs_diameter_codec_swm.erl:269-279 | src/ocs_diameter_codec_swm.erl:308-318 | src/ocs_diameter_codec_swm.erl:347-357 \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/ocs_diameter_codec_swm.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2882c0a4c159a67b48e4e0a84e2f6026b6b9e31a1aab9b7a7fbdc1d7c0ba86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 18\u002B corresponding lines): src/mod_ocs_rest_delete.erl:94-111 | src/mod_ocs_rest_get.erl:147-168 | src/mod_ocs_rest_head.erl:141-162 | src/mod_ocs_rest_patch.erl:96-113 | src/mod_ocs_rest_post.erl:96-113 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 18 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/mod_ocs_rest_delete.erl"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"1553d5f13dda984a713d056d834ece756ccc73153651e75b84c30aa578d73e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/ocs_rest_res_product.erl:349-362 | src/ocs_rest_res_product.erl:404-417 \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/ocs_rest_res_product.erl"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"362f98516673697c444f8b707852f4979ca7d146079a4eab557718256167497a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/ocs_rest_res_usage.erl:3481-3494 | src/ocs_rest_res_user.erl:520-533 \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/ocs_rest_res_usage.erl"},"region":{"startLine":3481}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a295b4bae9df994f9c1b616bf054714a128a5910aa5a0a47b81f322ae48df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): src/ocs_rest_res_usage.erl:921-932 | src/ocs_rest_res_usage.erl:1024-1034 | src/ocs_rest_res_usage.erl:1036-1046 | src/ocs_rest_res_usage.erl:1108-1118 \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/ocs_rest_res_usage.erl"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb0770a41368ae9f88858cc7f80963103c1652839ac34c27b381066f588bc61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/ocs_diameter_eap_application_cb.erl:246-263 | src/ocs_diameter_nas_application_cb.erl:245-262 \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/ocs_diameter_eap_application_cb.erl"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5e81d705342ad1e4e7618cd1b1b17096b104abbf318990a582dafb328ed8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/ocs_eap_pwd_fsm.erl:667-683 | src/ocs_eap_pwd_fsm.erl:703-718 | src/ocs_eap_pwd_fsm.erl:902-918 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_eap_pwd_fsm.erl"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9ac5711ce1071729fc6e3c4f92d2b12a452e829b6011ce54d2aeb82ca34644"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/ocs_log.erl:959-972 | src/ocs_log.erl:1228-1241 | src/ocs_log.erl:1243-1255 \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/ocs_log.erl"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3998290eaab4bca1ea4dbfd9fa598addec07714b4542081b3b61bcc5d892c6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs.erl:371-381 | src/ocs.erl:1796-1805 \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/ocs.erl"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe2b4606c6f691915136459f61652c394847db619453d2a43db57befdda30e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs_log.erl:1309-1318 | src/ocs_log.erl:1328-1338 \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/ocs_log.erl"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0742e40626e5756cae15fb8ac5bd892d87dd27372d59f769379e6e22887f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/ocs_rest_res_balance.erl:935-943 | src/ocs_rest_res_balance.erl:945-953 | src/ocs_rest_res_balance.erl:955-963 \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/ocs_rest_res_balance.erl"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d905b9c44a687c01249c8be27dc750f87cae731f05483341e3b6867d0274c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): src/ocs_rest_res_usage.erl:1763-1772 | src/ocs_rest_res_usage.erl:1802-1811 | src/ocs_rest_res_usage.erl:1824-1833 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6877b3642b0005efcbd7e8edf9a89ef977d49706fb74b92d0f3e7d630359a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/ocs_app.erl:1138-1149 | src/ocs_app.erl:1151-1162 | src/ocs_app.erl:1164-1175 \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/ocs_app.erl"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f42bbac8437795682431fae5069ba817109de70276395d4562b60eca675cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/ocs_diameter_auth_port_server.erl:117-124 | src/ocs_radius_auth_port_server.erl:95-103 \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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac91a92d34b2aab3774d04c4e8e5d17c712edba2ad7bf75b7580a7f2172e58a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/ocs_diameter_3gpp_gx_application_cb.erl:163-168 | src/ocs_diameter_3gpp_ro_application_cb.erl:176-183 | src/ocs_diameter_3gpp_s6a_application_cb.erl:175-180 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_gx_application_cb.erl"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70b77aca9efa7e4224f54dc9950a05856758c180fb093220aa03233f740eef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/ocs_rest_res_product.erl:1012-1023 | src/ocs_rest_res_product.erl:1068-1079 | src/ocs_rest_res_service.erl:416-426 \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/ocs_rest_res_product.erl"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"8368bcdf87b65a3699c71618f1f25f4deea8d97698a1730824c54ec5b42f0fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/ocs_diameter_auth_port_sup.erl:71-77 | src/ocs_radius_acct_port_sup.erl:75-81 | src/ocs_radius_auth_port_sup.erl:68-74 \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/ocs_diameter_auth_port_sup.erl"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcf95074e4e867e0142d0060c086d018c2a1cac6f971d7f9f9db7eeb6120602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): src/ocs_diameter_codec_s6b.erl:46-56 | src/ocs_diameter_codec_s6b.erl:88-98 | src/ocs_diameter_codec_s6b.erl:128-138 | src/ocs_diameter_codec_s6b.erl:168-178 | src/ocs_diameter_codec_s6b.erl:209-219 | src/ocs_diameter_codec_s6b.erl:249-259 | src/ocs_diameter_codec_s6b.erl:288-298 | src/ocs_diameter_codec_s6b.erl:327-337 \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/ocs_diameter_codec_s6b.erl"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b01df72dded58e1a7f497213e2424849303308fdc04272266f4d80a050abe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): src/ocs_diameter_codec_sta.erl:46-56 | src/ocs_diameter_codec_sta.erl:88-98 | src/ocs_diameter_codec_sta.erl:128-138 | src/ocs_diameter_codec_sta.erl:168-178 | src/ocs_diameter_codec_sta.erl:209-219 | src/ocs_diameter_codec_sta.erl:249-259 | src/ocs_diameter_codec_sta.erl:288-298 | src/ocs_diameter_codec_sta.erl:327-337 \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/ocs_diameter_codec_sta.erl"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"754c13f1e89dc928688b3db347e214da25ddf54b270339d9069cdedf53e4d716"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): src/ocs_diameter_codec_swm.erl:46-56 | src/ocs_diameter_codec_swm.erl:88-98 | src/ocs_diameter_codec_swm.erl:128-138 | src/ocs_diameter_codec_swm.erl:168-178 | src/ocs_diameter_codec_swm.erl:209-219 | src/ocs_diameter_codec_swm.erl:249-259 | src/ocs_diameter_codec_swm.erl:288-298 | src/ocs_diameter_codec_swm.erl:327-337 \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/ocs_diameter_codec_swm.erl"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0016be3bef7ca39c6abc6c2e8eefb1285fc9bc578af9971426cf658bc5feef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs_rest_res_product.erl:965-974 | src/ocs_rest_res_resource.erl:952-961 \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/ocs_rest_res_product.erl"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ab4b5dcb401d8d6f6eca69d6008e1b7bc6dcf5d76a073c81c7353b90825cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/ocs_rest_res_resource.erl:736-746 | src/ocs_rest_res_resource.erl:838-848 | src/ocs_rest_res_resource.erl:890-900 \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/ocs_rest_res_resource.erl"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"a479b4e9c229c9fe5645b9995f0ef842a96eecbbba49f3664e13dbd884157a68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/ocs_app.erl:628-640 | src/ocs_app.erl:1023-1035 \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/ocs_app.erl"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb2bd55417b4686ed36b93cbe1a47acea7d1b7f2814a7e7b605fbf2d1183089"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): src/ocs_rest_res_usage.erl:1058-1066 | src/ocs_rest_res_usage.erl:1068-1076 | src/ocs_rest_res_usage.erl:1078-1086 | src/ocs_rest_res_usage.erl:1088-1096 | src/ocs_rest_res_usage.erl:1097-1105 \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/ocs_rest_res_usage.erl"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"2581b03813c7b43b26a85ee13f8f6be1caf78cc92a2d7bb6997c4512df00e5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/user_default.erl:309-322 | src/user_default.erl:330-345 \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/user_default.erl"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d13824a32af3446172d78267e7045f9bf735541292b4dbfdfb4aeb68f5c3be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs_gtt.erl:142-151 | src/ocs_gtt.erl:178-194 \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/ocs_gtt.erl"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09c5cee2769697bd73f94ee1c60bd10e2a209aad01fd82becc20a72b8596e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/ocs_rest_res_resource.erl:616-631 | src/ocs_rest_res_role.erl:104-119 | src/ocs_rest_res_user.erl:320-335 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_resource.erl"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"32665ac4546d329d7bc1453abdca8d510781caf8a2eb4902651e77380c3fb0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/ocs_rest_res_balance.erl:123-138 | src/ocs_rest_res_service.erl:192-207 \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/ocs_rest_res_balance.erl"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2656c74fa40ec17fb2129d93f31d768191797ee07082728a651c859a7850648a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/ocs_rest_res_client.erl:143-157 | src/ocs_rest_res_client.erl:408-426 \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/ocs_rest_res_client.erl"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"957e5a9b25dd4da13e5aeb6d672d70faf00c4e5d4608d105e1438a2083303a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/ocs_rest_res_balance.erl:192-205 | src/ocs_rest_res_client.erl:56-69 \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/ocs_rest_res_balance.erl"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c710eb5dfea49233a34634edd598da1f2d609edfed74dca26dbff9e863d492ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/ocs_rest_res_product.erl:1001-1009 | src/ocs_rest_res_product.erl:1082-1090 \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/ocs_rest_res_product.erl"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fc1f868f809e0df0e4f5d73f032d0786f001727c6ec22669d4cbe98be03138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/ocs_app.erl:1225-1236 | src/ocs_app.erl:1238-1249 | src/ocs_app.erl:1251-1262 \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/ocs_app.erl"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7de5067976abe06c93f18ca66d938c942a95aa5a96d65fa242c50c7b2f1a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/ocs_deregister_fsm.erl:118-125 | src/ocs_terminate_fsm.erl:104-112 \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/ocs_deregister_fsm.erl"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfdc641ee5b574e170fb6a3296da9812ae7bad9de483f86f2f5bdc9ae9ac856"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/ocs_rating.erl:3002-3012 | src/ocs_rating.erl:3019-3029 \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/ocs_rating.erl"},"region":{"startLine":3002}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5df5915b858d38c02724e2c35bf9c144d8ea6c5aee6eb0ee3938202117af281"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs.erl:1425-1438 | src/ocs.erl:1698-1707 \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/ocs.erl"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"412316426c6513f168f4dab33a2ceeffed6cd56b5108f12373d94169585aa5a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs_eap_aka_auc_fsm.erl:743-752 | src/ocs_eap_aka_auc_fsm.erl:781-791 \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/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ee4be9b7dc9c4bf4ed18ca5753527486bd0f579afca5627ca3b8813fac2ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/ocs_rest_res_balance.erl:927-933 | src/ocs_rest_res_balance.erl:965-971 \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/ocs_rest_res_balance.erl"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4ee3d505972f1691a40b1bc97f02d2f0f65664a21040261d56bb0d99c3c137"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src/ocs_rest_res_usage.erl:1433-1441 | src/ocs_rest_res_usage.erl:1443-1451 | src/ocs_rest_res_usage.erl:2024-2031 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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/ocs_rest_res_usage.erl"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"7358031a164fac36ae1d13115522c276c5db002c1906c0b3e5770d5c3115b343"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/ocs_event_log_fsm.erl:62-70 | src/ocs_rest_hub_fsm.erl:68-76 | src/ocs_rest_hub_fsm.erl:88-96 \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/ocs_event_log_fsm.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c121ec4cc69d98f109e03ac6a646e25f8c0a9cbce964adb87bf0c508cd326cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src/ocs.erl:513-522 | src/ocs.erl:1068-1077 | src/ocs.erl:1489-1498 | src/ocs_gtt.erl:332-341 \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/ocs.erl"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abcd0d7d325504f33d92ad01281b199034b031d2355f200812f4ff1c4c93c38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/ocs_diameter_auth_port_server.erl:373-380 | src/ocs_radius_auth_port_server.erl:448-453 \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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"e454245a640bfffe7ec03d3696731baca2dbed55fe774ac3d211c33a1f0e1401"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/ocs_diameter_acct_service_fsm.erl:199-212 | src/ocs_diameter_auth_service_fsm.erl:217-229 \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/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bebb1b3dd9978add4d7b37e1f87602865f47f8c7e0f7605e1ffc46586d55a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/ocs.erl:3269-3274 | src/ocs.erl:3287-3292 \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/ocs.erl"},"region":{"startLine":3269}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f682a6fbae976fe3bb381af54238d641b287455aba42bf937d103b1f238b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/ocs_diameter_acct_port_sup.erl:52-57 | src/ocs_radius_acct_port_sup.erl:52-58 \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/ocs_diameter_acct_port_sup.erl"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2820066df021214fcf48524214834771f5cdd2a982819e6f0bbd83e504d083"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): src/ocs_log.erl:5389-5394 | src/ocs_log.erl:5541-5546 | src/ocs_log.erl:5652-5657 | src/ocs_log.erl:5763-5768 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":5389}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d1b9e618cae4250410129c14239312a67053b24b7a9fff10f8776f5c591558"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs_rest_res_resource.erl:216-225 | src/ocs_rest_res_resource.erl:264-273 \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/ocs_rest_res_resource.erl"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3523044edb3c27b86d96162eaa11d1e2a4514ae164565761a3c4031e1f0ac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/ocs.erl:2343-2354 | src/ocs_rest_res_nrf.erl:469-481 \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/ocs.erl"},"region":{"startLine":2343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fad0c9f9f049ad67c1e9afc3dfde7ab7668d4b6476b36803a9298a5b64fb9dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/ocs_diameter_eap_application_cb.erl:360-367 | src/ocs_diameter_nas_application_cb.erl:325-332 \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/ocs_diameter_eap_application_cb.erl"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3957aec821f363a57ffb7e1a21f078979f35b3b5c8be0f136602202212061c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs_log.erl:6029-6038 | src/ocs_log.erl:6430-6439 \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/ocs_log.erl"},"region":{"startLine":6029}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d74fd2267bc6e8a00436ec1c428d9d3417a6af1bcbf9bbde4ff835393d62903"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs_log.erl:6441-6450 | src/ocs_log.erl:6464-6473 \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/ocs_log.erl"},"region":{"startLine":6441}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c878ac7d6c4edfae13942bcfc014e7b0abe76f592e0970ee2e3863af88f20b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/ocs_rest_res_usage.erl:1745-1751 | src/ocs_rest_res_usage.erl:1754-1760 \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/ocs_rest_res_usage.erl"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41da8e15ad9aa24897f0d69ed283d3d805110d473ead08851629676ebee72c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/ocs_eap_codec.erl:345-350 | src/ocs_eap_codec.erl:357-362 \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/ocs_eap_codec.erl"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc688c344f6e96a28e0437888649a870c958076b38b347c81d436abd9f19b00b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_log.erl:4483-4486 | src/ocs_rest_res_http.erl:113-116 \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/ocs_log.erl"},"region":{"startLine":4483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a024bd95e13a3611d23210a14e2d2b004d729cfe7074cdb3e47a730b0ce712"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/ocs_log.erl:6074-6083 | src/ocs_log.erl:6755-6765 \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/ocs_log.erl"},"region":{"startLine":6074}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17f87756ae5feb9f2d2b8934988b81e7e859e4e834866f57fd65a41c0724dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/ocs_log.erl:7319-7324 | src/ocs_log.erl:7340-7345 \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/ocs_log.erl"},"region":{"startLine":7319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fc1c99c7814fcdc148228cd4021aba386afdbd3e49e3f2448f06ee5d317bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_log.erl:4478-4481 | src/ocs_rest_res_http.erl:108-111 \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/ocs_log.erl"},"region":{"startLine":4478}}}],"partialFingerprints":{"codehealthFindingId/v1":"01457375ba4b576ef803486959ff5c613fd188983b0253705a7861dd88daac1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_log.erl:4473-4476 | src/ocs_rest_res_http.erl:103-106 \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/ocs_log.erl"},"region":{"startLine":4473}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58c836649d8dac1e9e39a2016103b397e28fd27567f9dd731f87a7c6c2360de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_log.erl:4488-4491 | src/ocs_rest_res_http.erl:118-121 \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/ocs_log.erl"},"region":{"startLine":4488}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefe80a53f24d64acb20d0bf0f96b8a7726c93141c3fd011a58f9710b74afcd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_log.erl:4493-4496 | src/ocs_rest_res_http.erl:123-126 \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/ocs_log.erl"},"region":{"startLine":4493}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f570f7df90b4ee4af81dad46f6772b0b9aab5aa330c914c0592777e1a53ad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/user_default.erl:275-281 | src/ocs_rest_res_health.erl:555-560 \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/user_default.erl"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cdb6187e1212b249dc2cd8f1dacb16870213270497c0ec0865a03169f00498"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/ocs_diameter_3gpp_ro_application_cb.erl:934-939 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2082-2087 \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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7b37b6b8c6f69519b515a2a463758e1fe9a65f1485b96ada107d26a233d5b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/ocs_diameter_auth_port_sup.erl:105-110 | src/ocs_sup.erl:111-115 \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/ocs_diameter_auth_port_sup.erl"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3e9468fa8ee00b6b43945eac5ca552d3d024ca3a0244b17433b325ea29d893"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/ocs_log.erl:914-924 | src/ocs_log.erl:4613-4619 \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/ocs_log.erl"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ed5e0c8058ad04d231802c1f8e70d3de7244f28a21c6f559081b7c699ca6d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_log.erl:4503-4506 | src/ocs_rest_res_http.erl:133-136 \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/ocs_log.erl"},"region":{"startLine":4503}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca60a09938b62ea2511c334f27464ee5eaddbdb22cc69cfd77d8f8a7e4f2ae81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/ocs_radius_authentication.erl:60-66 | src/ocs_radius_accounting.erl:51-57 \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/ocs_radius_authentication.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7cf0600084393cdefae8820128810ad41ea23515ff7621b374e729cdb01987"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_log.erl:4498-4501 | src/ocs_rest_res_http.erl:128-131 \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/ocs_log.erl"},"region":{"startLine":4498}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae94187603d68510d1cc278bfdd60a20b836a72ec55bacea6f688fb6a8e58c26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): src/ocs_rest_res_hub_balance.erl:183-186 | src/ocs_rest_res_hub_product.erl:284-287 | src/ocs_rest_res_hub_resource.erl:184-187 | src/ocs_rest_res_hub_role.erl:177-180 | src/ocs_rest_res_hub_service.erl:184-187 | src/ocs_rest_res_hub_usage.erl:186-189 | src/ocs_rest_res_hub_user.erl:184-187 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_hub_balance.erl"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d242ea1211e877d30e013ba619adc70ddc732fe3785df14f3b050baae041d3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs.erl:3555-3558 | src/ocs_rest_res_role.erl:272-275 \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/ocs.erl"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"574b269a8d63aa603aed9b0590298994a567f194f22fb0b217b3db5604337fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): src/mod_ocs_rest_accepted_content.erl:314-317 | src/mod_ocs_rest_delete.erl:305-308 | src/mod_ocs_rest_get.erl:583-586 | src/mod_ocs_rest_head.erl:328-331 | src/mod_ocs_rest_patch.erl:351-354 | src/mod_ocs_rest_post.erl:358-361 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_accepted_content.erl"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ea34961af3a0a987e94c793395b65c837166c207f04eb2f092920d4108505e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/ocs_eap_akap_fsm_sup_sup.erl:59-63 | src/ocs_eap_ttls_fsm_sup_sup.erl:60-64 \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/ocs_eap_akap_fsm_sup_sup.erl"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5afd36da2e055467f7ba6d5064de3081d6ec0888cc021452663c76af53a0b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_diameter_eap_application_cb.erl:354-357 | src/ocs_diameter_nas_application_cb.erl:319-322 \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/ocs_diameter_eap_application_cb.erl"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"9160fe95b87d3c1e9520b9cf9fb199f9deb91f423b2f85afaef099366c4d9fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/ocs_diameter_acct_service_fsm_sup.erl:42-45 | src/ocs_diameter_auth_service_fsm_sup.erl:42-45 | src/ocs_eap_ttls_fsm_sup.erl:42-46 \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/ocs_diameter_acct_service_fsm_sup.erl"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"582c3fd4cfc6428fcfa76a70b6ba4052868e920a374bc6341fe1ebf280ffc2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/ocs_diameter_acct_top_sup.erl:60-63 | src/ocs_diameter_auth_sup.erl:60-63 | src/ocs_eap_aka_fsm_sup_sup.erl:60-63 \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/ocs_diameter_acct_top_sup.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0e17ae00a5eb579462440d9c23991310010b2adf88695b72f7cfe8c8310c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/ocs_event_log_sup.erl:60-63 | src/ocs_rest_hub_sup.erl:60-63 | src/ocs_rest_pagination_sup.erl:60-63 | src/ocs_statistics_sup.erl:60-63 \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/ocs_event_log_sup.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"411dc2c272639fd3bac806264dab46df159bf9299e151265263ae0aede333474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/ocs.erl:3654-3657 | src/ocs_event_log_fsm.erl:211-214 | src/ocs_rest_hub_fsm.erl:348-352 | src/ocs_rest_res_nrf.erl:1324-1327 \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/ocs.erl"},"region":{"startLine":3654}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc906f78de4e992b0984146f889ff92019c5888d30b5fa8c758b172e47827002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/ocs_eap_akap_fsm_sup_sup.erl:42-45 | src/ocs_log_rotate_sup.erl:49-52 \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/ocs_eap_akap_fsm_sup_sup.erl"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e7e3bf0d95f76d3ecde7d7cf0083d72479d266363a70c52b7e923ee7f3c3c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/ocs_event.erl:83-84 | src/ocs_event_log.erl:81-83 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/ocs_event.erl"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ee649d5de578bcdb1173ebc1724b4c85707d2bcfff2fca08558610397fa5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201346 lines \u00D7 12): src/ocs_diameter_3gpp_gx_application_cb.erl:191-236 | src/ocs_diameter_3gpp_ro_application_cb.erl:206-251 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:242-287 | src/ocs_diameter_3gpp_s6a_application_cb.erl:554-599 | src/ocs_diameter_3gpp_s6b_application_cb.erl:282-326 | src/ocs_diameter_3gpp_sta_application_cb.erl:326-370 | src/ocs_diameter_3gpp_swm_application_cb.erl:326-370 | src/ocs_diameter_3gpp_swx_application_cb.erl:273-318 | src/ocs_diameter_base_application_cb.erl:182-226 | src/ocs_diameter_cc_application_cb.erl:191-236 | src/ocs_diameter_eap_application_cb.erl:185-230 | src/ocs_diameter_nas_application_cb.erl:184-229 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_gx_application_cb.erl"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c10368120a99367a6c9e66072cef2010c9fd6d928cb8355d53ed9c244c8713"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): src/ocs_diameter_acct_service_fsm.erl:144-188 | src/ocs_diameter_auth_service_fsm.erl:162-206 \u2014 before extracting anything, compare \u0060src/ocs_diameter_acct_service_fsm.erl\u0060 and \u0060src/ocs_diameter_auth_service_fsm.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 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/ocs_diameter_acct_service_fsm.erl:144\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2b2aeb27c0527db7c3a6c6d117f8ecdb065f3e2e59a58a7881fce26c02d064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/ocs.erl:1925-1965 | src/ocs.erl:2165-2205 \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/ocs.erl:1925\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/ocs.erl"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1a100d554e787cbbd8de549c8dce5a869fce4fdb572ecb4e21e3eb7574d824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/ocs_rating.erl:206-246 | src/ocs_rating.erl:512-552 \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/ocs_rating.erl"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c89b8fd1cdb6369ee72ed74284f9d8e5cbfd2e88da9c0e38b31b47272a7cbee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201338 lines \u00D7 2): src/ocs_rating.erl:1480-1513 | src/ocs_rating.erl:1559-1596 \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/ocs_rating.erl"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2156e0212813850acf7de5570d0ac8842f8f4f57ef1609eb5e133f715bbad37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/ocs_rating.erl:1108-1139 | src/ocs_rating.erl:1249-1280 | src/ocs_rating.erl:1384-1415 \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/ocs_rating.erl"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a82ea1a0187b3dd25e7e4992fb7783293dfd76e5511c7136322a8ef447ead1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:1367-1397 | src/ocs_eap_akap_fsm.erl:1385-1415 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1367\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a6c6333b6d98bf606062696cd25fc1617fdabb612e75770b895d67fc22d2a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/ocs_rest_res_role.erl:168-197 | src/ocs_rest_res_user.erl:93-122 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_user.erl\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 205 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/ocs_rest_res_role.erl:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_role.erl"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c51a59a6326a77f8448a00c663159e3f007ca655950c3d00194c7c8f4ea485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): src/ocs_rating.erl:1028-1054 | src/ocs_rating.erl:1083-1111 \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/ocs_rating.erl"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a49d98c6c3199750de58704a6d981fc2120300f274e86fcdb695f0e9d86ea7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 7): src/ocs_rest_res_usage.erl:3238-3261 | src/ocs_rest_res_usage.erl:3279-3302 | src/ocs_rest_res_usage.erl:3321-3344 | src/ocs_rest_res_usage.erl:3354-3377 | src/ocs_rest_res_usage.erl:3387-3410 | src/ocs_rest_res_usage.erl:3420-3443 | src/ocs_rest_res_usage.erl:3453-3476 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":3238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f8178bb65ff9a1e2fa5e0ae059ae2f3411d3b495b97747debcf9929a5ef49c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/ocs_deregister_fsm.erl:211-234 | src/ocs_deregister_fsm.erl:236-259 \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/ocs_deregister_fsm.erl:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_deregister_fsm.erl"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"27eb3042f46fc36af07f75c629b08eb304320b1ab779baf34f7fc42d80f985cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:263-286 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:299-322 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl:263\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb07d5db2b182ce650510ad16f1901a799f7302647697a007942208ed4147fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): src/ocs_rest_res_balance.erl:1049-1070 | src/ocs_rest_res_client.erl:447-468 | src/ocs_rest_res_product.erl:2408-2429 | src/ocs_rest_res_resource.erl:397-418 | src/ocs_rest_res_service.erl:839-860 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e75fad0a2f698c44fe8614416cce44c268fb6611eac4afc80bcfb761ebc0f75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/ocs_rest_res_role.erl:150-171 | src/ocs_rest_res_usage.erl:128-149 | src/ocs_rest_res_user.erl:75-96 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_usage.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/ocs_rest_res_role.erl"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e5c97a21c794675e640a14fa09ee3351e85cab37329d589ce9ee8658460cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/ocs_rating.erl:1051-1072 | src/ocs_rating.erl:1199-1220 \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/ocs_rating.erl"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"60722c008087552ab0a181c10d878483a7899201a097768d09a92659ab8e1309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 5): src/ocs_rest_res_balance.erl:1141-1161 | src/ocs_rest_res_client.erl:535-555 | src/ocs_rest_res_product.erl:2499-2519 | src/ocs_rest_res_resource.erl:476-496 | src/ocs_rest_res_service.erl:927-947 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl:1141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_balance.erl"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e051b3da0998238b98e66f5cf5e7d1959ace76ab910374effa959f9ae726f782"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:1259-1279 | src/ocs_eap_akap_fsm.erl:1277-1297 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1259\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"167c942666a0fa143fde30061fb6dcd6ae66b93f82b357751fa9963247435faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/ocs_log.erl:2845-2865 | src/ocs_log.erl:2867-2886 \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/ocs_log.erl"},"region":{"startLine":2845}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ce3e8c8a7da81fb8e4c2f68143eb9eb752f8fd387ba5140bf02a078e3ac415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/ocs_rating.erl:1629-1648 | src/ocs_rating.erl:1674-1694 \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/ocs_rating.erl"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2f6b6d1e15f26d98574a00cb22bfa2e28047d8fde53207bcc17211f39e868c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): src/ocs.erl:2135-2153 | src/ocs.erl:2221-2240 | src/ocs.erl:2284-2303 \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/ocs.erl:2135\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/ocs.erl"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c0c269274baab033b5128fa5cd25b02624506c711a861738a107f398d01e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/ocs_diameter_acct_service_fsm.erl:254-273 | src/ocs_diameter_auth_service_fsm.erl:263-282 \u2014 before extracting anything, compare \u0060src/ocs_diameter_acct_service_fsm.erl\u0060 and \u0060src/ocs_diameter_auth_service_fsm.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 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/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5239ff72b7bfa319539de13a9c866a0ce94c88a366cd56ae2eb77715ad8f6706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/ocs_rest_res_product.erl:763-782 | src/ocs_rest_res_product.erl:870-888 \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/ocs_rest_res_product.erl:870\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_product.erl"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d0cc873a204fda382f99458da32c73cda175dcc4ca8fc8d4be1fd4ca09a31a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/mod_ocs_rest_get.erl:150-168 | src/mod_ocs_rest_head.erl:144-162 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_get.erl\u0060 and \u0060src/mod_ocs_rest_head.erl\u0060 as WHOLE FILES: this scan already matched 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_get.erl"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13ee3018e89e31919c9da203b7ac65c2b47f798ff08adf8260d951b5cbf3bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/ocs.erl:1881-1899 | src/ocs.erl:2102-2120 \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/ocs.erl:1881\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/ocs.erl"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"371dc9cc5de64d54bb7e088e234b5cb25dbb3beab0a66d100ab073dcbc655c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): src/ocs_rest_res_balance.erl:1081-1098 | src/ocs_rest_res_client.erl:479-496 | src/ocs_rest_res_product.erl:2440-2457 | src/ocs_rest_res_resource.erl:429-446 | src/ocs_rest_res_service.erl:871-888 | src/ocs_rest_res_usage.erl:160-177 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"1858526d6b96f6eb267e783568f13a8186c669c01043061ba9f4b29c6abc8e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1647-1664 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1780-1797 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1840-1857 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1889-1906 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9442ec205d9135fb5518e122064a1a8b5ce213f836b02f5b6e0322e5c1e5e45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/ocs_eap_aka.erl:155-172 | src/ocs_eap_pwd_fsm.erl:1078-1095 | src/ocs_eap_ttls_fsm.erl:1307-1324 \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/ocs_eap_aka.erl"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"788ffc005dae0130ec002bb878801d203892ec03bedb7aee35b1ec2ffba7d7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/ocs.erl:1993-2010 | src/ocs.erl:2252-2269 \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/ocs.erl:1993\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/ocs.erl"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c041514f7389123d80a8ad550b4251ce1f692b9a12cce97046e87d099cbf69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/ocs_diameter_3gpp_s6a_application_cb.erl:688-704 | src/ocs_eap_aka_auc_fsm.erl:664-681 \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/ocs_diameter_3gpp_s6a_application_cb.erl:688\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/ocs_diameter_3gpp_s6a_application_cb.erl"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"706ea26a9fe8148454032920209076c1890ddb4330832b1dadaa74e46e9b4c59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/ocs_rating.erl:1319-1336 | src/ocs_rating.erl:1366-1383 \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/ocs_rating.erl"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d601241e343b4ec7b9594e62159511e19e5a02d813204b4e8c01e33b79487b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/ocs_rest_res_client.erl:353-370 | src/ocs_rest_res_client.erl:377-394 \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/ocs_rest_res_client.erl"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93b472011984608b2298ac24e6b4c8c915aab264edc6b2ed8b7ba15d7fbc032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201317 lines \u00D7 3): src/ocs_eap_aka_fsm.erl:424-440 | src/ocs_eap_akap_fsm.erl:434-450 | src/ocs_eap_pwd_fsm.erl:249-253 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:424\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/ocs_eap_akap_fsm.erl:450\u0060 calls \u0060self\u0060 and \u0060src/ocs_eap_pwd_fsm.erl:253\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/ocs_eap_aka_fsm.erl"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8021712be4a24e708f3ae849c4056bbe6f5061040094390fb72ac960ce716211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:1339-1355 | src/ocs_eap_akap_fsm.erl:1357-1373 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"7677121af465343bd7dcd4e980b219782b947ff02460a1b64c8e9e2e5c0a0d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/ocs_rating.erl:260-277 | src/ocs_rating.erl:299-316 \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/ocs_rating.erl"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"223b4aa0edb5470115fc14502bd9404ca0cf87220fedf2ba92e075152a050b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/ocs_rest_res_usage.erl:695-711 | src/ocs_rest_res_usage.erl:832-848 \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/ocs_rest_res_usage.erl"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eee9accea7b5dcac40439927648109bec1602629d40f3bd1ade341ee776dd33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 4): src/ocs_rating.erl:1172-1186 | src/ocs_rating.erl:1223-1236 | src/ocs_rating.erl:1310-1325 | src/ocs_rating.erl:1357-1372 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5d0ec60213018e2a9e3bcdcf0727ab06e5516922a5fdd9339c8154e3ff20c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/ocs_diameter_3gpp_sta_application_cb.erl:292-307 | src/ocs_diameter_3gpp_swm_application_cb.erl:292-307 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_swm_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_diameter_3gpp_sta_application_cb.erl:292\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_sta_application_cb.erl"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ee60b658febb270c6bc732bd072d8e1d0d8d3231aa365ff27dbffd03c788a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:742-757 | src/ocs_radius_auth_port_server.erl:555-570 \u2014 before extracting anything, compare \u0060src/ocs_diameter_auth_port_server.erl\u0060 and \u0060src/ocs_radius_auth_port_server.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/ocs_diameter_auth_port_server.erl:742\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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"36600e735ef48c652fc89dc7c2460e1199b0184a0d86eb91d9ec35d795aadd32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:758-773 | src/ocs_radius_auth_port_server.erl:539-554 \u2014 before extracting anything, compare \u0060src/ocs_diameter_auth_port_server.erl\u0060 and \u0060src/ocs_radius_auth_port_server.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/ocs_diameter_auth_port_server.erl:758\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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2efd7c8ac6ff5343d8ea322612d3c992159b3ee1827dbec75118761476dca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/ocs_log.erl:3477-3492 | src/ocs_log.erl:3560-3575 \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/ocs_log.erl"},"region":{"startLine":3477}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f6ea84d495e307cb0f13cf6a48c8bb4c1ed08de62f3f735a40dd120dfbf1da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/ocs_rest_res_role.erl:278-294 | src/ocs_rest_res_user.erl:358-373 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_user.erl\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 205 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/ocs_rest_res_role.erl"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbb9822e3e89ccd8e2e95fa61723b4cd752d41fb76e62fe155df071c67bcd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/ocs_rest_res_usage.erl:3084-3099 | src/ocs_rest_res_usage.erl:3112-3127 \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/ocs_rest_res_usage.erl"},"region":{"startLine":3084}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8aadd4d460cf46f810acc3fdbeb175e91fd2719dc801da7663d88ce6c9bd9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 8): src/ocs_rating.erl:1113-1126 | src/ocs_rating.erl:1129-1142 | src/ocs_rating.erl:1254-1267 | src/ocs_rating.erl:1270-1283 | src/ocs_rating.erl:1326-1339 | src/ocs_rating.erl:1373-1386 | src/ocs_rating.erl:1389-1402 | src/ocs_rating.erl:1405-1419 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"127b9ee9986ba65fd3851e3c7df337a1f805b2a74e641809b121e05f37026e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): src/ocs.erl:1877-1891 | src/ocs.erl:1921-1935 | src/ocs.erl:1989-2003 | src/ocs.erl:2098-2112 | src/ocs.erl:2161-2175 | src/ocs.erl:2248-2262 \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/ocs.erl:1877\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/ocs.erl"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37dcd2bdc766e5193bbe671508622abfae73f181d0f519f37c9658d2b627b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/mod_ocs_rest_delete.erl:97-111 | src/mod_ocs_rest_patch.erl:99-113 | src/mod_ocs_rest_post.erl:99-113 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_patch.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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/mod_ocs_rest_delete.erl"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a7fbdc294e5d18e31757baac9ddeadb828e661599911da9cf1c689ded1b00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/ocs_rating.erl:337-351 | src/ocs_rating.erl:368-382 | src/ocs_rating.erl:405-419 \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/ocs_rating.erl"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe0db301651c085d974a3a6e9e5f843b0ca720db3cd593951f06aaffb65b916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/ocs_diameter_acct_service_fsm.erl:103-117 | src/ocs_diameter_auth_service_fsm.erl:121-135 \u2014 before extracting anything, compare \u0060src/ocs_diameter_acct_service_fsm.erl\u0060 and \u0060src/ocs_diameter_auth_service_fsm.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 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/ocs_diameter_acct_service_fsm.erl:103\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"064a752c4820cffc513d3878ef9d98bc6353c2ad8f025abd60e7af71cc770252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:253-267 | src/ocs_radius_auth_port_server.erl:223-237 \u2014 before extracting anything, compare \u0060src/ocs_diameter_auth_port_server.erl\u0060 and \u0060src/ocs_radius_auth_port_server.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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2739e5076141d9f51ed497b22fbf9022ba816f7305f7619be0a89f13e823ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/ocs_diameter_eap_application_cb.erl:320-334 | src/ocs_diameter_nas_application_cb.erl:285-299 \u2014 before extracting anything, compare \u0060src/ocs_diameter_eap_application_cb.erl\u0060 and \u0060src/ocs_diameter_nas_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 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/ocs_diameter_eap_application_cb.erl:320\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_eap_application_cb.erl"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb783481d4c040b25dd267f4cd9b94adac06100b8df50a9fb4657c577461a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:1304-1318 | src/ocs_eap_akap_fsm.erl:1322-1336 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1304\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83eac60fd73cce75a6b511355191d9857d2428604748788be7876311972c7bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/ocs_log.erl:6858-6887 | src/ocs_log.erl:6894-6923 \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/ocs_log.erl"},"region":{"startLine":6858}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2285bb813543f5fc3389f1f8b86292e7422ee81608b10eadc9caf90bac824e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/ocs_rating.erl:947-959 | src/ocs_rating.erl:1343-1357 \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/ocs_rating.erl"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4eaa5099c0ab0a8518f1854dd626647634ab5a99a3b5e9cbe96236425c70385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): src/ocs_rest_res_balance.erl:1135-1148 | src/ocs_rest_res_balance.erl:1160-1173 | src/ocs_rest_res_client.erl:529-542 | src/ocs_rest_res_client.erl:554-567 | src/ocs_rest_res_resource.erl:470-483 | src/ocs_rest_res_resource.erl:495-508 | src/ocs_rest_res_role.erl:363-376 | src/ocs_rest_res_service.erl:921-934 | src/ocs_rest_res_service.erl:946-959 | src/ocs_rest_res_user.erl:479-492 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl:1135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_balance.erl"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b7a16f655c04bd04e2750880af773ea51cd470f6b12d54e47e8749401ba920"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): src/ocs_rest_res_balance.erl:443-456 | src/ocs_rest_res_balance.erl:502-515 | src/ocs_rest_res_balance.erl:543-556 | src/ocs_rest_res_product.erl:89-102 | src/ocs_rest_res_product.erl:148-161 | src/ocs_rest_res_role.erl:77-90 | src/ocs_rest_res_user.erl:209-222 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_product.erl\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 184 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/ocs_rest_res_balance.erl:443\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_balance.erl"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"c366ce4e33ac9d9b1104569d33c13c29e2acef3ed3af4fbeecc89803d8b9986e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): src/ocs.erl:275-288 | src/ocs.erl:458-471 | src/ocs.erl:1000-1013 | src/ocs.erl:1449-1462 | src/ocs.erl:1718-1731 | src/ocs.erl:2321-2334 \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/ocs.erl:275\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs.erl"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0e32bb34f8fd69bdd38a1a16ce001769358f670e3121dea2c57cecd92f7cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/ocs_diameter_3gpp_s6b_application_cb.erl:189-202 | src/ocs_diameter_3gpp_sta_application_cb.erl:202-215 | src/ocs_diameter_3gpp_swm_application_cb.erl:201-214 | src/ocs_diameter_3gpp_swx_application_cb.erl:195-208 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_s6b_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 4 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/ocs_diameter_3gpp_s6b_application_cb.erl:189\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_s6b_application_cb.erl"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c4d8f8f4df5b83fb4245bc8f877fd5f19507b4e6888f37a93778ae7057b62b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/ocs_rest_res_balance.erl:1185-1198 | src/ocs_rest_res_client.erl:579-592 | src/ocs_rest_res_product.erl:2543-2556 | src/ocs_rest_res_service.erl:971-984 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbd6a1f1dbacb23d71f73ab0b4ad3a35bfb2a8f4cc1f4d0ae5ec52d74e48a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): src/ocs_rating.erl:808-820 | src/ocs_rating.erl:859-871 | src/ocs_rating.erl:1069-1082 \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/ocs_rating.erl"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"19378ac602f1af62fb895deed26c67d73e4e3764165226dfda0c9035a36b2193"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/ocs.erl:1205-1233 | src/ocs.erl:1313-1341 \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/ocs.erl:1205\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/ocs.erl"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da7144b91694b00805e2c6447f58ce7b3ee199d3f18ee36daedfc4a1509017d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:1320-1333 | src/ocs_eap_akap_fsm.erl:1338-1351 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab7ea18ebed9b14cb1451b06929eb615f80c954969b5b41df8c1a11a9fd5db2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/ocs_log.erl:5619-5632 | src/ocs_log.erl:5840-5853 \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/ocs_log.erl"},"region":{"startLine":5619}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac02b70d8a884129fcd82f4796046e8a83f089373a58dd4304def5350c7cff22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/ocs_radius_disconnect_fsm.erl:273-285 | src/ocs_radius_disconnect_fsm.erl:290-303 \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/ocs_radius_disconnect_fsm.erl"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8391b1da5ae75d74124307b0d78458fa66074602706d92f68ac488dd892013b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/ocs_rating.erl:782-794 | src/ocs_rating.erl:961-974 \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/ocs_rating.erl"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"1981c31f46c42113511d28291188c68c2138e29ed8b34a65bad033faff027b87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/ocs_rest_res_role.erl:336-349 | src/ocs_rest_res_user.erl:451-464 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_user.erl\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 205 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/ocs_rest_res_role.erl"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"401c46548fca2eaa91a3883bdf83b542936cc0c8ae76bde9aaf942b646056dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): src/ocs_rest_res_hub_balance.erl:161-173 | src/ocs_rest_res_hub_product.erl:165-177 | src/ocs_rest_res_hub_product.erl:262-274 | src/ocs_rest_res_hub_resource.erl:162-174 | src/ocs_rest_res_hub_role.erl:155-167 | src/ocs_rest_res_hub_service.erl:162-174 | src/ocs_rest_res_hub_usage.erl:164-176 | src/ocs_rest_res_hub_user.erl:162-174 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_hub_balance.erl\u0060 and \u0060src/ocs_rest_res_hub_product.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/ocs_rest_res_hub_balance.erl:161\u0060 it begins part-way through the construct above it, so those exact 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/ocs_rest_res_hub_resource.erl:161\u0060 calls \u0060get_hub\u0060, \u0060whereis_name\u0060 and \u0060src/ocs_rest_res_hub_product.erl:260\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/ocs_rest_res_hub_balance.erl"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab64a09ad577ce8a888bfa17bea654349f7a40968d0aac3a71ef7f075712640"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/ocs_rest_res_balance.erl:1067-1079 | src/ocs_rest_res_client.erl:465-477 | src/ocs_rest_res_product.erl:2426-2438 | src/ocs_rest_res_resource.erl:415-427 | src/ocs_rest_res_service.erl:857-869 | src/ocs_rest_res_usage.erl:146-158 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl:1067\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_balance.erl"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7a0c9a8b0854b3395d613a5e9d0a6cd2ec6ef3dc676b410e6b4175ee3c011f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): src/mod_ocs_rest_delete.erl:122-132 | src/mod_ocs_rest_get.erl:179-189 | src/mod_ocs_rest_head.erl:173-183 | src/mod_ocs_rest_patch.erl:135-147 | src/mod_ocs_rest_post.erl:127-139 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_delete.erl"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fceb8c46a8c98faf2e8a010b1caa374fcd46ad55d8aedb25cf0ebb5b2cbd102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 5): src/mod_ocs_rest_delete.erl:276-301 | src/mod_ocs_rest_get.erl:547-572 | src/mod_ocs_rest_head.erl:292-317 | src/mod_ocs_rest_patch.erl:322-347 | src/mod_ocs_rest_post.erl:329-354 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_delete.erl"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e05a95ffd7a24e82c6bbeadc220d6eb19abb30e9b8285873ff7f9d63b2bd91f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/ocs_rating.erl:1007-1019 | src/ocs_rating.erl:1056-1068 | src/ocs_rating.erl:1159-1171 | src/ocs_rating.erl:1204-1216 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4357a78e03220ad5fbb09c23589b786a577671b8e6270521d562284372a19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/ocs.erl:1903-1914 | src/ocs.erl:1971-1982 | src/ocs.erl:2014-2026 \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/ocs.erl:1903\u0060 it begins part-way through the construct above it, so those exact 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/ocs.erl"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"126c62c7250b77db03652138bbf692f56f0dd37474efaf40c20ee9195d05a8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/ocs_rating.erl:773-784 | src/ocs_rating.erl:1303-1314 | src/ocs_rating.erl:1349-1361 \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/ocs_rating.erl"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed2db4e8fab94bb591e94500fbdbdf0fca019d00aae60e30c3f242b47a04acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/ocs_rest_res_role.erl:175-187 | src/ocs_rest_res_usage.erl:153-165 | src/ocs_rest_res_user.erl:100-112 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_usage.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/ocs_rest_res_role.erl"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"397dc98f154a855979d249d03f97a6d2199fbca3e55d8266f97cacc1d322349d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ocs.erl:216-228 | src/ocs.erl:252-264 \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/ocs.erl"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"085a9c0e5fe6c8d80fcb1442fce970219fa5c00608288c36066675772e30eaa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ocs_eap_aka_auc_fsm.erl:156-168 | src/ocs_eap_aka_auc_fsm.erl:170-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b40939755925c00434bc07a1acd1f37f612f435a9dd27f998589a25549f8a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:369-381 | src/ocs_eap_akap_fsm.erl:375-387 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_eap_aka_fsm.erl"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c075258bb07a66cbaa6f01cc4ba38d2fe26b1181869527053f6df43a42ee43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:1087-1099 | src/ocs_eap_akap_fsm.erl:1105-1117 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1087\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"35725bbec179cb617bd0744e1e81cf61921415a369de3db9d041a6aef3976869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/ocs_log.erl:1759-1772 | src/ocs_log.erl:1868-1881 \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/ocs_log.erl"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af9c638ca6f7ad641a693450e725749eb4e1fa117bd3f09aee2348fbfc7f113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/ocs_rating.erl:3800-3811 | src/ocs_rating.erl:3826-3838 \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/ocs_rating.erl"},"region":{"startLine":3800}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5e1604c3ee51a75876990d1a3197f87de4a7bdb088f72ce186bc4107e2e2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/ocs_rest_res_usage.erl:208-219 | src/ocs_rest_res_usage.erl:233-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. 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/ocs_rest_res_usage.erl"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bb5423557e8a365744c34228452fe89babf3f03a539b013f41d5885e83f474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 17): src/ocs_rest_res_balance.erl:1139-1149 | src/ocs_rest_res_balance.erl:1164-1175 | src/ocs_rest_res_client.erl:533-543 | src/ocs_rest_res_client.erl:558-569 | src/ocs_rest_res_resource.erl:474-484 | src/ocs_rest_res_resource.erl:499-510 | src/ocs_rest_res_role.erl:367-378 | src/ocs_rest_res_service.erl:925-935 | src/ocs_rest_res_service.erl:950-961 | src/ocs_rest_res_usage.erl:3252-3262 | src/ocs_rest_res_usage.erl:3293-3303 | src/ocs_rest_res_usage.erl:3335-3345 | src/ocs_rest_res_usage.erl:3368-3378 | src/ocs_rest_res_usage.erl:3401-3411 | src/ocs_rest_res_usage.erl:3434-3444 | src/ocs_rest_res_usage.erl:3467-3478 | src/ocs_rest_res_user.erl:483-494 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl:1139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_balance.erl"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e968ac42416be09df03f18d00969a38f5ee080b5d7e95cef7a8bab0b686712dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): src/ocs_rest_res_balance.erl:1044-1055 | src/ocs_rest_res_client.erl:442-453 | src/ocs_rest_res_product.erl:2403-2414 | src/ocs_rest_res_resource.erl:392-403 | src/ocs_rest_res_role.erl:145-156 | src/ocs_rest_res_service.erl:834-845 | src/ocs_rest_res_usage.erl:123-134 | src/ocs_rest_res_user.erl:70-81 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl:1044\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_balance.erl"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"060f3219a032403cd46d817be0dcbbe9b245a97ea59f0ccbe30c56e323dce50e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/ocs_rest_res_balance.erl:1125-1136 | src/ocs_rest_res_client.erl:519-530 | src/ocs_rest_res_product.erl:2483-2494 | src/ocs_rest_res_resource.erl:460-471 | src/ocs_rest_res_service.erl:911-922 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl:1125\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/ocs_rest_res_balance.erl"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80a9affc7d660af188e8a40425f57d793b33663959b83324262457c3cfd365e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1337-1348 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1359-1370 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1376-1387 \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/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1337\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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba787fae6b75acc779ebc01b42038c3e75b9ca32a2f154cb34f162730c49168a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/ocs_rest_res_balance.erl:427-438 | src/ocs_rest_res_balance.erl:477-488 | src/ocs_rest_res_balance.erl:492-503 \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/ocs_rest_res_balance.erl"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cf6b015c0fa9af90c29a7debdc009d305b6bbbab4b854a1594a1bf7d5749c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ocs.erl:1164-1176 | src/ocs.erl:1266-1278 \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/ocs.erl:1164\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs.erl"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d109bb177e2d2e692d80a83cb34af994318e01e2556c1af54d8a87c66734a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/ocs.erl:1822-1833 | src/ocs.erl:1854-1865 \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/ocs.erl:1822\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs.erl"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9eaa41022f0d38b93550389a8e3acad6813c4ba74dbb926efa54a1efa802f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:411-422 | src/ocs_eap_akap_fsm.erl:421-432 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:411\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29e82e4a718f8c4e4b04548942841f3c2fb1bf68a448def24e0fd8cd7aeb7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:571-582 | src/ocs_eap_aka_fsm.erl:905-916 \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/ocs_eap_aka_fsm.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/ocs_eap_aka_fsm.erl"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c2c274726455c7c00ce15180b3f7841e84fe629b50adb6c11d7360251da9fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/ocs_eap_akap_fsm.erl:588-599 | src/ocs_eap_akap_fsm.erl:924-935 \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/ocs_eap_akap_fsm.erl:588\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_akap_fsm.erl"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ca9c2041f19ec205444bc7701104e72b5437a6ca190a98d6981d7765a76ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/ocs_eap_pwd_fsm.erl:1139-1149 | src/ocs_eap_pwd_fsm.erl:1164-1175 \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/ocs_eap_pwd_fsm.erl:1139\u0060 it begins part-way through the construct above it, so those exact 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/ocs_eap_pwd_fsm.erl"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"975fce22e865abf3fb18ca9602c6560e7c4f397261892a8849ecdb58dfa1da2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/ocs_rest_res_hub_balance.erl:135-145 | src/ocs_rest_res_hub_resource.erl:137-147 | src/ocs_rest_res_hub_role.erl:130-140 | src/ocs_rest_res_hub_service.erl:137-147 | src/ocs_rest_res_hub_usage.erl:138-148 | src/ocs_rest_res_hub_user.erl:137-147 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_hub_balance.erl\u0060 and \u0060src/ocs_rest_res_hub_resource.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 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/ocs_rest_res_hub_balance.erl"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a651032d4220138660e1db582456a5786b4da9c95f74255750257efcf358e557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201311 lines \u00D7 6): src/mod_ocs_rest_delete.erl:230-240 | src/mod_ocs_rest_get.erl:489-499 | src/mod_ocs_rest_head.erl:234-244 | src/mod_ocs_rest_patch.erl:253-263 | src/mod_ocs_rest_post.erl:262-265 | src/mod_ocs_rest_post.erl:271-281 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_delete.erl"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"601714d0cb5f473a87132222f6201e4c7ea1671ac71f9efc9797c865a6c6197d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/mod_ocs_rest_delete.erl:264-274 | src/mod_ocs_rest_get.erl:523-533 | src/mod_ocs_rest_head.erl:268-278 | src/mod_ocs_rest_patch.erl:299-309 | src/mod_ocs_rest_post.erl:305-315 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_delete.erl"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"72824a1ea151ab08f8f5cb3c9ec16326e8c46ad6448a5acc74f56047301c0fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/ocs_diameter_auth_port_server.erl:558-568 | src/ocs_diameter_auth_port_server.erl:579-589 | src/ocs_diameter_auth_port_server.erl:600-610 | src/ocs_diameter_auth_port_server.erl:621-631 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_auth_port_server.erl"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0a9490eda21a5bcc460688b07771fea4d539865c06802fc4ebe0a6ac30f5c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/mod_ocs_rest_get.erl:535-545 | src/mod_ocs_rest_head.erl:280-290 | src/mod_ocs_rest_post.erl:317-327 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_get.erl\u0060 and \u0060src/mod_ocs_rest_head.erl\u0060 as WHOLE FILES: this scan already matched 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_get.erl"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdec286a0d29304d7de7384b1d4669b70734ea3a582a04eb4db528fb6f32b8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 3): src/ocs_deregister_fsm.erl:331-341 | src/ocs_terminate_fsm.erl:352-359 | src/ocs_terminate_fsm.erl:368-375 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_deregister_fsm.erl:331\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_deregister_fsm.erl"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"502defcf6423b61013fb0cb510eb6b4cd9ab217a1e4881b1d732f846878eccd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/ocs_diameter_auth_port_server.erl:647-657 | src/ocs_diameter_auth_port_server.erl:664-674 | src/ocs_diameter_auth_port_server.erl:681-691 \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/ocs_diameter_auth_port_server.erl:647\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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5203c108eb4905aea3387f7745d5de639ba7f53578d787ec354277a6920461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/ocs_radius_auth_port_server.erl:463-473 | src/ocs_radius_auth_port_server.erl:481-491 | src/ocs_radius_auth_port_server.erl:499-509 \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/ocs_radius_auth_port_server.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/ocs_radius_auth_port_server.erl"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65d4c59446cef08458430cec72cef301c601bc59c89c92bd07daaf228941793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/ocs_rest_res_product.erl:522-532 | src/ocs_rest_res_product.erl:663-673 | src/ocs_rest_res_service.erl:225-235 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_service.erl\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 238 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/ocs_rest_res_product.erl"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"8844769ca4daa255443ec772afa0587ae15691f86e924f55f4487dabf5e4e23c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/ocs_terminate_fsm.erl:230-240 | src/ocs_terminate_fsm.erl:245-255 | src/ocs_terminate_fsm.erl:259-269 \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/ocs_terminate_fsm.erl:230\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_terminate_fsm.erl"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"24724c5be9991292a2e40b94c7a1b8f926bda1a057b6992b053c112386a067ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs.erl:1372-1382 | src/ocs.erl:1384-1394 \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/ocs.erl:1372\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs.erl"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d43e1e225296cdd6eea4ea34858320ca0b694810fcf808412273e2bf479171c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/ocs.erl:2056-2065 | src/ocs.erl:2083-2093 \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/ocs.erl:2056\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/ocs.erl"},"region":{"startLine":2056}}}],"partialFingerprints":{"codehealthFindingId/v1":"081ce146cf6cbd2dcf5fa0196272286b1e9990f77395207d0f86c274c0a035f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:441-450 | src/ocs_eap_akap_fsm.erl:451-461 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:441\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"584ceba1c186c2542649157076d07dc153a128fcae06791daa7d025660e8fe4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:862-872 | src/ocs_eap_akap_fsm.erl:881-891 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e910b4dcb163dc2538f64691618fc355305d8e5d7b17ee82838657ef689484c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_log.erl:2844-2854 | src/ocs_log.erl:2887-2897 \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/ocs_log.erl"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"1544ee6b6e05eb55317e679e223c3cdc174008a29f43b759ee1dfe539488c034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_log.erl:2908-2918 | src/ocs_log.erl:2951-2961 \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/ocs_log.erl"},"region":{"startLine":2908}}}],"partialFingerprints":{"codehealthFindingId/v1":"93995e6024d505b08660e05d8ca1587fc9ba05376a01bc16a704688215e48874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rating.erl:2293-2303 | src/ocs_rating.erl:2375-2385 \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/ocs_rating.erl"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"163a6f1f3e081447ab755b76b47c7d8184157fe46d2d6c7a17bae402c436186f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rating.erl:3362-3372 | src/ocs_rating.erl:3418-3428 \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/ocs_rating.erl"},"region":{"startLine":3362}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc78e5f04d081a1ae8ff21c897c6d63cf042494ca4bea3f90416bdf7b144d991"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_balance.erl:330-340 | src/ocs_rest_res_balance.erl:390-400 \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/ocs_rest_res_balance.erl:330\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_balance.erl"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd07ca801a87bebdbb5def0b9f0d01debd92da8d62e27a50186953c6da929089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_nrf.erl:257-267 | src/ocs_rest_res_nrf.erl:386-396 \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/ocs_rest_res_nrf.erl:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_nrf.erl"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"762d3aad56f2f445356be69b59a558d4ad1f761782b4eafa2b1446c07e94c8fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_product.erl:79-89 | src/ocs_rest_res_product.erl:851-861 \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/ocs_rest_res_product.erl"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd50e23b30870964ff3044b31c548f94d7b0a3b3a7cb6568a892123899f7c328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_product.erl:717-727 | src/ocs_rest_res_service.erl:310-320 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_service.erl\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 238 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/ocs_rest_res_service.erl:310\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_product.erl"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a09b344a3c44162e647a87d9379d79fdd7377e463e5eeb94f41f726a3f0130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_usage.erl:2896-2906 | src/ocs_rest_res_usage.erl:2910-2920 \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/ocs_rest_res_usage.erl"},"region":{"startLine":2896}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27d64f945881089b61725a78422b05395e6a58cc5c08bded5eefc2885676f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_user.erl:144-154 | src/ocs_rest_res_user.erl:499-509 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_user.erl"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b7e1fbf19fd6ff98c197b43057d7db669cda86009310b196a75f2df53bb86b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_simple_auth_fsm.erl:397-407 | src/ocs_simple_auth_fsm.erl:416-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_simple_auth_fsm.erl:397\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_simple_auth_fsm.erl"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"6724fe36e87a9e39fe88c06550a71deee97c81c4fc4a25d0c566f7cf88730b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): src/mod_ocs_rest_delete.erl:242-261 | src/mod_ocs_rest_get.erl:501-520 | src/mod_ocs_rest_head.erl:246-265 | src/mod_ocs_rest_patch.erl:265-284 | src/mod_ocs_rest_post.erl:283-302 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_delete.erl"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe035581e7b88bf605e1b2ae9fdcd758c979d80c3aba04568d56e2b3187668c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/ocs_diameter_auth_port_server.erl:647-655 | src/ocs_diameter_auth_port_server.erl:664-672 | src/ocs_diameter_auth_port_server.erl:681-689 | src/ocs_diameter_auth_port_server.erl:696-705 \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. 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/ocs_diameter_auth_port_server.erl:645\u0060 calls \u0060which_children\u0060, \u0060keyfind\u0060 and \u0060src/ocs_diameter_auth_port_server.erl:695\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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"0363d5b8a1dc2b2ccaea4fe40b5592928b161c015df3ce1141ffdd5cdaba5118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/ocs_log.erl:4200-4210 | src/ocs_log.erl:4219-4229 | src/ocs_log.erl:4318-4328 | src/ocs_log.erl:4456-4466 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":4200}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c68a1f4d7f4aecf2a7a0b2d3100debb64495f37d16766724037d4568873c1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/ocs_radius_auth_port_server.erl:463-471 | src/ocs_radius_auth_port_server.erl:481-489 | src/ocs_radius_auth_port_server.erl:499-507 | src/ocs_radius_auth_port_server.erl:515-524 \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/ocs_radius_auth_port_server.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. 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/ocs_radius_auth_port_server.erl:461\u0060 calls \u0060which_children\u0060, \u0060keyfind\u0060 and \u0060src/ocs_radius_auth_port_server.erl:514\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/ocs_radius_auth_port_server.erl"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefd2cf21b9bcc090f441065407767245401b4f1d64d962f3779380b1bbdebfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs.erl:2118-2127 | src/ocs.erl:2267-2276 \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/ocs.erl:2118\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/ocs.erl"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"05328b1158a392dd9e3c589021e50a3324f9eff1fa7a256b6fcc937906b563f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_deregister_fsm.erl:188-197 | src/ocs_deregister_fsm.erl:200-209 \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/ocs_deregister_fsm.erl:188\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_deregister_fsm.erl"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9052ada11aad3ffbbc33a63479294c2bea00eb040459bc42c2156bc6f7d836b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:841-850 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2001-2010 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl:841\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cc7e397ea054b55390635eefe569e65a870aa4043fd91de4c863e5ff8ba355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:858-867 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2013-2022 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl:858\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b6d23d3bc6d064487c93a8fb87593af9992ba4ccf440209147d4421da6bf5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:870-879 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2030-2039 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl:870\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6252333fa6830925794fb03fac0cd9ce883a15b0fec54b614fb7cd3e6f925f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1017-1026 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1171-1180 \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/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1017\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"38888539e9b67d7b6c0aa9bbbffbda5895af788f116df45bc71b1d386c5bc7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201317 lines \u00D7 3): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1022-1038 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1090-1099 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1176-1192 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02c6c49969cb4606f8b21023978525bc9257963f9472a88977be8004040989b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/ocs_diameter_3gpp_sta_application_cb.erl:221-229 | src/ocs_diameter_3gpp_swm_application_cb.erl:220-229 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_swm_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_diameter_3gpp_sta_application_cb.erl:221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_sta_application_cb.erl"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"04793d9ceb5da4b8796d1c38d5fe87cb251132680d611f9f11a9eff2f8531c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/ocs_diameter_acct_service_fsm.erl:331-350 | src/ocs_diameter_auth_service_fsm.erl:380-399 \u2014 before extracting anything, compare \u0060src/ocs_diameter_acct_service_fsm.erl\u0060 and \u0060src/ocs_diameter_auth_service_fsm.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 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/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc2ab8d0e2ab01a0c421f3c97094b51dbae1ecca5ccc8625a96174f05619dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_eap_aka.erl:181-190 | src/ocs_eap_pwd.erl:139-148 \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/ocs_eap_aka.erl"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7568c59fa09a8e94b9b3e4bb02b93b77082c1d28d1dd2516f18fd0bbe656fa0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_eap_aka_auc_fsm.erl:346-355 | src/ocs_eap_aka_auc_fsm.erl:381-390 \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/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"c945532b13a920a3a9bf7eef05f98e7a4d0d726e2c3da9d2bad15605d8843c06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:570-577 | src/ocs_eap_aka_fsm.erl:1094-1103 \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/ocs_eap_aka_fsm.erl"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2a120b51aeff9459f39bce5c38dd5315383fa16ffa73224376e9bee9c82eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:851-860 | src/ocs_eap_akap_fsm.erl:870-879 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eba60918f1fccf50f3eece9cc04d071dca7f3691e4a3611e602a6cf32af4bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:888-897 | src/ocs_eap_akap_fsm.erl:907-916 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e62b987dcf8a3ba8aa5fbf1da144e3bd9614178c94737640c7792d15454afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/ocs_eap_akap_fsm.erl:587-594 | src/ocs_eap_akap_fsm.erl:1112-1121 \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/ocs_eap_akap_fsm.erl"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1194d12a886c6e4e34150c918b503720418f00758873c563a912e707043099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_log.erl:991-1000 | src/ocs_log.erl:1258-1267 \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/ocs_log.erl:991\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_log.erl"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef32aff7daf2fa6902423d25caa9f70c03525f040da172c2554f91ffb443f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/ocs_log.erl:1148-1157 | src/ocs_log.erl:1161-1169 \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/ocs_log.erl"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"933d72b645623700016862639519065aaba81dc7568c4968d62fccf48f5350d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_log.erl:2003-2012 | src/ocs_log.erl:2024-2033 \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/ocs_log.erl"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9a26116e91aae1d8ce05362bccd9851a93dd2c90b415f19a3df042dee2ace2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/ocs_log_rotate_server.erl:236-244 | src/ocs_log_rotate_server.erl:253-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/ocs_log_rotate_server.erl"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdef4f3b6b89b433d808c9e3b5227b4f336a550ab20a4491794b7ac8789f842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_rating.erl:188-197 | src/ocs_rating.erl:494-503 \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/ocs_rating.erl"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf4f731490c9812819603f52652c77b9848f55417addd26745d0926ba39f545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_rest_res_nrf.erl:747-756 | src/ocs_rest_res_nrf.erl:787-796 \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/ocs_rest_res_nrf.erl"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34e51a1a7f4a6655846bc4d45ff68047231d4b52c4d7ac0df3542ebe47ee600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_rest_res_nrf.erl:759-768 | src/ocs_rest_res_nrf.erl:799-808 \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/ocs_rest_res_nrf.erl"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a85526f9c2a5cbfbf1eb92af819233f3f196ddb10bb0962975b75ba30cd496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_rest_res_nrf.erl:771-780 | src/ocs_rest_res_nrf.erl:811-820 \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/ocs_rest_res_nrf.erl"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"702555d5606d6150e96a60c7c443682e502fe005453f1ce4c1adb75d240e1ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_rest_res_usage.erl:3101-3110 | src/ocs_rest_res_usage.erl:3129-3138 \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/ocs_rest_res_usage.erl"},"region":{"startLine":3101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f949f418bbb7569aa6a6c17c2973c820ccfa4175a34906a85e52b395457a8de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_rest_res_usage.erl:4351-4360 | src/ocs_rest_res_usage.erl:4379-4388 \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/ocs_rest_res_usage.erl"},"region":{"startLine":4351}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf08e5620efa1ebafa1a687c7ce2dea7dc5537c660e8d5aabd96626cc475d48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): src/ocs_eap_aka_fsm.erl:578-586 | src/ocs_eap_aka_fsm.erl:858-866 | src/ocs_eap_aka_fsm.erl:870-878 | src/ocs_eap_aka_fsm.erl:884-892 | src/ocs_eap_aka_fsm.erl:895-903 | src/ocs_eap_aka_fsm.erl:912-920 \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/ocs_eap_aka_fsm.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/ocs_eap_aka_fsm.erl:881\u0060 calls \u0060cast\u0060, \u0060self\u0060 and \u0060src/ocs_eap_aka_fsm.erl:895\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/ocs_eap_aka_fsm.erl"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd9dc346c83331ad04a6f36c5facddd8d22720d8fd96333b3cbf90f3e037724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): src/ocs_eap_akap_fsm.erl:595-603 | src/ocs_eap_akap_fsm.erl:877-885 | src/ocs_eap_akap_fsm.erl:889-897 | src/ocs_eap_akap_fsm.erl:903-911 | src/ocs_eap_akap_fsm.erl:914-922 \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/ocs_eap_akap_fsm.erl:595\u0060 it begins part-way through the construct above it, so those exact 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/ocs_eap_akap_fsm.erl:900\u0060 calls \u0060cast\u0060, \u0060self\u0060 and \u0060src/ocs_eap_akap_fsm.erl:914\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/ocs_eap_akap_fsm.erl"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edced773ff8ef6cb4fbe046e5a6a98896899b4dab49db69facdde695193317f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:1378-1386 | src/ocs_eap_aka_fsm.erl:1399-1407 | src/ocs_eap_akap_fsm.erl:1396-1404 | src/ocs_eap_akap_fsm.erl:1417-1425 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1378\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0fc8e87ecbe4f1817d67d0b5278e64e0767c1b6c22aff05576de33bd1e4c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/ocs_rest_res_product.erl:594-602 | src/ocs_rest_res_product.erl:730-738 | src/ocs_rest_res_service.erl:323-331 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_service.erl\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 238 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/ocs_rest_res_service.erl:323\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_product.erl"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1cfcbb12e8f9c76bc5b012a1fa103ed4eaf111aca2cc2efd74e0edcaf70462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): src/ocs_rest_res_product.erl:1033-1041 | src/ocs_rest_res_product.erl:1054-1062 | src/ocs_rest_res_product.erl:1146-1153 \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/ocs_rest_res_product.erl:1033\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/ocs_rest_res_product.erl"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aaacd5362af33e20ac5b7d3cbf055a2dca9c908b30f9708d3de8c3730e417e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/ocs_rest_res_product.erl:1105-1113 | src/ocs_rest_res_product.erl:1128-1136 | src/ocs_rest_res_product.erl:1172-1180 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_product.erl"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a291fa0657db83e12a5eb49c5e771ad0f11b0cf8633e4ff937c95970a0f73261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/ocs_rest_res_role.erl:343-352 | src/ocs_rest_res_usage.erl:3101-3109 | src/ocs_rest_res_usage.erl:3129-3137 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_usage.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 88 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/ocs_rest_res_role.erl"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b517c00bd0557d6439353c857b7b5504de84564022f8b06608726dca0cfc55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/ocs_rest_res_usage.erl:741-749 | src/ocs_rest_res_usage.erl:769-777 | src/ocs_rest_res_usage.erl:788-796 \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/ocs_rest_res_usage.erl"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0f7985daee55e9d493174e4015a51d14ef374f37145befd3656118b523da4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_app.erl:632-640 | src/ocs_app.erl:1027-1035 \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/ocs_app.erl"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a1917cdd2756b26e81236587068ce5a2a459e70d00acea4d80107ffa090857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_deregister_fsm.erl:190-198 | src/ocs_deregister_fsm.erl:227-235 \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/ocs_deregister_fsm.erl:190\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/ocs_deregister_fsm.erl"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c71e5fee5d77c48e3b6ad909191d8872ced8246552bec4bd7932209a84e40fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:433-441 | src/ocs_diameter_auth_port_server.erl:484-491 \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/ocs_diameter_auth_port_server.erl:433\u0060 it begins part-way through the construct above it, so those exact 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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2511b75a54da10c79a77885a7493cae5049976d89b64ed1ae2d62673100493b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:488-496 | src/ocs_diameter_auth_port_server.erl:507-515 \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/ocs_diameter_auth_port_server.erl:488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f81ae45f0cb1db89776e065def7c87eb8d73f7643b07fb3f8e1699238dda66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:540-548 | src/ocs_eap_akap_fsm.erl:553-561 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:540\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"91eb719351701d63ad310827eb882e92769a429c54009e036f8a3e70d642d117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:899-907 | src/ocs_eap_akap_fsm.erl:918-926 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"c099519f9f1f82f26a1bd7284f4fee2bb0a5d4e82ca0e8b3e08ef54161a44a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_eap_codec.erl:511-519 | src/ocs_eap_codec.erl:536-544 \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/ocs_eap_codec.erl"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcc1377044a62a72c6957e622f6ab53fb755704c646a579ee11019407b37fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rating.erl:831-839 | src/ocs_rating.erl:882-890 \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/ocs_rating.erl"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4400d3e0da1b8b6c0ca4e820962f01aad7af6e56156cc9856f8f4294340dde7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rating.erl:1436-1444 | src/ocs_rating.erl:1528-1536 \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/ocs_rating.erl"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"c069f7bce0858d638d92fb7ff18f2573b4aed51d33de5b1a034d19929021c07a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rating.erl:2308-2316 | src/ocs_rating.erl:2390-2398 \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/ocs_rating.erl"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f3dd5d15ba46a6092f9dfa91f805b9b3ea29ec2cfb377f5c56ccee2550086e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_nrf.erl:161-169 | src/ocs_rest_res_nrf.erl:284-292 \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/ocs_rest_res_nrf.erl:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_nrf.erl"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"f786a15585c8cf8baa880bad665608a114d9ca1a66d8662a6db3234f112a2c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_product.erl:1345-1353 | src/ocs_rest_res_resource.erl:992-1000 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_resource.erl\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 209 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/ocs_rest_res_product.erl"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aea930d5c0b49cd496e310d261345b9b3e53fd7b803a1a274b993d9ac6639c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_product.erl:1356-1364 | src/ocs_rest_res_resource.erl:1003-1011 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_resource.erl\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 209 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/ocs_rest_res_product.erl"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"c462d9c623fca1b4f7fba0a3ab60d582efb0e89acdb0141afaff93679f8b91c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_product.erl:1367-1375 | src/ocs_rest_res_resource.erl:1014-1022 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_resource.erl\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 209 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/ocs_rest_res_product.erl"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f1c5bda82dddd2854b18298a9b27277d25bc348cf6b40e9cedb9ecb8ab52af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_product.erl:1379-1387 | src/ocs_rest_res_resource.erl:1026-1034 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_resource.erl\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 209 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/ocs_rest_res_product.erl"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6007669d1739fb18a86ab5ab9e5f5cbc5c3e105504fbb27e4d3adca9bb259d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_usage.erl:721-729 | src/ocs_rest_res_usage.erl:842-850 \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/ocs_rest_res_usage.erl"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0982520014bd6c12e78dbeae450fdd6a9d9a853c4ea25ac672ded3fdcd35a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_usage.erl:1619-1627 | src/ocs_rest_res_usage.erl:1633-1641 \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/ocs_rest_res_usage.erl"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e95cedddb379d6efb02bd701c1b311239201e89d630f45be358eaf9309d512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_usage.erl:4294-4302 | src/ocs_rest_res_usage.erl:4315-4323 \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/ocs_rest_res_usage.erl"},"region":{"startLine":4294}}}],"partialFingerprints":{"codehealthFindingId/v1":"af981e0fdc2015ac52a04c1ad87b31d58b0397a48f4f5bfbcf81fac70b9f45bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 9): src/mod_ocs_rest_delete.erl:214-220 | src/mod_ocs_rest_delete.erl:256-262 | src/mod_ocs_rest_get.erl:473-479 | src/mod_ocs_rest_get.erl:515-521 | src/mod_ocs_rest_head.erl:218-224 | src/mod_ocs_rest_head.erl:260-266 | src/mod_ocs_rest_patch.erl:232-239 | src/mod_ocs_rest_patch.erl:279-285 | src/mod_ocs_rest_post.erl:297-303 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_delete.erl"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc13eba3b2f8a27c264c4f5b4cf83470ea6d9fecd2a9a655517f79b76c0f02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): src/ocs_rest_res_balance.erl:1065-1072 | src/ocs_rest_res_client.erl:463-470 | src/ocs_rest_res_product.erl:2424-2431 | src/ocs_rest_res_resource.erl:413-420 | src/ocs_rest_res_role.erl:166-173 | src/ocs_rest_res_service.erl:855-862 | src/ocs_rest_res_usage.erl:144-151 | src/ocs_rest_res_user.erl:91-98 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4ae6bf1e1a92e696f5e8a28da3ba2c834b9324b2b60d8bfb597e2e16d937a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): src/ocs_eap_aka_fsm.erl:1300-1307 | src/ocs_eap_aka_fsm.erl:1329-1336 | src/ocs_eap_aka_fsm.erl:1357-1364 | src/ocs_eap_akap_fsm.erl:1318-1325 | src/ocs_eap_akap_fsm.erl:1347-1354 | src/ocs_eap_akap_fsm.erl:1375-1382 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_eap_aka_fsm.erl"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"00842645dc8373272b12ea49e76fa054654452ffe4ee6443c6cbbf5ba58d5dae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:1262-1269 | src/ocs_eap_aka_fsm.erl:1281-1288 | src/ocs_eap_akap_fsm.erl:1280-1287 | src/ocs_eap_akap_fsm.erl:1299-1306 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1262\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aefb900afb1ad80c0607d4fc262a858006cec6da2a80a3b7ab06fdff9d65770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:1389-1395 | src/ocs_eap_aka_fsm.erl:1410-1417 | src/ocs_eap_akap_fsm.erl:1407-1413 | src/ocs_eap_akap_fsm.erl:1428-1435 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1389\u0060 it begins part-way through the construct above it, so those exact 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f39563463a19167873d039c069a21ec77a88fd3441ca9f9a8c5b33289c065ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/ocs.erl:2124-2131 | src/ocs.erl:2210-2217 | src/ocs.erl:2273-2280 \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/ocs.erl:2124\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/ocs.erl"},"region":{"startLine":2124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bfdd7ef1a09bf610005840a640aabb10f5916e48635fda6fca3826464d839e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): src/ocs_diameter_auth_port_server.erl:570-577 | src/ocs_diameter_auth_port_server.erl:591-598 | src/ocs_diameter_auth_port_server.erl:612-619 | src/ocs_diameter_auth_port_server.erl:632-638 \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/ocs_diameter_auth_port_server.erl:570\u0060 it begins part-way through the construct above it, so those exact 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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66f3181e839f97fda3c46f618e1c19b6304150b5ed4522ab0761367ce34243d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): src/ocs_rating.erl:2408-2415 | src/ocs_rating.erl:2423-2430 | src/ocs_rating.erl:2453-2459 \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/ocs_rating.erl"},"region":{"startLine":2408}}}],"partialFingerprints":{"codehealthFindingId/v1":"f902727c0361ed7f7b1a60e7f303f4bb24767838091c9e669d165726e44eebe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/ocs_rest_res_product.erl:585-592 | src/ocs_rest_res_product.erl:721-728 | src/ocs_rest_res_service.erl:314-321 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_service.erl\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 238 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/ocs_rest_res_service.erl:314\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_product.erl"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede328360f415723dedcd5da4ca71373c6fdc1ac17980fe3d19d5eb4d77a130c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/ocs_rest_res_usage.erl:3084-3091 | src/ocs_rest_res_usage.erl:3112-3119 | src/ocs_rest_res_usage.erl:3140-3147 \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/ocs_rest_res_usage.erl"},"region":{"startLine":3084}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c04a58da1f3b871fe731c8a82a8cdd35208a608ab166165ffd01f9ce1d81f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ocs.erl:1150-1162 | src/ocs.erl:1252-1264 \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/ocs.erl:1150\u0060 it begins part-way through the construct above it, so those exact 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/ocs.erl:1250\u0060 calls \u0060read\u0060, \u0060list_to_binary\u0060 and \u0060src/ocs.erl:1149\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/ocs.erl"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d2904d8eb7845bd0c7a59f1a93fc2ea92a51b796d037888c2796f3883b5b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ocs_diameter_3gpp_sta_application_cb.erl:283-290 | src/ocs_diameter_3gpp_swm_application_cb.erl:283-290 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_swm_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_sta_application_cb.erl"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff28e1e54c35a61e454e5199bf528e1192f9b652dc4545cd1cdacd6008daaef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:244-251 | src/ocs_radius_auth_port_server.erl:214-221 \u2014 before extracting anything, compare \u0060src/ocs_diameter_auth_port_server.erl\u0060 and \u0060src/ocs_radius_auth_port_server.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/ocs_diameter_auth_port_server.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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c758b12d12c22233891336e6d39d5867295058415e40068c291b6e8fa8a56915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ocs_eap_akap_fsm.erl:391-398 | src/ocs_eap_akap_fsm.erl:404-411 \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/ocs_eap_akap_fsm.erl:391\u0060 it begins part-way through the construct above it, so those exact 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/ocs_eap_akap_fsm.erl:402\u0060 calls \u0060decrypt_imsi\u0060, \u0060compressed_imsi\u0060 and \u0060src/ocs_eap_akap_fsm.erl:390\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/ocs_eap_akap_fsm.erl"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"62eee520af9198984d089c1e53bcd4657099381e50770aabb8f1f70d81764bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ocs_log.erl:3509-3516 | src/ocs_log.erl:3521-3528 \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/ocs_log.erl:3509\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_log.erl"},"region":{"startLine":3509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50d97c4bbee038581d4fc00887a692a84de2a80347a2b70444fb619b47c1343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ocs_rating.erl:1000-1007 | src/ocs_rating.erl:1295-1302 \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/ocs_rating.erl"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2c36145cc70c1d1cc36b3d2d2ca7eae5542aa481368fc0e5c27141ae27d067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ocs_rating.erl:1598-1605 | src/ocs_rating.erl:1651-1658 \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/ocs_rating.erl"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"5467195937ce6410e1678011924391370ded843c4cbd5445246d8d33b68d9f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ocs_rest_res_balance.erl:71-78 | src/ocs_rest_res_usage.erl:3072-3079 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_usage.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"83710bdd90d5d6de194ce4cc2c721fbaaf13e8758c484dd0c657982027fdf7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ocs_rest_res_hub_balance.erl:91-97 | src/ocs_rest_res_hub_balance.erl:102-109 \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/ocs_rest_res_hub_balance.erl:91\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/ocs_rest_res_hub_balance.erl"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2b6b6b37ff222b5948432f6fa80f408df6ec9d7a9ef7e6707682836d6f6f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ocs_rest_res_hub_product.erl:95-101 | src/ocs_rest_res_hub_product.erl:106-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_rest_res_hub_product.erl:95\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/ocs_rest_res_hub_product.erl"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"10381870e7c3803898e17cf300553a3af78e5ed03128c44b31ca12c2510c09ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ocs_rest_res_hub_product.erl:198-204 | src/ocs_rest_res_hub_product.erl:209-216 \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/ocs_rest_res_hub_product.erl"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"302b99b18fe5b3a95ec50cea3f99a7444b06c7eed8f8052b527a5b4ba8d7b958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ocs_rest_res_hub_resource.erl:93-99 | src/ocs_rest_res_hub_resource.erl:104-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/ocs_rest_res_hub_resource.erl:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/ocs_rest_res_hub_resource.erl"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88de8947aeef0f5cdb925b9ba49f3179e715f2e47ab5961de6e0e7c07252884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ocs_rest_res_hub_service.erl:93-99 | src/ocs_rest_res_hub_service.erl:104-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/ocs_rest_res_hub_service.erl:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/ocs_rest_res_hub_service.erl"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a41315869acf8ea0e1b6cb16cfc1a0490f5d4aaaa9c1a3c302203f2fa4b932e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ocs_rest_res_hub_usage.erl:93-99 | src/ocs_rest_res_hub_usage.erl:104-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/ocs_rest_res_hub_usage.erl:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/ocs_rest_res_hub_usage.erl"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62b4968483d8986050d6ce8544545b8b62f71c65e52cdaa9d740db3a832fac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ocs_rest_res_hub_user.erl:93-99 | src/ocs_rest_res_hub_user.erl:104-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/ocs_rest_res_hub_user.erl:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/ocs_rest_res_hub_user.erl"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"475d2b5405c3ed72d6d9a1de794898402def6f37dd200042d67a65ba1491829e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ocs_scheduler.erl:50-56 | src/ocs_scheduler.erl:143-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/ocs_scheduler.erl:50\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/ocs_scheduler.erl"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f13ff743a1dc79bd5a12cb74d7fe4bd489bc5f0daddf8ccb1e30f2440e4b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): src/ocs_rest_res_balance.erl:1133-1139 | src/ocs_rest_res_balance.erl:1158-1164 | src/ocs_rest_res_client.erl:527-533 | src/ocs_rest_res_client.erl:552-558 | src/ocs_rest_res_product.erl:2491-2497 | src/ocs_rest_res_product.erl:2516-2522 | src/ocs_rest_res_resource.erl:468-474 | src/ocs_rest_res_resource.erl:493-499 | src/ocs_rest_res_service.erl:919-925 | src/ocs_rest_res_service.erl:944-950 | src/ocs_rest_res_user.erl:477-483 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c559128b102ace4b0e3f3b417ce1f08e438ac476e6639b7132e94d3ec878bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): src/ocs_rest_res_balance.erl:1111-1117 | src/ocs_rest_res_client.erl:509-515 | src/ocs_rest_res_product.erl:2470-2476 | src/ocs_rest_res_resource.erl:450-456 | src/ocs_rest_res_service.erl:901-907 | src/ocs_rest_res_usage.erl:3224-3230 | src/ocs_rest_res_usage.erl:3265-3271 | src/ocs_rest_res_usage.erl:3306-3312 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebd27d7403e7d3df3c0b2919cbe9f25d099f9891b3c4c338238edbcb04a1d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 6): src/ocs_log.erl:4204-4209 | src/ocs_log.erl:4223-4228 | src/ocs_log.erl:4322-4327 | src/ocs_log.erl:4460-4465 | src/ocs_log.erl:7432-7438 | src/ocs_log.erl:7451-7456 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":4204}}}],"partialFingerprints":{"codehealthFindingId/v1":"811cd4804fd2333a5f161de9ad0537ade44473d9b0011498007ca167a7b2de1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/ocs_rest_res_balance.erl:1035-1041 | src/ocs_rest_res_client.erl:433-439 | src/ocs_rest_res_product.erl:2394-2400 | src/ocs_rest_res_resource.erl:383-389 | src/ocs_rest_res_service.erl:825-831 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0011603a62ded6befeff9b550ec3d715fd04c9ae8dc823e782ea089a589190e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/ocs_diameter_3gpp_s6b_application_cb.erl:253-259 | src/ocs_diameter_3gpp_sta_application_cb.erl:297-303 | src/ocs_diameter_3gpp_swm_application_cb.erl:297-303 | src/ocs_diameter_3gpp_swx_application_cb.erl:244-250 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_s6b_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 4 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/ocs_diameter_3gpp_s6b_application_cb.erl:253\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_s6b_application_cb.erl"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e83d77191438283f6f40f78a4d771f25871925d1f6d1fd22025f231d5a7c03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:442-448 | src/ocs_eap_aka_fsm.erl:455-461 | src/ocs_eap_akap_fsm.erl:453-459 | src/ocs_eap_akap_fsm.erl:466-472 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae4fac5e6566dbd899f1b02f8cedf4f3cbdf705587ce4c53ef5f7629a74b18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:452-459 | src/ocs_eap_aka_fsm.erl:1101-1108 | src/ocs_eap_akap_fsm.erl:463-470 | src/ocs_eap_akap_fsm.erl:1119-1126 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:452\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8212e79ebf5085e88ec1b6014dadad0964e51b0e5714a3f160601c91aebcf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:1272-1278 | src/ocs_eap_aka_fsm.erl:1291-1297 | src/ocs_eap_akap_fsm.erl:1290-1296 | src/ocs_eap_akap_fsm.erl:1309-1315 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1272\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91be6c224f9d7ab28f841a4d764f383269d355b73e10c59380622fb13e807c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/ocs_log.erl:6868-6875 | src/ocs_log.erl:6883-6890 | src/ocs_log.erl:6904-6911 | src/ocs_log.erl:6919-6926 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":6868}}}],"partialFingerprints":{"codehealthFindingId/v1":"365a93d64556fe8923489e77cd5113f8e575c0c642b2416bf06fe77d8665fc59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/ocs_rating.erl:1481-1487 | src/ocs_rating.erl:1560-1567 | src/ocs_rating.erl:1633-1640 | src/ocs_rating.erl:1678-1685 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"276bef08ae3a621752935e6ad7ec0678745f30e2983086a6a8043014419e6cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/ocs_pgw_fsm.erl:247-255 | src/ocs_pgw_fsm.erl:265-273 | src/ocs_pgw_fsm.erl:281-289 \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/ocs_pgw_fsm.erl:247\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4f896a1cda7a304cde6846a5e72aabaebfd1e01ea278c64ca9108042ca136a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/ocs_pgw_fsm.erl:354-362 | src/ocs_pgw_fsm.erl:372-380 | src/ocs_pgw_fsm.erl:388-396 \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/ocs_pgw_fsm.erl:354\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_pgw_fsm.erl"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"948f2e696af190486adaa5db7ce2d964cc3c0db4865c0d85d7ca1d9898ec5be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/ocs_rating.erl:999-1005 | src/ocs_rating.erl:1151-1157 | src/ocs_rating.erl:1294-1300 \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/ocs_rating.erl"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"b346c8afe21ca5e9808837ec36fb7c016d6cf4f9bb0ad335546e22157d19e78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/ocs_rest_res_nrf.erl:176-182 | src/ocs_rest_res_nrf.erl:299-305 | src/ocs_rest_res_nrf.erl:431-437 \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/ocs_rest_res_nrf.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_nrf.erl"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c10580e86f2e2c884d67416ae49a71fa50a438cb9d50a06283377499597692e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/ocs_rest_res_usage.erl:1766-1772 | src/ocs_rest_res_usage.erl:1805-1811 | src/ocs_rest_res_usage.erl:1827-1833 \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/ocs_rest_res_usage.erl"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ed7f522bf789b5a6c61ae2893aef0e59595f422eefe1d0619e9e7497f6d5cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/ocs_simple_auth_fsm.erl:404-412 | src/ocs_simple_auth_fsm.erl:423-431 | src/ocs_simple_auth_fsm.erl:442-450 \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/ocs_simple_auth_fsm.erl:404\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_simple_auth_fsm.erl"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"376641dc4dd7b331051c346e3d23ee0a128b7242f16026b334f953d9e879809f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/ocs.erl:816-821 | src/ocs.erl:845-851 \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/ocs.erl"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c22ddc364891a77b51b1f318873bbe3e70dc0f1cf143b496ed27e89430b268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/ocs.erl:3428-3434 | src/ocs.erl:3449-3454 \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/ocs.erl:3428\u0060 it begins part-way through the construct above it, so those exact 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/ocs.erl"},"region":{"startLine":3428}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e54988e0071bf91b5c4188cdd40b049f5f1e9d6359e018d5dac4c67255171b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs.erl:3465-3471 | src/ocs.erl:3483-3489 \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/ocs.erl:3465\u0060 it begins part-way through the construct above it, so those exact 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/ocs.erl:3472\u0060 calls \u0060end_period\u0060 and \u0060src/ocs.erl:3490\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/ocs.erl"},"region":{"startLine":3465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61934dddc0284574ec1733d9dcc29e46eb27d2c85c33b191a2e1cb0378885cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_diameter_acct_service_fsm.erl:290-296 | src/ocs_diameter_auth_service_fsm.erl:324-331 \u2014 before extracting anything, compare \u0060src/ocs_diameter_acct_service_fsm.erl\u0060 and \u0060src/ocs_diameter_auth_service_fsm.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 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/ocs_diameter_acct_service_fsm.erl:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e3ce9356286b7aadba4abaf1b69b8bdc4b22a5d59f127cbc4dddab53ffc94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:403-409 | src/ocs_eap_akap_fsm.erl:413-419 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:403\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65a4cb9c400d264d90b26d41867a9f569b150b28c3b3e41af70f7ef5678189e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:966-972 | src/ocs_log.erl:1235-1241 \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/ocs_log.erl"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcf28a4f97e3bab54bb05d8b2d2fc189e06addc964c6d1d65e876eae93e3944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:982-988 | src/ocs_log.erl:1249-1255 \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/ocs_log.erl"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8ee696dafec6b4a70628457777636857a6e6bd73df3268d77336505b87e46b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/ocs_log.erl:2923-2929 | src/ocs_log.erl:2945-2950 \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/ocs_log.erl"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab2080f493418fac586225aa805c07d8c62b0538c55cc5645b09135b3cec0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:3760-3766 | src/ocs_log.erl:3784-3790 \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/ocs_log.erl"},"region":{"startLine":3760}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf06b09a24be472583c64e368027f3e7c6f55991750e5bb54652a1e52eec0bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 3): src/ocs_log.erl:7014-7016 | src/ocs_log.erl:7018-7024 | src/ocs_log.erl:7027-7033 \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/ocs_log.erl"},"region":{"startLine":7014}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e67eeb1e25d3c52eb96b85420b047c5acb0b888ce480b03515d71c63670f8ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_mib.erl:321-327 | src/ocs_mib.erl:375-381 \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/ocs_mib.erl"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe13fb4cc1751bd76ea676d5ac1570bfa42e3323001364047ae689cd6e008a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_mib.erl:432-438 | src/ocs_mib.erl:510-516 \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/ocs_mib.erl"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2d3bbb7639570b1fb8da3784819e3ec329a2a575190b373bfdea187e0465bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/ocs_pgw_fsm.erl:244-250 | src/ocs_pgw_fsm.erl:352-357 \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/ocs_pgw_fsm.erl:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"821bfce32c9dbf360c7ba1628b82b048895749cc18f6e1797c260fab82d8ab33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_pgw_fsm.erl:302-308 | src/ocs_pgw_fsm.erl:409-415 \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/ocs_pgw_fsm.erl:302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"365b23ea522008c93d3728141485f21cea8976b1064076c320b47025be8dd6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_rating.erl:353-359 | src/ocs_rating.erl:385-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e588fafdab96f95c8470f4e7a4c2517a3df3f83f15b573d1fce0a2f8d90e0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rating.erl:720-728 | src/ocs_rating.erl:872-880 \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/ocs_rating.erl"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a70d8d84ca8b8dccfe9a05d00a2047ea67c6faf49daabe296a89d49dbb9828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_rating.erl:2323-2329 | src/ocs_rating.erl:2405-2411 \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/ocs_rating.erl"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1646caec34f162bf0dc4200010e0476750d318c7d4a2aa744916c6eafb8c345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_rating.erl:2397-2403 | src/ocs_rating.erl:2413-2419 \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/ocs_rating.erl"},"region":{"startLine":2397}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcea2f2084ad825497c9ee6eaa6a8c9a059ac6d4a42b1ff8949686dafa77ec80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_rating.erl:2514-2520 | src/ocs_rating.erl:2531-2537 \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/ocs_rating.erl"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55aa0ab3600dc4ea554839ccfb1426e118a230ae85724810f7c4c27419af7de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/ocs_rating.erl:3380-3386 | src/ocs_rating.erl:3436-3441 \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/ocs_rating.erl"},"region":{"startLine":3380}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40a909378d8e6adcb7048106f7566f0f847c80b0e953ff057f96263b611712f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rating.erl:3474-3484 | src/ocs_rating.erl:3495-3505 \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/ocs_rating.erl"},"region":{"startLine":3474}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efd0a78ffe30be41f386803a12452f977133372be26ec51b86d3c3e32fd973d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_rest_res_nrf.erl:1209-1215 | src/ocs_rest_res_nrf.erl:1217-1223 \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/ocs_rest_res_nrf.erl"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5052c99477a26877a6453324765e7abf39dd31c2c1b0f685b85dfa54f159c2c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/ocs_rest_res_product.erl:685-690 | src/ocs_rest_res_product.erl:694-700 \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/ocs_rest_res_product.erl"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e1f5a685e870df7622b32e650d39d14d735545e5a54033575e225d3b6b260c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_simple_auth_fsm.erl:389-395 | src/ocs_simple_auth_fsm.erl:427-433 \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/ocs_simple_auth_fsm.erl:389\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_simple_auth_fsm.erl"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f0e4fce7696b7026718efb6b4309690435e0351b00177338705c3530c79c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14): src/mod_ocs_rest_delete.erl:126-132 | src/mod_ocs_rest_delete.erl:215-220 | src/mod_ocs_rest_delete.erl:257-262 | src/mod_ocs_rest_get.erl:183-189 | src/mod_ocs_rest_get.erl:474-479 | src/mod_ocs_rest_get.erl:516-521 | src/mod_ocs_rest_head.erl:177-183 | src/mod_ocs_rest_head.erl:219-224 | src/mod_ocs_rest_head.erl:261-266 | src/mod_ocs_rest_patch.erl:141-147 | src/mod_ocs_rest_patch.erl:233-239 | src/mod_ocs_rest_patch.erl:280-285 | src/mod_ocs_rest_post.erl:133-139 | src/mod_ocs_rest_post.erl:298-303 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_delete.erl"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad97dac9e25be00322f47cc92d54b8c8e107caf38229a542d08a9360f477a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14): src/ocs_rest_res_usage.erl:1133-1138 | src/ocs_rest_res_usage.erl:1155-1160 | src/ocs_rest_res_usage.erl:1247-1252 | src/ocs_rest_res_usage.erl:1359-1364 | src/ocs_rest_res_usage.erl:1371-1376 | src/ocs_rest_res_usage.erl:1456-1461 | src/ocs_rest_res_usage.erl:1478-1483 | src/ocs_rest_res_usage.erl:1490-1495 | src/ocs_rest_res_usage.erl:1544-1549 | src/ocs_rest_res_usage.erl:1567-1572 | src/ocs_rest_res_usage.erl:1589-1594 | src/ocs_rest_res_usage.erl:1868-1873 | src/ocs_rest_res_usage.erl:1900-1905 | src/ocs_rest_res_usage.erl:1912-1917 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0f35731f1648ccbebc291bd0409fa1330cefeb3cdc95a59ce54a326a61f3f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): src/ocs_rest_res_balance.erl:1081-1086 | src/ocs_rest_res_client.erl:479-484 | src/ocs_rest_res_product.erl:2440-2445 | src/ocs_rest_res_resource.erl:429-434 | src/ocs_rest_res_role.erl:182-187 | src/ocs_rest_res_service.erl:871-876 | src/ocs_rest_res_usage.erl:160-165 | src/ocs_rest_res_user.erl:107-112 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"875f26af70e37ec89d767f4ba2a49a50cdaeaec2505cf8725a7e3f6f2acc8c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): src/ocs_eap_aka_fsm.erl:582-588 | src/ocs_eap_aka_fsm.erl:862-867 | src/ocs_eap_aka_fsm.erl:899-905 | src/ocs_eap_aka_fsm.erl:916-922 | src/ocs_eap_akap_fsm.erl:599-605 | src/ocs_eap_akap_fsm.erl:881-886 | src/ocs_eap_akap_fsm.erl:918-924 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b927a85f54437f7a895a8f4701bd48c02ddf2a22b30d05353d8fe5ea91827af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): src/ocs_rest_res_hub_balance.erl:188-195 | src/ocs_rest_res_hub_product.erl:289-296 | src/ocs_rest_res_hub_resource.erl:189-196 | src/ocs_rest_res_hub_role.erl:182-189 | src/ocs_rest_res_hub_service.erl:189-196 | src/ocs_rest_res_hub_usage.erl:191-198 | src/ocs_rest_res_hub_user.erl:189-196 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_hub_balance.erl\u0060 and \u0060src/ocs_rest_res_hub_product.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/ocs_rest_res_hub_balance.erl:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_hub_balance.erl"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f15a4a35519504fbecee10528e9b060b933364bcc01fe34c7a3e2adea652f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/ocs_rest_res_balance.erl:1101-1107 | src/ocs_rest_res_client.erl:499-505 | src/ocs_rest_res_product.erl:2460-2466 | src/ocs_rest_res_resource.erl:520-526 | src/ocs_rest_res_service.erl:891-897 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"391b90c83e9df462157384b5553e2d2930d462f32dee2ca3e4b43b121374a26a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/ocs_rest_res_balance.erl:1177-1182 | src/ocs_rest_res_client.erl:571-576 | src/ocs_rest_res_product.erl:2535-2540 | src/ocs_rest_res_resource.erl:512-517 | src/ocs_rest_res_service.erl:963-968 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3ad5c9e2529a6ce80b3973a13006d18a67628d916bfb7c9dfacf7bd8062be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:575-580 | src/ocs_eap_aka_fsm.erl:909-914 | src/ocs_eap_akap_fsm.erl:592-597 | src/ocs_eap_akap_fsm.erl:928-933 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:575\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffddec004d1d14c1b540e0f87f761dc901cfc4504bca4f99582d573b6b35746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:874-879 | src/ocs_eap_aka_fsm.erl:888-893 | src/ocs_eap_akap_fsm.erl:893-898 | src/ocs_eap_akap_fsm.erl:907-912 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:881\u0060 calls \u0060cast\u0060, \u0060self\u0060 and \u0060src/ocs_eap_aka_fsm.erl:895\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/ocs_eap_aka_fsm.erl"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"382159b7c668f3850f37e6272b5108c4ecb585e1f7b14f75a82a2c006553387d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:1267-1272 | src/ocs_eap_aka_fsm.erl:1383-1389 | src/ocs_eap_akap_fsm.erl:1285-1290 | src/ocs_eap_akap_fsm.erl:1401-1407 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"211981ecb58f2f9a960aa55936def24ec8e21ff89d6647a255a747025acc378c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/ocs_rating.erl:779-784 | src/ocs_rating.erl:1171-1177 | src/ocs_rating.erl:1309-1314 | src/ocs_rating.erl:1356-1361 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rating.erl"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cb0d46b1ae28a25a25016d17d1677f12b0ff36125f2a585aa54f63dad62310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 4): src/ocs_rest_res_usage.erl:3085-3090 | src/ocs_rest_res_usage.erl:3113-3118 | src/ocs_rest_res_usage.erl:3141-3146 | src/ocs_rest_res_user.erl:440-444 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_usage.erl\u0060 and \u0060src/ocs_rest_res_user.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 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/ocs_rest_res_usage.erl"},"region":{"startLine":3085}}}],"partialFingerprints":{"codehealthFindingId/v1":"465b9a8d25a51ba7669736988e3edd683c06f9de294a798f338d0d180cd1ad9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs.erl:3390-3395 | src/ocs.erl:3464-3469 | src/ocs.erl:3482-3487 \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/ocs.erl:3390\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/ocs.erl:3472\u0060 calls \u0060end_period\u0060 and \u0060src/ocs.erl:3490\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/ocs.erl"},"region":{"startLine":3390}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d084faae9de948051500f24c4264237b6da4f5642228020003d52e4bd309488"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/ocs_deregister_fsm.erl:213-224 | src/ocs_deregister_fsm.erl:238-249 | src/ocs_deregister_fsm.erl:263-274 \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/ocs_deregister_fsm.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_deregister_fsm.erl"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbffb8621528c070d69cb5ae2474bd6c0b37030516039cd9c5dd63e07a06a340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1009-1014 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1076-1081 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1165-1170 \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/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1009\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2b8ba0b2436638fc58b92084a9ad346f415e545281b816e0b6c3163cbf26f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_codec_s6b.erl:70-75 | src/ocs_diameter_codec_sta.erl:70-75 | src/ocs_diameter_codec_swm.erl:70-75 \u2014 before extracting anything, compare \u0060src/ocs_diameter_codec_s6b.erl\u0060 and \u0060src/ocs_diameter_codec_sta.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 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/ocs_diameter_codec_s6b.erl:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_codec_s6b.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f4f28c9bf9b9f085edfd98137f76d1ddf39ba6dd3794c3594d41914e0cde19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_codec_s6b.erl:111-116 | src/ocs_diameter_codec_sta.erl:111-116 | src/ocs_diameter_codec_swm.erl:111-116 \u2014 before extracting anything, compare \u0060src/ocs_diameter_codec_s6b.erl\u0060 and \u0060src/ocs_diameter_codec_sta.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 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/ocs_diameter_codec_s6b.erl:111\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_codec_s6b.erl"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f035373eb70e35f9bacc9efc09cb13e35020aed865702f3fe9aa083dd2de186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_codec_s6b.erl:150-155 | src/ocs_diameter_codec_sta.erl:150-155 | src/ocs_diameter_codec_swm.erl:150-155 \u2014 before extracting anything, compare \u0060src/ocs_diameter_codec_s6b.erl\u0060 and \u0060src/ocs_diameter_codec_sta.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 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/ocs_diameter_codec_s6b.erl:150\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/ocs_diameter_codec_s6b.erl"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6e5b211ec9ca93393ee311736101c7cf5365a29e8bf28e5d4ff629052e39f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_codec_s6b.erl:191-196 | src/ocs_diameter_codec_sta.erl:191-196 | src/ocs_diameter_codec_swm.erl:191-196 \u2014 before extracting anything, compare \u0060src/ocs_diameter_codec_s6b.erl\u0060 and \u0060src/ocs_diameter_codec_sta.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 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/ocs_diameter_codec_s6b.erl:191\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/ocs_diameter_codec_s6b.erl"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c258036b172fa8b7f4ec6a749b5402b4b6468d5c9f3fc0c44d5bf3305fb610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_codec_s6b.erl:232-237 | src/ocs_diameter_codec_sta.erl:232-237 | src/ocs_diameter_codec_swm.erl:232-237 \u2014 before extracting anything, compare \u0060src/ocs_diameter_codec_s6b.erl\u0060 and \u0060src/ocs_diameter_codec_sta.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 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/ocs_diameter_codec_s6b.erl:232\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/ocs_diameter_codec_s6b.erl"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db2075f054414440e2565da5d73538e5574dfd7c7584c15507753429c414b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_codec_s6b.erl:271-276 | src/ocs_diameter_codec_sta.erl:271-276 | src/ocs_diameter_codec_swm.erl:271-276 \u2014 before extracting anything, compare \u0060src/ocs_diameter_codec_s6b.erl\u0060 and \u0060src/ocs_diameter_codec_sta.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 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/ocs_diameter_codec_s6b.erl:271\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/ocs_diameter_codec_s6b.erl"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2a5b8d0e644bdf774dd1794853c85412bd6ab026cfc5c612239bfdb0a795dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_codec_s6b.erl:310-315 | src/ocs_diameter_codec_sta.erl:310-315 | src/ocs_diameter_codec_swm.erl:310-315 \u2014 before extracting anything, compare \u0060src/ocs_diameter_codec_s6b.erl\u0060 and \u0060src/ocs_diameter_codec_sta.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 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/ocs_diameter_codec_s6b.erl:310\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/ocs_diameter_codec_s6b.erl"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"22123a90176ee2d241e2ca3d1b478b6ab84aeecdb46253bf32f9e26b4d976bcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_codec_s6b.erl:349-354 | src/ocs_diameter_codec_sta.erl:349-354 | src/ocs_diameter_codec_swm.erl:349-354 \u2014 before extracting anything, compare \u0060src/ocs_diameter_codec_s6b.erl\u0060 and \u0060src/ocs_diameter_codec_sta.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 48 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/ocs_diameter_codec_s6b.erl:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_codec_s6b.erl"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3d0277a5f8ae0de04dc717cb1d4d113b1d3ea94490d22719d244558c3f1396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_log.erl:6881-6886 | src/ocs_log.erl:6917-6922 | src/ocs_log.erl:6938-6943 \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/ocs_log.erl"},"region":{"startLine":6881}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c666a73489b9f74d74ad5b06a9478b3e77cea6a0b05538bad242918cd6b728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_log.erl:7017-7022 | src/ocs_log.erl:7026-7031 | src/ocs_log.erl:7035-7040 \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/ocs_log.erl"},"region":{"startLine":7017}}}],"partialFingerprints":{"codehealthFindingId/v1":"77726f12d1fe920a035647b0eafc0f3506c3fc461496b540e18f781b16ff2760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_rating.erl:2308-2313 | src/ocs_rating.erl:2390-2395 | src/ocs_rating.erl:2406-2411 \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/ocs_rating.erl"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"0553bf6b3cc5f38970735cea1c8395e8724e7b5c66519df0fd25595327cada02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/mod_ocs_rest_get.erl:570-580 | src/mod_ocs_rest_head.erl:315-325 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_get.erl\u0060 and \u0060src/mod_ocs_rest_head.erl\u0060 as WHOLE FILES: this scan already matched 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_get.erl"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"409b8f4f69faeefd100e254a29982deccaf3c6f98c19e806d1a41c472b56e7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_deregister_fsm.erl:377-382 | src/ocs_deregister_fsm.erl:398-403 \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/ocs_deregister_fsm.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/ocs_deregister_fsm.erl"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85e104cbb0285967de6c8647356fc7d2c43fe9a3789843cad8dbab65b2d843d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2268-2273 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2278-2283 \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/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c32f6abca0b50ee5fbe246893f5785f442e0236eb5c85e70b08d1586d35103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:642-647 | src/ocs_radius_auth_port_server.erl:458-463 \u2014 before extracting anything, compare \u0060src/ocs_diameter_auth_port_server.erl\u0060 and \u0060src/ocs_radius_auth_port_server.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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"03483392f62a9a30e026ef42ab14f4c894882e4b25d3ecb63d4f6e7ae3dc3d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:659-664 | src/ocs_radius_auth_port_server.erl:476-481 \u2014 before extracting anything, compare \u0060src/ocs_diameter_auth_port_server.erl\u0060 and \u0060src/ocs_radius_auth_port_server.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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f46594846d37fe42b41df74a0ea9450b674b00157306bb7487c3cef9eb2304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_diameter_auth_port_server.erl:676-681 | src/ocs_radius_auth_port_server.erl:494-499 \u2014 before extracting anything, compare \u0060src/ocs_diameter_auth_port_server.erl\u0060 and \u0060src/ocs_radius_auth_port_server.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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7494333243d2e6e9d6a89546c3fe6a4d63fa13255a6649356e7605ee2f6a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_eap_aka_auc_fsm.erl:339-345 | src/ocs_eap_aka_auc_fsm.erl:372-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"0188b87161291794ce4e77823a2950aa692b1e66645c1d886242763d2d077b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:1286-1291 | src/ocs_eap_aka_fsm.erl:1404-1410 \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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75b1aed871c551e46a4d72fd4bc6147d1a771678d65c85dbea930185c113212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_eap_akap_fsm.erl:1304-1309 | src/ocs_eap_akap_fsm.erl:1422-1428 \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/ocs_eap_akap_fsm.erl"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e321b7d4b74b29944d5cb21cd87438dcef46dde46a87d2a48d2b3c7921c5101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_eap_pwd_fsm.erl:1180-1185 | src/ocs_simple_auth_fsm.erl:538-544 \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/ocs_eap_pwd_fsm.erl:1180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_pwd_fsm.erl"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf04ee6c141053400408fbd6265f0091b13f3b02e76bec437bc24b56ffc6712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_eap_pwd_fsm.erl:1190-1195 | src/ocs_simple_auth_fsm.erl:549-554 \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/ocs_eap_pwd_fsm.erl:1190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_pwd_fsm.erl"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae6fa9c0d1558722770d5766762d9b2b02e71096cd16688661034cd0458e740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_event_log.erl:135-140 | src/ocs_event_log.erl:145-151 \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/ocs_event_log.erl"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea45c976f1d0536cbba6dad586a11b5a25aa41d13fa3bcd4b981a529256d5d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_log.erl:1002-1007 | src/ocs_log.erl:1269-1274 \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/ocs_log.erl"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bac8baa3240f208bbcb9c5552b9eb1ae0ab9da9b307f53c0c801f1d8b38dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_log.erl:1993-1998 | src/ocs_log.erl:2014-2019 \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/ocs_log.erl"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"871ec10fdeeee26337abb1e3f2612a736985393a047f2c523b09bd6cabb63dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_log.erl:6983-6988 | src/ocs_log.erl:6989-6994 \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/ocs_log.erl"},"region":{"startLine":6983}}}],"partialFingerprints":{"codehealthFindingId/v1":"991f28af5027126c19b3312a4f3370e0d78941325a36ad926165d2e2ae4a13f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_log_rotate_server.erl:302-307 | src/ocs_scheduler.erl:260-265 \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/ocs_log_rotate_server.erl"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e95685ec035f52fd5bd42698ee2ca6aba8cb58f1a5ff3a1bf4ad4424e399d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_pgw_fsm.erl:255-260 | src/ocs_pgw_fsm.erl:273-278 \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/ocs_pgw_fsm.erl:255\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f29687c24eb0d89e2c00832511e92c0dfe50a266338630f27d16645409edb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_pgw_fsm.erl:279-284 | src/ocs_pgw_fsm.erl:386-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/ocs_pgw_fsm.erl:279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"61deceac8f7ad44bd15b44bd7d42025ea4e4bc7295cc0024d4a8d16e1b15b2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_pgw_fsm.erl:362-367 | src/ocs_pgw_fsm.erl:380-385 \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/ocs_pgw_fsm.erl:362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a4559f8959d403f2b355fb56d4d1574a2dd0ab8470787e01a294e181fb1338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rating.erl:646-651 | src/ocs_rating.erl:662-667 \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/ocs_rating.erl"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"68acf9ce20d1b69c7dd98a39faebce5928fab1d5a61143b097c4699647862a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rating.erl:892-897 | src/ocs_rating.erl:939-944 \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/ocs_rating.erl"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e23df4f4a2a3f0c55c06b43641a0e82beeb349287f84602e3d779808ddaf1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rating.erl:1735-1740 | src/ocs_rating.erl:1750-1755 \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/ocs_rating.erl"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cd028058a1d6f489831be75326214c5d2fe2122d0abe5eba489e9833ba7d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rating.erl:2316-2321 | src/ocs_rating.erl:2331-2336 \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/ocs_rating.erl"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8133dac4822c4ab7b111a173f1a47b7afe30b7bc5af5fe9256129a3bd6f91161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rating.erl:2327-2332 | src/ocs_rating.erl:2342-2347 \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/ocs_rating.erl"},"region":{"startLine":2327}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5e9bda3740b33cc4538b2f49eeaffc5e5cf721ee307dccd02e26d37fc73517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rating.erl:2492-2497 | src/ocs_rating.erl:2509-2514 \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/ocs_rating.erl"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a403004e640e81aebde2baa690c251e38a34f6f6ec63932b3fca925e3bac045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): src/ocs_rating.erl:3388-3393 | src/ocs_rating.erl:3443-3447 \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/ocs_rating.erl"},"region":{"startLine":3388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddceb0677f14558ef7b510a41318b41292dd87a75764542beeaba8dfcaa0b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rest_res_nrf.erl:235-240 | src/ocs_rest_res_nrf.erl:360-365 \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/ocs_rest_res_nrf.erl:360\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_nrf.erl"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00303555f1ac34e9af6cb897ecfeb7812ffc431cfd2d89dcc9f365d66533410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rest_res_role.erl:355-360 | src/ocs_rest_res_user.erl:470-475 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_user.erl\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 205 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/ocs_rest_res_role.erl"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e90cbeff836528774f957069153447d6a9dae5b79540fbb25c9691c111a989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rest_res_usage.erl:1205-1210 | src/ocs_rest_res_usage.erl:1215-1220 \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/ocs_rest_res_usage.erl"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"672db5a6a4638bf8e511249007aa50cd81804c74f20746fe8136f7b1431d6088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rest_res_usage.erl:1267-1272 | src/ocs_rest_res_usage.erl:1277-1282 \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/ocs_rest_res_usage.erl"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0608fbdb1befec707a15dfa600f358e0b7ca76323cde4760df0cd8a49c7e3b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_simple_auth_fsm.erl:376-381 | src/ocs_simple_auth_fsm.erl:450-457 \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/ocs_simple_auth_fsm.erl:376\u0060 it begins part-way through the construct above it, so those exact 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/ocs_simple_auth_fsm.erl"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"393101da9642becaf3a8a505598e1ff30a523f0aa4d3f890c4badf04642eecb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 27): src/ocs_rest_res_usage.erl:1123-1127 | src/ocs_rest_res_usage.erl:1145-1149 | src/ocs_rest_res_usage.erl:1167-1171 | src/ocs_rest_res_usage.erl:1177-1181 | src/ocs_rest_res_usage.erl:1187-1191 | src/ocs_rest_res_usage.erl:1197-1201 | src/ocs_rest_res_usage.erl:1207-1211 | src/ocs_rest_res_usage.erl:1217-1221 | src/ocs_rest_res_usage.erl:1227-1231 | src/ocs_rest_res_usage.erl:1237-1241 | src/ocs_rest_res_usage.erl:1259-1263 | src/ocs_rest_res_usage.erl:1269-1273 | src/ocs_rest_res_usage.erl:1279-1283 | src/ocs_rest_res_usage.erl:1289-1293 | src/ocs_rest_res_usage.erl:1299-1303 | src/ocs_rest_res_usage.erl:1309-1313 | src/ocs_rest_res_usage.erl:1319-1323 | src/ocs_rest_res_usage.erl:1329-1333 | src/ocs_rest_res_usage.erl:1339-1343 | src/ocs_rest_res_usage.erl:1349-1353 | src/ocs_rest_res_usage.erl:1383-1387 | src/ocs_rest_res_usage.erl:1426-1430 | src/ocs_rest_res_usage.erl:1468-1472 | src/ocs_rest_res_usage.erl:1524-1528 | src/ocs_rest_res_usage.erl:1534-1538 | src/ocs_rest_res_usage.erl:1579-1583 | src/ocs_rest_res_usage.erl:1601-1605 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b5581d53522436d08c50b6b04dabf9a47432b5fdce50ade73a87f814b3e355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 15): src/ocs_rest_res_balance.erl:1111-1115 | src/ocs_rest_res_balance.erl:1152-1156 | src/ocs_rest_res_client.erl:509-513 | src/ocs_rest_res_client.erl:546-550 | src/ocs_rest_res_product.erl:2470-2474 | src/ocs_rest_res_product.erl:2510-2514 | src/ocs_rest_res_resource.erl:450-454 | src/ocs_rest_res_resource.erl:487-491 | src/ocs_rest_res_role.erl:356-360 | src/ocs_rest_res_service.erl:901-905 | src/ocs_rest_res_service.erl:938-942 | src/ocs_rest_res_usage.erl:3224-3228 | src/ocs_rest_res_usage.erl:3265-3269 | src/ocs_rest_res_usage.erl:3306-3310 | src/ocs_rest_res_user.erl:471-475 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e6869c83f9260fe661462dfc4c75e6f5b01a2c0c1a3271c42b158ba2215d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): src/ocs_eap_aka_fsm.erl:582-587 | src/ocs_eap_aka_fsm.erl:862-867 | src/ocs_eap_aka_fsm.erl:874-878 | src/ocs_eap_aka_fsm.erl:888-892 | src/ocs_eap_aka_fsm.erl:899-904 | src/ocs_eap_aka_fsm.erl:916-921 | src/ocs_eap_akap_fsm.erl:599-604 | src/ocs_eap_akap_fsm.erl:881-886 | src/ocs_eap_akap_fsm.erl:893-897 | src/ocs_eap_akap_fsm.erl:907-911 | src/ocs_eap_akap_fsm.erl:918-923 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/ocs_eap_aka_fsm.erl:881\u0060 calls \u0060cast\u0060, \u0060self\u0060 and \u0060src/ocs_eap_aka_fsm.erl:895\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/ocs_eap_aka_fsm.erl"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cee1c2ab075d3cf97908911e7738a1ada9be7fb4901701df6b5faa8757823f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): src/ocs_rest_res_hub_balance.erl:205-209 | src/ocs_rest_res_hub_product.erl:306-310 | src/ocs_rest_res_hub_resource.erl:206-210 | src/ocs_rest_res_hub_role.erl:200-204 | src/ocs_rest_res_hub_service.erl:206-210 | src/ocs_rest_res_hub_usage.erl:208-212 | src/ocs_rest_res_hub_user.erl:206-210 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_hub_balance.erl\u0060 and \u0060src/ocs_rest_res_hub_product.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/ocs_rest_res_hub_role.erl:199\u0060 calls \u0060is_list\u0060, \u0060length\u0060 and \u0060src/ocs_rest_res_hub_balance.erl:204\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/ocs_rest_res_hub_balance.erl"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7569c4e701186c01e9ae5ac5fc00f4aa5255661db74fd54081760716f1b19965"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): src/ocs_eap_aka_fsm.erl:1274-1278 | src/ocs_eap_aka_fsm.erl:1293-1297 | src/ocs_eap_aka_fsm.erl:1391-1396 | src/ocs_eap_akap_fsm.erl:1292-1296 | src/ocs_eap_akap_fsm.erl:1311-1315 | src/ocs_eap_akap_fsm.erl:1409-1414 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1274\u0060 it begins part-way through the construct above it, so those exact 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"405904838bc2ded6e7d983e22f811cd2b75f3b3c760102b858bedcb3fc9a80fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/ocs_pgw_fsm.erl:253-259 | src/ocs_pgw_fsm.erl:271-277 | src/ocs_pgw_fsm.erl:287-293 | src/ocs_pgw_fsm.erl:360-366 | src/ocs_pgw_fsm.erl:378-384 | src/ocs_pgw_fsm.erl:394-400 \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/ocs_pgw_fsm.erl:253\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7264aa724446c95dcb55ec16b292c810970626697f324d6037b0df2d71c4f79e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 7): src/ocs_rest_res_balance.erl:79-82 | src/ocs_rest_res_balance.erl:223-227 | src/ocs_rest_res_client.erl:87-91 | src/ocs_rest_res_product.erl:254-258 | src/ocs_rest_res_product.erl:305-309 | src/ocs_rest_res_resource.erl:351-355 | src/ocs_rest_res_service.erl:153-157 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3b5f994dd020131a83fe25630cd5449742a3777cfc45c2db50c0672a9aead5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/ocs_rest_res_usage.erl:1393-1398 | src/ocs_rest_res_usage.erl:1404-1409 | src/ocs_rest_res_usage.erl:1415-1420 | src/ocs_rest_res_usage.erl:1502-1507 | src/ocs_rest_res_usage.erl:1513-1518 | src/ocs_rest_res_usage.erl:1556-1561 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"66536986312af1ad65a688196c0aca5790622338f061cd3f3254a474edd35159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/ocs_pgw_fsm.erl:245-250 | src/ocs_pgw_fsm.erl:280-284 | src/ocs_pgw_fsm.erl:353-357 | src/ocs_pgw_fsm.erl:371-375 | src/ocs_pgw_fsm.erl:387-391 \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/ocs_pgw_fsm.erl:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f00f1ebd5e2775e1c24a768c89a3214586b66f0781911c08eab7afa1306e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/ocs_rest_res_usage.erl:1061-1065 | src/ocs_rest_res_usage.erl:1071-1075 | src/ocs_rest_res_usage.erl:1081-1085 | src/ocs_rest_res_usage.erl:1091-1095 | src/ocs_rest_res_usage.erl:1100-1104 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cff7ebb58f2b8dac7f0b7dcad9b3d7afc414494c88a3b55cb81771055869255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/ocs_diameter_3gpp_s6b_application_cb.erl:158-163 | src/ocs_diameter_3gpp_sta_application_cb.erl:172-177 | src/ocs_diameter_3gpp_swm_application_cb.erl:171-176 | src/ocs_diameter_3gpp_swx_application_cb.erl:164-169 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_s6b_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 4 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/ocs_diameter_3gpp_s6b_application_cb.erl"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0282c9c3a03a4d0edca38659c9e8d099086afd87e676d63f2dbbfdf33b0c29de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/ocs_eap_aka_fsm.erl:1312-1316 | src/ocs_eap_aka_fsm.erl:1371-1375 | src/ocs_eap_akap_fsm.erl:1330-1334 | src/ocs_eap_akap_fsm.erl:1389-1393 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl:1312\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44a02f56b7f68e344c4e9df677debc9b2e50d0d2baf2fbe8a25419c56159b13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/ocs_rest_res_product.erl:1372-1376 | src/ocs_rest_res_product.erl:1384-1388 | src/ocs_rest_res_resource.erl:1019-1023 | src/ocs_rest_res_resource.erl:1031-1035 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_resource.erl\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 209 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/ocs_rest_res_product.erl"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0843ec2dc3011ab69a18c01e1d9682b07fe6251a40386d6224e52e6c10380b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/ocs_rest_res_usage.erl:3348-3352 | src/ocs_rest_res_usage.erl:3381-3385 | src/ocs_rest_res_usage.erl:3414-3418 | src/ocs_rest_res_usage.erl:3447-3451 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":3348}}}],"partialFingerprints":{"codehealthFindingId/v1":"149bc75a49e3e704dcf8596ea05867b9a7e441c1c5541b955c7230c066650df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs.erl:431-435 | src/ocs.erl:527-531 | src/ocs.erl:1503-1507 \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/ocs.erl:431\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs.erl"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"702fa4daf4a2bafdbf0070480152bed2645bff4bc988926d7eab78e6f9929a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_diameter_auth_port_server.erl:473-477 | src/ocs_diameter_auth_port_server.erl:492-496 | src/ocs_diameter_auth_port_server.erl:511-515 \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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da69ca7f3d36769274471168663c982ad87fa0ac23e6890743424c2dd51fb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ocs_diameter_cc_application_cb.erl:163-168 | src/ocs_diameter_eap_application_cb.erl:157-162 | src/ocs_diameter_nas_application_cb.erl:156-161 \u2014 before extracting anything, compare \u0060src/ocs_diameter_cc_application_cb.erl\u0060 and \u0060src/ocs_diameter_eap_application_cb.erl\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_cc_application_cb.erl"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c300c6e3f7463e59a92b08be0beb692f0dee053651f84eb368578523f516e1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/ocs_log.erl:6888-6894 | src/ocs_log.erl:6924-6930 | src/ocs_log.erl:6954-6960 \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/ocs_log.erl"},"region":{"startLine":6888}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d1582ed09de1a44c0b01b3072dc41dcabff7b177d3329fc154be040b4b9faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_log.erl:6983-6987 | src/ocs_log.erl:6989-6993 | src/ocs_log.erl:6995-6999 \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/ocs_log.erl"},"region":{"startLine":6983}}}],"partialFingerprints":{"codehealthFindingId/v1":"6474c6ff013ae15961e279942457df401a814017bc87610d8807133643fa340f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_radius_auth_port_server.erl:457-461 | src/ocs_radius_auth_port_server.erl:475-479 | src/ocs_radius_auth_port_server.erl:493-497 \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/ocs_radius_auth_port_server.erl:457\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_radius_auth_port_server.erl"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec9f9734fb06c8aee6e74c499164690f31c78f4e2ff6335b45bb8ffc8b42a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_accepted_content.erl:260-264 | src/mod_ocs_rest_accepted_content.erl:301-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_accepted_content.erl"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b09047bcf674a300c9f052301c4d6d5a2a004556ac724db56cf75128d74090c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/mod_ocs_rest_patch.erl:178-187 | src/mod_ocs_rest_patch.erl:219-228 \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/mod_ocs_rest_patch.erl"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3406702798b4d5daeda09195aa0f1b72e5c99116a9db76fdec3888d3f79f8d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_patch.erl:189-193 | src/mod_ocs_rest_patch.erl:195-199 \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/mod_ocs_rest_patch.erl"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac6171a39010f31883b51553a7d0102cd3f4ef125cc2b5e2ae02440cea285cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs.erl:386-390 | src/ocs.erl:431-435 \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/ocs.erl:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs.erl"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"78237db1c9bbb29256ab68177051987917e787f512197140d77a50f9fea2be62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs.erl:1571-1575 | src/ocs.erl:1585-1589 \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/ocs.erl:1571\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs.erl"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6b826feb8691bcd7caaf937eba397255c2ff2b3cf930b0d8fa582d09fe10da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): src/ocs.erl:3408-3411 | src/ocs.erl:3432-3436 | src/ocs.erl:3469-3473 \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/ocs.erl:3408\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 after the matched lines, \u0060src/ocs.erl:3437\u0060 calls \u0060subscription\u0060 and \u0060src/ocs.erl:3411\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/ocs.erl"},"region":{"startLine":3408}}}],"partialFingerprints":{"codehealthFindingId/v1":"775f8ec325858b8ea0ee873a6a0d14dd891b37f974950c6427a959e4beac2853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs.erl:3548-3553 | src/ocs_rest_res_role.erl:265-270 \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/ocs.erl"},"region":{"startLine":3548}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca82697e42949794e1de52b228bdc3f521461cdcc382038b31c3e95bad228d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:834-838 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1975-1979 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e96ed20db6e083d48163b89fda526cec91bff6e143d1e0cd09bc8aac0873e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_diameter_acct_service_fsm.erl:352-357 | src/ocs_diameter_auth_service_fsm.erl:401-406 \u2014 before extracting anything, compare \u0060src/ocs_diameter_acct_service_fsm.erl\u0060 and \u0060src/ocs_diameter_auth_service_fsm.erl\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 114 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/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5b1c6290e5d608a5a6fa61cd35c2482669c57e4a9c7e881d4dcfc4c7544275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_eap_aka_auc_fsm.erl:143-148 | src/ocs_eap_aka_auc_fsm.erl:185-190 \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/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f8c7490c1dfb02836269d630b0c7e28c57f3599219d27b3fb0926be6ee2760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_log.erl:432-437 | src/ocs_log.erl:699-704 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_log.erl:432\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba03dfc1f0a8d78a8342c0ef39682869ec245c10846e66f256d477e7d578efd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_log.erl:845-849 | src/ocs_log.erl:858-863 \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/ocs_log.erl:858\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cac55178a15aaecea6dd754b44d2e96c7abb65bd59d3a8813d3e39ecfeb5f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_log.erl:1998-2002 | src/ocs_log.erl:2276-2281 \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/ocs_log.erl:2276\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"6491f63ba779da3d9cdfec9edb2f190d6904381236ecac8049d2617d3d6b35eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_log.erl:3518-3523 | src/ocs_log.erl:3625-3629 \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/ocs_log.erl:3518\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":3518}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec2c65c5a1c1d081623c602d469e4d2bf17fed8de917e77ad453e7c7fdc281c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_log.erl:6847-6851 | src/ocs_log.erl:6854-6858 \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/ocs_log.erl"},"region":{"startLine":6847}}}],"partialFingerprints":{"codehealthFindingId/v1":"3897881a6d8e8161e3ba97f6a6ce268b68dc5fb4cb5e7e81620421c1d076b802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_pgw_fsm.erl:295-299 | src/ocs_pgw_fsm.erl:402-406 \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/ocs_pgw_fsm.erl:295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e0d0de65c713cc09e5ae9be79480820034bb4be6d0ffc5276cd537e5d29765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_pgw_fsm.erl:336-340 | src/ocs_pgw_fsm.erl:371-375 \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/ocs_pgw_fsm.erl:336\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_pgw_fsm.erl"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c24089a35f526b7b46de31310ba2b86c88ab1501a08fe15333e3e4117939308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): src/ocs_rating.erl:171-175 | src/ocs_rating.erl:481-485 | src/ocs_rating.erl:1847-1849 \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/ocs_rating.erl"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42f29cf94f1e4754d21dde82e1145838787916a72157b556c704060520c2d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rating.erl:799-803 | src/ocs_rating.erl:841-845 \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/ocs_rating.erl"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8b8cbf27f545d4213ad6b6dae720929ace95298ce3ac30319dfad8e85a7de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rating.erl:1145-1149 | src/ocs_rating.erl:1286-1291 \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/ocs_rating.erl"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd204f3f299cb79972847c1ec8e73d49bc6deb9fd7b583207d615cd12d404a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rating.erl:2012-2016 | src/ocs_rating.erl:2034-2038 \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/ocs_rating.erl"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"316104bcfa5446020061c06e3cd78e164bb5f1fc3f708e4778a6356cdcd8d7fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rating.erl:2436-2441 | src/ocs_rating.erl:2451-2455 \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/ocs_rating.erl"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba275aaafc09d6d6367cf2163dc3b7d3acb0879fb04ce75464be806cd76af0fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rating.erl:2800-2805 | src/ocs_rating.erl:2812-2816 \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/ocs_rating.erl:2800\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rating.erl"},"region":{"startLine":2800}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f44397046dc933c474f2a28835578c54a84621bdccc3aa6fa23757e66e938a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rest_res_product.erl:78-82 | src/ocs_rest_res_product.erl:178-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_product.erl"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca028c781e79de38ead1e394c87f02c17a754b789b0ad6f5975f4e53e3e7482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rest_res_product.erl:122-126 | src/ocs_rest_res_product.erl:215-219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_rest_res_product.erl:122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_product.erl"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"019f5623af6bf8ce59147b29ca079000c45760e9f9d48ad803bc4fd1cd57ae01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rest_res_resource.erl:968-972 | src/ocs_rest_res_resource.erl:983-987 \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/ocs_rest_res_resource.erl:968\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/ocs_rest_res_resource.erl"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a99d3987d5223318a95e717ac275f245e0f25a905b17c3baa974f1dca6b20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rest_res_usage.erl:1436-1440 | src/ocs_rest_res_usage.erl:1446-1450 \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/ocs_rest_res_usage.erl"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea8def0a4283f543a1a0b5cf79a009a73449c5805909577cd6a819f03e0c2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/ocs_diameter_3gpp_sta_application_cb.erl:249-281 | src/ocs_diameter_3gpp_swm_application_cb.erl:249-281 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_swm_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_diameter_3gpp_sta_application_cb.erl:249\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_sta_application_cb.erl"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa54c4e99f7f7a5ab472312d3ffbb5d146465049b5c4ec698522f22b851d036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): src/ocs_deregister_fsm_sup.erl:60-64 | src/ocs_diameter_disconnect_fsm_sup.erl:60-64 | src/ocs_eap_pwd_fsm_sup.erl:60-64 | src/ocs_pgw_fsm_sup.erl:60-64 | src/ocs_radius_disconnect_fsm_sup.erl:71-75 | src/ocs_simple_auth_fsm_sup.erl:60-64 | src/ocs_terminate_fsm_sup.erl:60-64 \u2014 before extracting anything, compare \u0060src/ocs_deregister_fsm_sup.erl\u0060 and \u0060src/ocs_diameter_disconnect_fsm_sup.erl\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_deregister_fsm_sup.erl:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_deregister_fsm_sup.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da46543789c8112f2fd9d5dc7a38596d158b41365ecbe714c10f0f812ac6650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:682-690 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1589-1597 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl:682\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a303d535f40c6c23932afa3eade096e8ed18c1d909efaa426951a3ef5fd978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:763-772 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1920-1929 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d989c2a222f82b9b172687d2d228721d65ea4e0445a8388b510fa147616f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:1279-1284 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:2434-2439 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b3fb67d8455fbd1728c7b0578a7009fc0210e7b037323f419d41bddfd4e3d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_diameter_3gpp_s6a_application_cb.erl:622-626 | src/ocs_eap_aka_auc_fsm.erl:590-594 \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/ocs_diameter_3gpp_s6a_application_cb.erl"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f5562de0d13cf72c564a495cbab1145beddcd7e9d9b695087bc105d47c174c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_diameter_3gpp_s6a_application_cb.erl:638-642 | src/ocs_eap_aka_auc_fsm.erl:606-610 \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/ocs_diameter_3gpp_s6a_application_cb.erl"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"53708684203626ead366c43c520da47f82dd93a6f00f10d7c068799378951832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/ocs_diameter_acct_port_sup.erl:72-76 | src/ocs_diameter_auth_port_sup.erl:88-92 | src/ocs_radius_acct_port_sup.erl:92-96 | src/ocs_sup.erl:94-98 \u2014 before extracting anything, compare \u0060src/ocs_diameter_acct_port_sup.erl\u0060 and \u0060src/ocs_radius_acct_port_sup.erl\u0060 as WHOLE FILES: 92% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_diameter_acct_port_sup.erl:72\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_acct_port_sup.erl"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4802bba7a5da22d615918947422730e3e438eee2d993a0bca94d9f276e8869f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_diameter_acct_service_fsm_sup.erl:60-64 | src/ocs_diameter_auth_service_fsm_sup.erl:60-64 | src/ocs_eap_ttls_fsm_sup.erl:61-65 \u2014 before extracting anything, compare \u0060src/ocs_diameter_acct_service_fsm_sup.erl\u0060 and \u0060src/ocs_diameter_auth_service_fsm_sup.erl\u0060 as WHOLE FILES: 94% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_diameter_acct_service_fsm_sup.erl:60\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/ocs_diameter_acct_service_fsm_sup.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b076a650b266752a90241d7150129dd354b7a9d6ef44104709902361522ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/ocs_eap_aka_fsm.erl:1507-1518 | src/ocs_eap_akap_fsm.erl:1544-1555 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm.erl\u0060 and \u0060src/ocs_eap_akap_fsm.erl\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 330 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/ocs_eap_aka_fsm.erl"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2cba44180d7b556460c3ae6466d5e69ade9970e60bf71de42469211b4b7b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_eap_aka_fsm_sup.erl:61-66 | src/ocs_eap_akap_fsm_sup.erl:61-65 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm_sup.erl\u0060 and \u0060src/ocs_eap_akap_fsm_sup.erl\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_eap_aka_fsm_sup.erl:61\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/ocs_eap_aka_fsm_sup.erl"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d824b638d30041591e07a277dedb0f7b5d5d763050aba25bda1551f02fec0202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_log.erl:1441-1446 | src/ocs_rest.erl:44-49 \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/ocs_log.erl"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a35c01ae4cac5d778d4ab36bd0d54098dbef62d67c868d813c2de13100ff666"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_radius_acct_top_sup.erl:60-64 | src/ocs_radius_auth_sup.erl:60-64 \u2014 before extracting anything, compare \u0060src/ocs_radius_acct_top_sup.erl\u0060 and \u0060src/ocs_radius_auth_sup.erl\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_radius_acct_top_sup.erl:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_radius_acct_top_sup.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"420c054708441ac4fc0e01593f96af9574a8dfc13caf4e16acdf35cd631b3464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rating.erl:3616-3620 | src/ocs_scheduler.erl:231-235 \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/ocs_rating.erl"},"region":{"startLine":3616}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2155ca44a6252f33eabf33a5f388a959b36299159e80dc254ee4628be0335a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rating.erl:3623-3627 | src/ocs_scheduler.erl:238-242 \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/ocs_rating.erl"},"region":{"startLine":3623}}}],"partialFingerprints":{"codehealthFindingId/v1":"8becff593f2c46ab1ed5ff82b3b2b714863b49687d81f8a0b3f48403c57e5074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): src/ocs_rest_res_hub_balance.erl:62-71 | src/ocs_rest_res_hub_product.erl:65-74 | src/ocs_rest_res_hub_resource.erl:63-72 | src/ocs_rest_res_hub_role.erl:100-109 | src/ocs_rest_res_hub_service.erl:63-72 | src/ocs_rest_res_hub_usage.erl:63-72 | src/ocs_rest_res_hub_user.erl:63-72 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_hub_balance.erl\u0060 and \u0060src/ocs_rest_res_hub_product.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/ocs_rest_res_hub_balance.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26a922f350a0312b70dc01f1203ed0a760b7751b9f402fed0773be0e2b5d8a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): src/ocs_deregister_fsm_sup.erl:42-46 | src/ocs_diameter_acct_top_sup.erl:42-46 | src/ocs_diameter_auth_sup.erl:42-46 | src/ocs_diameter_disconnect_fsm_sup.erl:42-46 | src/ocs_eap_aka_fsm_sup_sup.erl:42-46 | src/ocs_eap_pwd_fsm_sup.erl:42-46 | src/ocs_eap_ttls_fsm_sup_sup.erl:42-46 | src/ocs_pgw_fsm_sup.erl:42-46 | src/ocs_radius_acct_top_sup.erl:42-46 | src/ocs_radius_auth_sup.erl:42-46 | src/ocs_simple_auth_fsm_sup.erl:42-46 | src/ocs_terminate_fsm_sup.erl:42-46 \u2014 before extracting anything, compare \u0060src/ocs_deregister_fsm_sup.erl\u0060 and \u0060src/ocs_diameter_disconnect_fsm_sup.erl\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_deregister_fsm_sup.erl:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_deregister_fsm_sup.erl"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfafca1ede892b4cbf64df9049552996cf41b1d8a5b7e33a525f1634af934dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:704-708 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1623-1627 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_ro_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_ro_nrf_app_cb.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 135 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/ocs_diameter_3gpp_ro_application_cb.erl:704\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"8143dba8b39353666de352c6e70e68108dfc3038c8821f6468cb00e7415c7d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_eap_aka_fsm_sup.erl:42-46 | src/ocs_eap_akap_fsm_sup.erl:42-46 \u2014 before extracting anything, compare \u0060src/ocs_eap_aka_fsm_sup.erl\u0060 and \u0060src/ocs_eap_akap_fsm_sup.erl\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_eap_aka_fsm_sup.erl"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa47ddc37d0e301963ff6ddc6516d1459d5bcc5a82ad136dea00704335f9f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/ocs_event_log_sup.erl:42-46 | src/ocs_rest_hub_sup.erl:42-46 | src/ocs_rest_pagination_sup.erl:42-46 | src/ocs_statistics_sup.erl:42-46 \u2014 before extracting anything, compare \u0060src/ocs_event_log_sup.erl\u0060 and \u0060src/ocs_rest_hub_sup.erl\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_event_log_sup.erl:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_event_log_sup.erl"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8356684ecc43cc4b0102ab7cd5512fe3351ae33d0199d2331fe32997131c84f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ocs_radius_acct_server_sup.erl:44-51 | src/ocs_radius_auth_server_sup.erl:44-51 \u2014 before extracting anything, compare \u0060src/ocs_radius_acct_server_sup.erl\u0060 and \u0060src/ocs_radius_auth_server_sup.erl\u0060 as WHOLE FILES: 90% 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/ocs_radius_acct_server_sup.erl"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3960a23139ad6603247b48eb1c3edc69254ba1a7c1784387e46cf579b76116ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/ocs_rest_res_client.erl:135-141 | src/ocs_rest_res_role.erl:214-220 | src/ocs_rest_res_user.erl:132-138 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_client.erl\u0060 and \u0060src/ocs_rest_res_role.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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/ocs_rest_res_user.erl:132\u0060 calls \u0060get_user\u0060 and \u0060src/ocs_rest_res_client.erl:133\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/ocs_rest_res_client.erl"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c94e58cbb2199160dba3302441f0463bf37986c9707b6697d7964189553e8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_rest_res_role.erl:136-142 | src/ocs_rest_res_user.erl:61-67 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_user.erl\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 205 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/ocs_rest_res_role.erl"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f347f39686e23c9bb8db55bc824461c4fb174c00500d93ff3d76ee9c8ca7eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/ocs_rest_res_product.erl:601-612 | src/ocs_rest_res_product.erl:737-748 | src/ocs_rest_res_resource.erl:718-729 | src/ocs_rest_res_service.erl:330-341 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_resource.erl\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 209 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/ocs_rest_res_resource.erl:718\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_product.erl"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dfb39158391659c9b023b8cf9067d1b768d84ff4bdd5dc908a38f1e7b736ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/ocs_log.erl:2909-2919 | src/ocs_log.erl:2931-2941 | src/ocs_log.erl:2952-2962 \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/ocs_log.erl"},"region":{"startLine":2909}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3fbc6896415f87920743b21acdc4e758ef022824d6e726c66019154d7b1a0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_balance.erl:125-135 | src/ocs_rest_res_service.erl:194-204 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_service.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 216 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/ocs_rest_res_balance.erl"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a434957198647704f383d067e6154f789703b15997d8cc05fcaff20fb6c0270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_role.erl:106-116 | src/ocs_rest_res_user.erl:322-332 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_user.erl\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 205 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/ocs_rest_res_user.erl:322\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_role.erl"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9360ad822a92b8f5ea3bcfc65e16101582e6137fc6575cc28f0817b647b94a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_rest_res_product.erl:184-194 | src/ocs_rest_res_product.erl:221-231 \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/ocs_rest_res_product.erl:221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_product.erl"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f47e80fdc371f95d21f6ab222ab28cd2883709feab8fc17d1aee962fa3c090d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_log.erl:2680-2689 | src/ocs_log.erl:2717-2726 \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/ocs_log.erl"},"region":{"startLine":2680}}}],"partialFingerprints":{"codehealthFindingId/v1":"585809883311243986cc940c49982da29107661bfca1156636908e3f7cb2628e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/ocs_log.erl:2680-2689 | src/ocs_log.erl:2699-2708 | src/ocs_log.erl:2717-2726 \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/ocs_log.erl"},"region":{"startLine":2680}}}],"partialFingerprints":{"codehealthFindingId/v1":"5904331aca810c76c92f5d5bca65b2c6e07cb05672e0e6bb4a5feabafc22dd4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_log.erl:2591-2600 | src/ocs_log.erl:2628-2637 \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/ocs_log.erl"},"region":{"startLine":2591}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d3900761a906e9a0a32db24136b3a28b42033a5149fc82730ff7d178c094d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ocs_rest_res_balance.erl:196-205 | src/ocs_rest_res_client.erl:60-69 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_client.erl\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 206 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/ocs_rest_res_balance.erl"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e7607fcc8ee049d193684ed0c3a7beebde006d0dff67cf7ab843619a740af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/mod_oauth.erl:334-342 | src/mod_oauth.erl:348-357 \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/mod_oauth.erl"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"7306b03c4a7d365dfca5a89dfb84fd3c1993be640577f1ffb44144ed2c60bc3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/ocs_log.erl:2591-2600 | src/ocs_log.erl:2610-2619 | src/ocs_log.erl:2628-2637 \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/ocs_log.erl"},"region":{"startLine":2591}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec39642c9a23d94539601ebf7daa67b00cb0384d0b0946b03a48f2d2e59c9d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/ocs_rest_res_resource.erl:758-767 | src/ocs_rest_res_resource.erl:860-869 | src/ocs_rest_res_resource.erl:912-921 \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/ocs_rest_res_resource.erl:758\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/ocs_rest_res_resource.erl"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"1814819c7b118d8380513e9923403be9549ec5957d4543f23b650a5de7d13a3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/ocs_rest_res_product.erl:461-469 | src/ocs_rest_res_product.erl:631-639 | src/ocs_rest_res_service.erl:385-393 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_service.erl\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 238 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/ocs_rest_res_product.erl:631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_product.erl"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"2153f1b02d5e99700df8491daf7f2a317feed059fcddabbe04069c5813290ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_balance.erl:231-239 | src/ocs_rest_res_service.erl:161-169 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_balance.erl\u0060 and \u0060src/ocs_rest_res_service.erl\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 216 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/ocs_rest_res_balance.erl"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"088abe020a5636df98fe64a47b84aa9488418e0acd8af3ee8ab8eea6dabac66e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/ocs_rest_res_product.erl:182-189 | src/ocs_rest_res_product.erl:219-226 | src/ocs_rest_res_service.erl:120-127 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_product.erl\u0060 and \u0060src/ocs_rest_res_service.erl\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 238 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/ocs_rest_res_product.erl:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_product.erl"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bfe576d71d2fc519d67ba9eb7724971e322ed3ecdc6148ed95fe26a6ea495d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:2690-2697 | src/ocs_log.erl:2709-2715 \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/ocs_log.erl"},"region":{"startLine":2690}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a48fc6ceb9a055007dfc72daddd07f3662e51949cd4d69c2b9f5249053ba26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): src/ocs_rest_res_nrf.erl:1231-1237 | src/ocs_rest_res_nrf.erl:1239-1245 | src/ocs_rest_res_nrf.erl:1247-1253 | src/ocs_rest_res_nrf.erl:1255-1261 | src/ocs_rest_res_nrf.erl:1263-1269 | src/ocs_rest_res_nrf.erl:1271-1277 | src/ocs_rest_res_nrf.erl:1279-1285 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_nrf.erl"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0cee162db43dbff2edb4302407f8dd01d7e9b349fdbae8706734233b987981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:2811-2817 | src/ocs_log.erl:2824-2830 \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/ocs_log.erl"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"0beb557c9917b3b8a5fa4a4d3b9e92ddc76044f3e4b7b0a6a30d484c9e8dd428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:2601-2607 | src/ocs_log.erl:2620-2626 \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/ocs_log.erl"},"region":{"startLine":2601}}}],"partialFingerprints":{"codehealthFindingId/v1":"991502bab110aed68b4ddd2283b567744782435ca88f041e5bd804291dce8f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1015-1021 | src/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1082-1088 \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/ocs_diameter_3gpp_ro_nrf_app_cb.erl:1015\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ff0180264e451171c2d0e04e6c8e1b57f2de8d8c0ff4a97d94b2eae5f49bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/ocs_rest_res_health.erl:472-478 | src/ocs_rest_res_health.erl:482-488 | src/ocs_rest_res_health.erl:492-498 | src/ocs_rest_res_health.erl:502-508 | src/ocs_rest_res_health.erl:512-518 | src/ocs_rest_res_health.erl:533-539 \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/ocs_rest_res_health.erl:472\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_health.erl"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ba896e7c88c467745a4f4fddc0e5d6b1eaad99d8f4f05964ffc533a34f9a7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:2976-2982 | src/ocs_log.erl:2989-2995 \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/ocs_log.erl"},"region":{"startLine":2976}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4d200da8ea97c908523bc5a8799fa39b8b5468e71e09235a01542dc93e6048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:3198-3204 | src/ocs_log.erl:3211-3217 \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/ocs_log.erl"},"region":{"startLine":3198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6926f6d218cb7e65748edfe43271b3b5bc358f3490818f439ca2ac02bfe42b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:2737-2743 | src/ocs_log.erl:2749-2755 \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/ocs_log.erl"},"region":{"startLine":2737}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e096d6e07f9adb17cd314f613d757845664d3c92a12f4a413051ce76a761882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_rest_res_role.erl:70-76 | src/ocs_rest_res_user.erl:202-208 \u2014 before extracting anything, compare \u0060src/ocs_rest_res_role.erl\u0060 and \u0060src/ocs_rest_res_user.erl\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 205 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/ocs_rest_res_role.erl:70\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/ocs_rest_res_role.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"47613111f7d2edad8f4776505fcb139c253349032ef9cbd9ae019f265f0cfc09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:3050-3056 | src/ocs_log.erl:3063-3069 \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/ocs_log.erl"},"region":{"startLine":3050}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b1aeceab94f9f776d3a3591e174167916fe99f9289e38f2e44da6e8ea0688f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:3124-3130 | src/ocs_log.erl:3137-3143 \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/ocs_log.erl"},"region":{"startLine":3124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d535a2e532892f4274edada8a97a40f3238ea334e867856b4f1c06e48008c18b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:2648-2654 | src/ocs_log.erl:2660-2666 \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/ocs_log.erl"},"region":{"startLine":2648}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d5523ac0d62245e1e1c2725ecee8457670bc0f0002c6f5756d5f1e05a16054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:3235-3241 | src/ocs_log.erl:3248-3254 \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/ocs_log.erl"},"region":{"startLine":3235}}}],"partialFingerprints":{"codehealthFindingId/v1":"879d02fe9e7999533c6046db0373efa6264e2e656246455097a7aa01a05b1463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_log.erl:1751-1756 | src/ocs_log.erl:1859-1865 \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/ocs_log.erl"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efc7594b22a1c432e4fff4af9883e3708d573a652c112972ed3dcf102dc7d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:3013-3019 | src/ocs_log.erl:3026-3032 \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/ocs_log.erl"},"region":{"startLine":3013}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15c4bc75ffbb32cc5a5f46b7b88b0093dfb500c6138c0af9fcbe29a37d768c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:2774-2780 | src/ocs_log.erl:2787-2793 \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/ocs_log.erl"},"region":{"startLine":2774}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c51593dde66d94e2e08dd6a5300d8de53e35afbc2568b62fe9104d9e83aca30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:3161-3167 | src/ocs_log.erl:3174-3180 \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/ocs_log.erl"},"region":{"startLine":3161}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e5f10c79e078af9430917794e9600ce2d202b7f2efc34308507b7b4a50fa23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): src/ocs_rest_res_health.erl:471-477 | src/ocs_rest_res_health.erl:481-487 | src/ocs_rest_res_health.erl:491-497 | src/ocs_rest_res_health.erl:501-507 | src/ocs_rest_res_health.erl:511-517 | src/ocs_rest_res_health.erl:521-527 | src/ocs_rest_res_health.erl:532-538 | src/ocs_rest_res_health.erl:542-548 \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/ocs_rest_res_health.erl:471\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/ocs_rest_res_health.erl"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"be56faa6fde14219a5dcc1db477432999bc6502070acb33410f8bb94783936d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/ocs_rest_res_nrf.erl:1193-1199 | src/ocs_rest_res_nrf.erl:1201-1207 | src/ocs_rest_res_nrf.erl:1209-1215 | src/ocs_rest_res_nrf.erl:1217-1223 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_nrf.erl"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d445232cc8a10b29b90407cba364d59a964edad3e03f9c5b55c01b906c8b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_log.erl:3087-3093 | src/ocs_log.erl:3100-3106 \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/ocs_log.erl"},"region":{"startLine":3087}}}],"partialFingerprints":{"codehealthFindingId/v1":"825fe3e666ce252a18dbeb9eb548b505ac44af787a7fb17014593a29dee90e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 21): src/mod_ocs_rest_accepted_content.erl:268-272 | src/mod_ocs_rest_delete.erl:127-132 | src/mod_ocs_rest_delete.erl:216-220 | src/mod_ocs_rest_delete.erl:247-251 | src/mod_ocs_rest_delete.erl:258-262 | src/mod_ocs_rest_get.erl:184-189 | src/mod_ocs_rest_get.erl:475-479 | src/mod_ocs_rest_get.erl:506-510 | src/mod_ocs_rest_get.erl:517-521 | src/mod_ocs_rest_head.erl:178-183 | src/mod_ocs_rest_head.erl:220-224 | src/mod_ocs_rest_head.erl:251-255 | src/mod_ocs_rest_head.erl:262-266 | src/mod_ocs_rest_patch.erl:142-147 | src/mod_ocs_rest_patch.erl:234-239 | src/mod_ocs_rest_patch.erl:270-274 | src/mod_ocs_rest_patch.erl:281-285 | src/mod_ocs_rest_patch.erl:316-320 | src/mod_ocs_rest_post.erl:134-139 | src/mod_ocs_rest_post.erl:288-292 | src/mod_ocs_rest_post.erl:299-303 \u2014 before extracting anything, compare \u0060src/mod_ocs_rest_delete.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 as WHOLE FILES: this scan already matched 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_accepted_content.erl"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9b162a591973ae752cf036f77756c34c02fba70d18098104f9d5b108113a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/ocs_terminate_fsm.erl:231-236 | src/ocs_terminate_fsm.erl:246-251 | src/ocs_terminate_fsm.erl:260-265 | src/ocs_terminate_fsm.erl:272-277 | src/ocs_terminate_fsm.erl:284-289 \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/ocs_terminate_fsm.erl:231\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_terminate_fsm.erl"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"186a90300112b2bffc56501c090ea363bea8cc41a2f66ab188a8c39f9e5f986d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_log.erl:6947-6952 | src/ocs_log.erl:6956-6960 \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/ocs_log.erl"},"region":{"startLine":6947}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc86e3949265361364b0aeffc9c9c5971da81768bf2838a557cda319bf8d37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rest_res_health.erl:100-104 | src/ocs_rest_res_health.erl:109-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_health.erl"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4595ab76ad20258a5d907f90d3662b8f19bc47d3a19a20721c7f8b4c1593bb04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/ocs_rest_res_product.erl:993-997 | src/ocs_rest_res_product.erl:1108-1112 | src/ocs_rest_res_product.erl:1131-1135 | src/ocs_rest_res_product.erl:1175-1179 \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/ocs_rest_res_product.erl:993\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/ocs_rest_res_product.erl"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb562d49a2ec3bc4f9973fc5cae3ff556ec6eebd9ce209a7e9825dcfe22e3721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_get.erl:361-365 | src/mod_ocs_rest_get.erl:400-404 \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/mod_ocs_rest_get.erl"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e1bed9166289f371cddc791cce8c72f7b94a43862d21cfc0ffff1525af1608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rest_res_balance.erl:870-874 | src/ocs_rest_res_balance.erl:876-880 \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/ocs_rest_res_balance.erl:870\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/ocs_rest_res_balance.erl"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbd292e9c0d5e53dc646318dcc0bb347de7a2f380c1293a461dd466616eef29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_get.erl:293-297 | src/mod_ocs_rest_get.erl:335-339 \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/mod_ocs_rest_get.erl"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"190772bfcdd4c483f6d4bc75c2a2a2352d9d5ebe6c02f155ff55de11d3e6f399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/ocs_log.erl:6881-6885 | src/ocs_log.erl:6917-6921 | src/ocs_log.erl:6932-6936 | src/ocs_log.erl:6938-6942 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":6881}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e200026f8ca66d5aabc65ced9aeadd6a38afbc19a28307e9b4aa1469d415d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_log.erl:1462-1466 | src/ocs_rest.erl:61-65 \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/ocs_log.erl"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cbc4887d8af1459c03f5a49f7a78058862cd3c9f79d9f8ddb59634374ee8ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_get.erl:355-359 | src/mod_ocs_rest_get.erl:391-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_get.erl"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"3513625ea4c9b2acc8293c2b7d1e0bf5fbfd7e4640e9bed202a9e00b0d3a99cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_rest_res_health.erl:111-115 | src/ocs_rest_res_health.erl:160-164 \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/ocs_rest_res_health.erl"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"12516578ec9d8abd2324e1138dd67dee2b72ca05347b1dc45f259919b9d03408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_get.erl:379-383 | src/mod_ocs_rest_get.erl:385-389 \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/mod_ocs_rest_get.erl"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05a3dadf684c8159e6e39ba05aac5d21e9364fe19bc4128c363836b570bc0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_get.erl:287-291 | src/mod_ocs_rest_get.erl:299-303 \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/mod_ocs_rest_get.erl"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"0175b6266d63e145047acfcdee556140f7da04c7a430f542837fa1358085ac4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_log.erl:6047-6051 | src/ocs_log.erl:6053-6057 | src/ocs_log.erl:6059-6063 \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/ocs_log.erl"},"region":{"startLine":6047}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f39e59d72acf1f0f5375df5b87f415ce1a135ae66ef70e12b7c5852f1497fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_get.erl:367-371 | src/mod_ocs_rest_get.erl:406-410 \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/mod_ocs_rest_get.erl"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c109fcb84546739c78ad5ef669aa8a5fd8e24789d18e5a4957bb4d57f80c0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_rest_res_balance.erl:936-940 | src/ocs_rest_res_balance.erl:946-950 | src/ocs_rest_res_balance.erl:956-960 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_balance.erl"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96c306dd07221557cd0ffb99fb55b28724a15be2d4490d58c44c4142b00f2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/ocs_log.erl:6870-6874 | src/ocs_log.erl:6885-6889 | src/ocs_log.erl:6906-6910 | src/ocs_log.erl:6921-6925 | src/ocs_log.erl:6972-6976 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_log.erl"},"region":{"startLine":6870}}}],"partialFingerprints":{"codehealthFindingId/v1":"a283ad19db006e029da43f71b8d4914321c88c83235282310649e42d842ec224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_log.erl:6335-6339 | src/ocs_log.erl:6341-6345 | src/ocs_log.erl:6347-6351 \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/ocs_log.erl"},"region":{"startLine":6335}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd702c9a2d8bdd4d9e2d659a4c689ebe71294809453d1f7a0cd7beabb59bc1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mod_ocs_rest_get.erl:305-309 | src/mod_ocs_rest_get.erl:329-333 \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/mod_ocs_rest_get.erl"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc92655418cc6f07033cd8eae3343c3f93afda2cca0f727f06bd61b8ea44e571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): src/ocs_rest_res_usage.erl:1051-1055 | src/ocs_rest_res_usage.erl:1061-1065 | src/ocs_rest_res_usage.erl:1071-1075 | src/ocs_rest_res_usage.erl:1081-1085 | src/ocs_rest_res_usage.erl:1091-1095 | src/ocs_rest_res_usage.erl:1100-1104 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_usage.erl"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5a905bb91078dc8db40ae06de3c1a7964c000f372930823f4d992ab8649548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs.erl:2155-2159 | src/ocs.erl:2242-2246 \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/ocs.erl"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57ad73280462e3171971d75b78fd1e3dfdd10ad61a85d213cd29a003ae56ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs.erl:3421-3425 | src/ocs.erl:3440-3444 \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/ocs.erl:3421\u0060 it begins part-way through the construct above it, so those exact 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/ocs.erl"},"region":{"startLine":3421}}}],"partialFingerprints":{"codehealthFindingId/v1":"6997ea7c263ec1cf5a0208d6775b3fa65fc412eb38481536cb55c67a1fd01b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_diameter_3gpp_ro_application_cb.erl:1296-1302 | src/ocs_log.erl:7069-7075 \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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdabb14256d1b4b0e10fc88ab5c609bda5b0f67a84720f7ff3815e302601a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_diameter_3gpp_s6a_application_cb.erl:141-147 | src/ocs_diameter_3gpp_swx_application_cb.erl:130-136 \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/ocs_diameter_3gpp_s6a_application_cb.erl"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d475dbe099e262b5a53d1a412206a55b0eba09d3d189adae646648712af98f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ocs_diameter_3gpp_sta_application_cb.erl:109-119 | src/ocs_diameter_3gpp_swm_application_cb.erl:108-118 \u2014 before extracting anything, compare \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 and \u0060src/ocs_diameter_3gpp_swm_application_cb.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_diameter_3gpp_sta_application_cb.erl:109\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_sta_application_cb.erl"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0568ad4234dbea12d8cd4a2567637be786a9c6c4f0e231ea71ec759ed75862d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_diameter_auth_port_server.erl:386-390 | src/ocs_diameter_auth_port_server.erl:392-396 | src/ocs_diameter_auth_port_server.erl:398-402 \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/ocs_diameter_auth_port_server.erl:386\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/ocs_diameter_auth_port_server.erl"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"b827af973d0b123aa12e6bfa0320a71f3a2cea941f66a6df4c55fb9ed442ff9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_diameter_auth_port_sup.erl:73-77 | src/ocs_radius_acct_port_sup.erl:77-81 | src/ocs_radius_auth_port_sup.erl:70-74 \u2014 before extracting anything, compare \u0060src/ocs_diameter_auth_port_sup.erl\u0060 and \u0060src/ocs_radius_auth_port_sup.erl\u0060 as WHOLE FILES: 85% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/ocs_diameter_auth_port_sup.erl:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_auth_port_sup.erl"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9d200c17b5032895db21f5c57c76dc06b9ae39d3768cc590d16c5fa692c3b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_eap_aka_auc_fsm.erl:301-305 | src/ocs_eap_aka_auc_fsm.erl:313-317 \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/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dd0faacdb1a08556f5caf3a54197b89f90da6bff649542b2c094563a6c884d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_eap_aka_auc_fsm.erl:327-333 | src/ocs_eap_aka_auc_fsm.erl:358-364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_eap_aka_auc_fsm.erl"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cbc79858a5017a917db6a766fbb6af88cbdaf4b8e8c2aec8c63a5262591894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ocs_eap_ttls_fsm.erl:683-687 | src/ocs_eap_ttls_fsm.erl:921-925 \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/ocs_eap_ttls_fsm.erl"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1437adc69f080fd451e9b002524cc1e3bf5a3f9fb2fb83895a499020b0d3bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ocs_rating.erl:2486-2490 | src/ocs_rating.erl:2503-2507 | src/ocs_rating.erl:2522-2526 \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/ocs_rating.erl"},"region":{"startLine":2486}}}],"partialFingerprints":{"codehealthFindingId/v1":"1049f294b929e9f4ec170be2f407145a57e0b078a121dd73e88cfb98abb68a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ocs_rest.erl:323-329 | src/ocs_rest.erl:371-377 \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/ocs_rest.erl"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"90afd17140366c99c28698586a6eaac02c7f8df43ee66c99b4af5ba0ba3cb87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ocs_rest_res_product.erl:1201-1206 | src/ocs_rest_res_product.erl:1223-1228 \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/ocs_rest_res_product.erl"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e010b9c80e752fa0d69d0194dd8b865035d49cb9f6406670c6866bd436e04d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ocs_rest_res_product.erl:1211-1219 | src/ocs_rest_res_product.erl:1232-1240 \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/ocs_rest_res_product.erl"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0c9f58be1093534430d946f31625ca36dd7987f882d7f64bcfaa9bc4f8f357"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 68 significant file(s) lose their only recent owner: src/ocs_log.erl, src/ocs_rest_res_usage.erl, src/ocs_rating.erl, src/ocs.erl, src/ocs_rest_res_product.erl, src/ocs_diameter_3gpp_ro_nrf_app_cb.erl, src/ocs_eap_akap_fsm.erl, src/ocs_eap_aka_fsm.erl (\u002B60 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"af23835badaf8eb090e65c782db597708673c2fccbe11cb9e902b8aa07075b27"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060classID\u0060 spells \u0060ID\u0060 where 14 names in the project spell it \u0060Id\u0060: 14 of 15 names in project repository spell the token \u0060Id\u0060 (14 of 15; unit: names in project repository containing \u0060Id\u0060). Peers: offerAdd.deleteBucketId (priv/www/src/sig-bucket-add.js:257); offerAdd.productId (priv/www/src/sig-bucket-add.js:299); tariffPeriodList.activeTableId (priv/www/src/sig-period-table-list.js:136); policyList.polId (priv/www/src/sig-policy-list.js:431); policyList.classId (priv/www/src/sig-policy-list.js:443). Rename to \u0060classId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-add.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cca5e3c718231644cbb0ac3e0d1a42f12c10720b03a71b36839f40667f0898"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"da4801da4d9219510ff349b8c94a97c37dea3f105ae81d1dfe17ba11aa4b7eaa"},"properties":{"commitSha":"76c02eef01c6ea9a2eac01682b64f3f23fc0dd4f"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"27e5d6e45936ae77c08dce8a3bb76c7323635acbed0a18a456c946b684a10de6"},"properties":{"commitSha":"3a0ea9f3d5ee0ed1af4a27024c0cc61161fb087d"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"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":"3745999e74813ee1ff2c939a7aecc8a9f635b65c846d97e67570feb3a969e1a8"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"678f43445ab6ff9ef6935d1fded52cca5bda2d4e2ef16fdc571f8abad3e35939"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"179e1c12d5782ab7f9b63eaecbfd0daec742e5b70a84441845f366066fa3d049"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0a93b5a0c735687790103150126e371152d93a29fab04518eeb286cf0f2e9ce8"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a65f20f93c29fbeb4b3b14448a1685ec1c1c5edfc049777540b16bb8ee5d072"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2212f816a87bc1d14547f4f4d665b676836cd033b6b06143705f11975467b3a6"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e20aa901903683d59e3e485342a5bb555d0364a537b8f74868606f83a64755f4"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b47c5f5508b4859136bd27c37c50ab96979c35ab3938756ec5bddc87989f26d4"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7bd9a1eb1ddb3242e5a5b5c83b6eab484bb319c41c2f84d54c19a87c5aea1ba"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"13294632d460821494a805cefa8606b6a182bd25d11909a5675bda9731b90d81"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96dbfff685c47bc2759a5c06420aa23a876b549a5c11e9db49555f5c174b1115"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f89b0ba2fa7b4a76e9c0571df3f84459ffe5f9bd3e83a9cc76153e23639e3df5"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7d89d710dac3a88b8ebb2b26836fc12d78c894fa8b014e7a32b617149016f88"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8513729474ac24c39bc2f40bffa2f7bcda4439af5d649d48ef5e41b592cf852"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b655b032377c7fbfffbd97db040c54912b14720d2ea1b96378047713330c57be"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"245d32b506d824331fde454d42db69c103f2a4012b626436f6c8ab081f0b9d19"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d2fc27fb7c211007158e81e4534a4cb255f8088a641719324d3f6f30af2f45a"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ed01a9c1c1d5d0e00151d8b1342bfd7331242cea7384ffc9a23c32ccbfed479"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 93 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (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; 93 of the 118 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/mod_oauth.erl, src/ocs_rest_res_role.erl. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_oauth.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ed1e5ae1b92fb968688e2a5e253f7f945784f4cd89773a740154ecb118ae1a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_role.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"796e715046c088144edade6f8811a7e2bf081cdc6fb55fff6769453c3645d017"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: ocs_diameter_3gpp_sta_application_cb.erl \u2192 ocs_diameter_3gpp_s6b_application_cb.erl, ocs_diameter_3gpp_swm_application_cb.erl, ocs_diameter_3gpp_swx_application_cb.erl: \u0060src/ocs_diameter_3gpp_sta_application_cb.erl\u0060 changes together with 3 other files \u2014 \u0060src/ocs_diameter_3gpp_s6b_application_cb.erl\u0060, \u0060src/ocs_diameter_3gpp_swm_application_cb.erl\u0060, \u0060src/ocs_diameter_3gpp_swx_application_cb.erl\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_sta_application_cb.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2139db30b04a88130247e76b924a7b259e9fa7f0273d6b3d14e69135eef3373e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ocs_diameter_eap_application_cb.erl \u2194 ocs_diameter_nas_application_cb.erl: \u0060src/ocs_diameter_eap_application_cb.erl\u0060 and \u0060src/ocs_diameter_nas_application_cb.erl\u0060 change together 72% of the time (18 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 18 shared commits counted here, the most recent 3 are \u006081612ad4\u0060 refactor simple auth diameter callbacks for consistency; \u00605093ff5a\u0060 handle multiple accepted connections in diameter callbacks; \u0060baf2955a\u0060 handle multiple accepted connections in diameter callbacks \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_eap_application_cb.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34cd94cdfc5538564047661a071af52eb6db46152d08338dfb7d90aa8d78ae4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: ocs_rest_res_hub_balance.erl, ocs_rest_res_hub_product.erl, ocs_rest_res_hub_resource.erl, ocs_rest_res_hub_service.erl, ocs_rest_res_hub_usage.erl, ocs_rest_res_hub_user.erl: 6 files \u2014 \u0060src/ocs_rest_res_hub_balance.erl\u0060, \u0060src/ocs_rest_res_hub_product.erl\u0060, \u0060src/ocs_rest_res_hub_resource.erl\u0060, \u0060src/ocs_rest_res_hub_service.erl\u0060, \u0060src/ocs_rest_res_hub_usage.erl\u0060, \u0060src/ocs_rest_res_hub_user.erl\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 15 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_res_hub_balance.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c91c53bb9032f9f1be8572806dac567db0e65fcfc050500b85534faa120b5e2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: sig-access-list.js, sig-client-list.js, sig-sub-list.js: 3 files \u2014 \u0060priv/www/src/sig-access-list.js\u0060, \u0060priv/www/src/sig-client-list.js\u0060, \u0060priv/www/src/sig-sub-list.js\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-access-list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48edcbe1640078898e2c0a3a1b2cc6c0b1cf8d9710faddf55a11da85ac0b6fb8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mod_ocs_rest_accepted_content.erl \u2194 mod_ocs_rest_get.erl: \u0060src/mod_ocs_rest_accepted_content.erl\u0060 and \u0060src/mod_ocs_rest_get.erl\u0060 change together 58% of the time (63 of the 109 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 63 shared commits counted here, the most recent 3 are \u006041324aa2\u0060 modernize uri parsing in inets httpd callbacks; \u00603376db0b\u0060 correct rest hub resource basenames; \u00605ddaa278\u0060 removed deprecated polymorphic schemas, update oas \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mod_ocs_rest_accepted_content.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1ee5aefa6294ceead0f65b6595fa5286ee375bd53691a8ae92e676b820f4eb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ocs_diameter_acct_service_fsm.erl \u2194 ocs_diameter_auth_service_fsm.erl: \u0060src/ocs_diameter_acct_service_fsm.erl\u0060 and \u0060src/ocs_diameter_auth_service_fsm.erl\u0060 change together 55% of the time (34 of the 62 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 34 shared commits counted here, the most recent 3 are \u00604c60370b\u0060 port deprecated \u0027catch\u0027 to \u0027try ... catch ... end\u0027; \u0060ac030cfd\u0060 move log opening to application handler; \u0060d4e179fe\u0060 safely stop diameter service \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3e1aa383443631fa1c489fef8545bedd857bec358ce18414fe5bf54aba1c17"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ocs.erl \u2194 ocs_server.erl: \u0060src/ocs.erl\u0060 and \u0060src/ocs_server.erl\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \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 7 shared commits counted here, the most recent 3 are \u006017a80030\u0060 public api to stop radius/diameter handlers; \u0060aacf02f5\u0060 add stop/3 api to terminate radius/diameter handlers; \u006064838884\u0060 remove protocol dependant log rotate value \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0beb03ac8eb53a71b79b95d81dd3cad5cdc7d427e0fe8807e2f5b954acc2930b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd0773265f0346fdfecf83cf2917eae8aaf3e74f669d9a7e8426055d173c8fc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebee60d622345e4ffbb1583d8cfe58e600b5430af94eae61636f0f3903ce71d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2dea056eccc3bff2c2bd657807a0415da18a5629c74ac4bf3acec6be7e53a3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f30725550a11582dd38124fe01422dabc5eed4e1ce68432bbcccbb1ea98436"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 10 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd0d5c1900f664939f5fc0a586772f13c016419fa8dfccb55da2942f8782200"}},{"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add dialyzer or elvis \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpc:request(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b98a93a3bafde2e5ff652f1084dd21722452bfd3ca3730fffe10c61b293905"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpc:request(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8b235bb7205ec7901250b17e01360bbf6403ab4b8e499398386602af24d2cb"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpc:request(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7140101a7684c8dcbcf8b45eeb1d004e9e4a8c732c55db228002567d8d02a9"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpc:request(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ocs_rest_hub_fsm.erl"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3bc1fb54f471a64a03d127d2d694e7561640de54a118d62733080858dfffbd"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 45 plain JS \u2014 the untyped files are priv/www/src/ocs-icons.js, priv/www/src/sig-access-list.js, priv/www/src/sig-accounting-list.js, priv/www/src/sig-app.js, priv/www/src/sig-balance-list.js, priv/www/src/sig-bucket-add.js (\u002B39 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (130 lines \u00D7 2 locations): priv/www/src/sig-dashboard.js:1739 \u00B7 priv/www/src/sig-dashboard.js:1870 \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":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cddbfa5c6b3ac3b1e848a777ba5f41face353153d31e80634046a891b13c6a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (118 matched lines \u00D7 2 locations): priv/www/src/sig-tariff-rate-update.js:140 \u00B7 priv/www/src/sig-tariff-roaming-update.js:144 \u2014 the two spans are one implementation copied and then locally edited \u2014 801 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-rate-update.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96ed3008f00a73c9e88d0d1ff6edec4d2e528e7dcdc244e0f6a141b6d4d0435"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (89 lines \u00D7 2 locations): priv/www/src/sig-tariff-rate-add.js:91 \u00B7 priv/www/src/sig-tariff-roaming-add.js:95 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-rate-add.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"969a62fd7218abe51ce4fc6d2cc23575dcf63e48087e5fa4129d1e53cc526c3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 6 locations): priv/www/src/sig-dashboard.js:387 \u00B7 priv/www/src/sig-dashboard.js:470 \u00B7 priv/www/src/sig-dashboard.js:553 \u00B7 priv/www/src/sig-dashboard.js:636 \u00B7 \u002B2 more site(s) not listed \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf56a107ffc16c85b6d789c3e9712b12c6273047485793f9b1d235efdd630f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2 locations): priv/www/src/sig-ipdr-list-voip.js:257 \u00B7 priv/www/src/sig-ipdr-list-wlan.js:354 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-ipdr-list-voip.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"961a485a0f411d8f05540190a9e2eb62dc54cd3b64f5e188972acefb47552829"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (62 identical lines \u00D7 4 files): priv/www/src/sig-period-table-add.js:14 \u00B7 priv/www/src/sig-policy-table-add.js:14 \u00B7 priv/www/src/sig-rate-table-add.js:14 \u00B7 priv/www/src/sig-roaming-table-add.js:14 \u2014 these 4 files are line-for-line copies of one another \u2014 62 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-period-table-add.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c91fa016239420e25b5c8f6f2d53c5e9f797d5f158ec442049f5a0646d61f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (60 identical lines \u00D7 3 files): priv/www/src/sig-period-table-list.js:14 \u00B7 priv/www/src/sig-rate-table-list.js:14 \u00B7 priv/www/src/sig-roaming-table-list.js:14 \u2014 these 3 files are line-for-line copies of one another \u2014 60 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-period-table-list.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e302c63838410760edef2c602476b4133c059110ae9fc3bab105b6ee75902bdf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 3 locations): priv/www/src/sig-tariff-period-list.js:159 \u00B7 priv/www/src/sig-tariff-rate-list.js:130 \u00B7 priv/www/src/sig-tariff-roaming-list.js:119 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-list.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72542bad96165b4af81592079746c789fec7ba58c5edfa8d26832451b67207c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2 locations): priv/www/src/sig-product-list.js:171 \u00B7 priv/www/src/sig-sub-list.js:138 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-product-list.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"519d8ce8ac760c0f3fadce65b9322c7c396ed029934328b0e993b01820a67147"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 3 locations): priv/www/src/sig-tariff-period-update.js:185 \u00B7 priv/www/src/sig-tariff-rate-update.js:127 \u00B7 priv/www/src/sig-tariff-roaming-update.js:131 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-update.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b96e3b4b79d752bb97a1a763a577804b1b2c0637ef0625e57365e2b3821349"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 3 locations): priv/www/src/sig-sub-add.js:740 \u00B7 priv/www/src/sig-sub-add.js:810 \u00B7 priv/www/src/sig-sub-update.js:543 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed5a06a642c9b6e276dbe1dd20b49bd826a58b956225da3fe5dab73463fa0cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 3 locations): priv/www/src/sig-bucket-list.js:361 \u00B7 priv/www/src/sig-product-list.js:287 \u00B7 priv/www/src/sig-sub-list.js:255 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9218b2dd5ae7d6290d1d093b7dbcc306fff0a7354b6f05311a666320f1b551b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 3 locations): priv/www/src/sig-tariff-period-list.js:224 \u00B7 priv/www/src/sig-tariff-rate-list.js:189 \u00B7 priv/www/src/sig-tariff-roaming-list.js:178 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-list.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e84d268d4b005e27d0bac66911654d7b05217ec290495ea2cc7352bc827fe8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3 locations): priv/www/src/sig-tariff-period-add.js:196 \u00B7 priv/www/src/sig-tariff-rate-add.js:139 \u00B7 priv/www/src/sig-tariff-roaming-add.js:143 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-add.js"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a065e8d50380b1b41d900671b167f555e6ec91bd6c21e602ab6e9e883328bc6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2 locations): priv/www/src/sig-accounting-list.js:453 \u00B7 priv/www/src/sig-balance-list.js:245 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5e46f30a0a00667b288e2b8dd1b24fe3434bb412df9521211ee1ac4e333a11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 3 locations): priv/www/src/sig-tariff-period-add.js:143 \u00B7 priv/www/src/sig-tariff-rate-add.js:98 \u00B7 priv/www/src/sig-tariff-roaming-add.js:102 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-add.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b3978875fea00914e441741bdeab94e815808fbdc77ad022576329f828430a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): priv/www/src/sig-bucket-list.js:249 \u00B7 priv/www/src/sig-product-list.js:189 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef2be40343b47e787a1e1a8d081a518d44bd9fe275c17b2c75f3ee7d2e68cf1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): priv/www/src/sig-access-list.js:165 \u00B7 priv/www/src/sig-accounting-list.js:314 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-access-list.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6a86a216ba4fe3a393090810d0ec6effee195b1da2f2a1bb63e815f8f91a56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3 locations): priv/www/src/sig-client-list.js:249 \u00B7 priv/www/src/sig-product-list.js:305 \u00B7 priv/www/src/sig-sub-list.js:273 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-list.js"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"084a794bd7df936bad3b069b2222471e18572c77bfbc0a0a0d5207b0b155655d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:1841 \u00B7 priv/www/src/sig-offer-update.js:1884 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe7a2ff2bb1f406c89a60464170b9191736b4a9a0a3ff05628d8f7acf82757e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:1973 \u00B7 priv/www/src/sig-offer-update.js:2719 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"7258faf1eccd346281ebd22b7af3f8fa0dc5af087d678064b70b961f3c35a6a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 5 locations): priv/www/src/sig-access-list.js:277 \u00B7 priv/www/src/sig-accounting-list.js:462 \u00B7 priv/www/src/sig-balance-list.js:254 \u00B7 priv/www/src/sig-ipdr-list-voip.js:296 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-access-list.js"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec2de0615d27fb328dcdf50446d13c85bcc9bd9d29138886ae6bee9625d6c97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): priv/www/src/sig-http-list.js:193 \u00B7 priv/www/src/sig-user-list.js:195 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-http-list.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e0d5bf6d2fe61c5090be398bc9a260deb33c58980173949eb8ebc9246b580a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): priv/www/src/sig-offer-list.js:161 \u00B7 priv/www/src/sig-user-list.js:128 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-list.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86e8bd106b90d59fe4f2d5e6ecd2232a7f5d70b059583f4e2d8389619f178bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3454 \u00B7 priv/www/src/sig-offer-update.js:3486 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3454}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9ca4ea0e85bac0095537aa9aaa40c5abd259126a929d9201ce403dede3c5c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): priv/www/src/sig-ipdr-list-voip.js:200 \u00B7 priv/www/src/sig-ipdr-list-wlan.js:298 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-ipdr-list-voip.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8af131c993a93c11690362f207d9387f25e1c94254f83c1c1a290509ed63fed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:1765 \u00B7 priv/www/src/sig-offer-update.js:1813 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"f377f492022d2d097923b56bec68a88ad4da9f50fd469a98005fec427e91d323"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): priv/www/src/sig-tariff-period-list.js:123 \u00B7 priv/www/src/sig-tariff-roaming-list.js:83 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-list.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baf25fb03a2b7dbeba750d4787c348787657fd99afa8d1b1b503c0b7500dea3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): priv/www/src/sig-client-update.js:219 \u00B7 priv/www/src/sig-tariff-period-update.js:185 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36cf957fc67bc3b6f17500b2affb26a3dc4ae96ff4392a37eabac648f5c3ac9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2304 \u00B7 priv/www/src/sig-offer-update.js:2350 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2304}}}],"partialFingerprints":{"codehealthFindingId/v1":"317d593a8ab2e7416c88ade8779f976cecceb600c96aa1f03ce32ae326aabda7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4 locations): priv/www/src/sig-policy-list.js:523 \u00B7 priv/www/src/sig-tariff-period-list.js:194 \u00B7 priv/www/src/sig-tariff-rate-list.js:165 \u00B7 priv/www/src/sig-tariff-roaming-list.js:154 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"7882a0ad7fb90dcf977d9f6aba937a4b7076084cec1b53e86a621b797c8c7082"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (27 matched lines \u00D7 2 locations): priv/www/src/sig-tariff-period-update.js:325 \u00B7 priv/www/src/sig-tariff-roaming-update.js:206 \u2014 the two spans are one implementation copied and then locally edited \u2014 197 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-update.js"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"1695c9b1c698c7429b0bdd55e34fece04f54db31603beddeb03793209c775fca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): priv/www/src/sig-client-list.js:166 \u00B7 priv/www/src/sig-sub-list.js:119 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-list.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fba30efe055f2962bcbc7aa92ae6e4427ec6e19b0ff8f4c6deb2e43914f59be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 4 locations): priv/www/src/sig-dashboard.js:954 \u00B7 priv/www/src/sig-dashboard.js:980 \u00B7 priv/www/src/sig-dashboard.js:1006 \u00B7 priv/www/src/sig-dashboard.js:1032 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbf809b61444e9db2b1eea6e3577d6959d9d409c1270c272824b5dbfec71f96"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:2113 \u00B7 priv/www/src/sig-offer-add.js:2231 \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":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0843806c708dce38f0f16cbdd3fa56a6e8649f80b39cdfea8c6d5b32cf581d5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): priv/www/src/sig-dashboard.js:1846 \u00B7 priv/www/src/sig-dashboard.js:1977 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc3071795cd99fd2b63c7fdde83d6b6df0502684ccfe4a8020f7f3dc073d98d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4 locations): priv/www/src/sig-sub-add.js:563 \u00B7 priv/www/src/sig-sub-add.js:592 \u00B7 priv/www/src/sig-sub-update.js:632 \u00B7 priv/www/src/sig-sub-update.js:659 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f88f15e882a41e06c6a26bd713917096de3696d37d848dde592c742f7d576d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): priv/www/src/sig-sub-update.js:711 \u00B7 priv/www/src/sig-sub-update.js:736 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a518ca5b93153102994a8fa150f0ea6635d142c929bd079da2a441762f406a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): priv/www/src/sig-client-update.js:190 \u00B7 priv/www/src/sig-user-update.js:126 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"feedbf51a3a2fe010c1d32a1aeb0e940d16c4ba509f83cd1832e7a3c9a796ed9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): priv/www/src/sig-client-update.js:275 \u00B7 priv/www/src/sig-client-update.js:349 \u00B7 priv/www/src/sig-user-update.js:198 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa284310bdafda7638416f1e0e90812ed18e94c9a46b26dc44ad69d0fa1e656d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): priv/www/src/sig-dashboard.js:1666 \u00B7 priv/www/src/sig-dashboard.js:1689 \u00B7 priv/www/src/sig-dashboard.js:1712 \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":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"166b5735d11b7ea8072ee5c965902f2b81cd4a806d367e62d1eafe567e6a12c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2963 \u00B7 priv/www/src/sig-offer-update.js:2986 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2963}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbc6b6bd3e406f4a7c2bb6631eb83fb86260a151a9ac477a91322e660b11979"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1497 \u00B7 priv/www/src/sig-offer-update.js:3351 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"60076582ed481e3b2a9c32f6306332843839ee9d92ddf3fe893b5da62869fe47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:2031 \u00B7 priv/www/src/sig-offer-update.js:3226 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a3118ef2ac91a2c76066385d148772dd0f13faff0ca79658126bdbdec93f37"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3 locations): priv/www/src/sig-tariff-period-update.js:371 \u00B7 priv/www/src/sig-tariff-rate-update.js:245 \u00B7 priv/www/src/sig-tariff-roaming-update.js:246 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-update.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"077a518282f7138fa49547f690d61b557db8081cd614c35580954a629071f63c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 5 locations): priv/www/src/sig-client-add.js:175 \u00B7 priv/www/src/sig-period-table-add.js:104 \u00B7 priv/www/src/sig-policy-table-add.js:102 \u00B7 priv/www/src/sig-rate-table-add.js:104 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-add.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9c4bd3bdaac732e24506339b774f4b6bc236b0cbce1a34e94f730ca8b38233"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 7 locations): priv/www/src/sig-dashboard.js:353 \u00B7 priv/www/src/sig-dashboard.js:450 \u00B7 priv/www/src/sig-dashboard.js:533 \u00B7 priv/www/src/sig-dashboard.js:616 \u00B7 \u002B3 more site(s) not listed \u2014 all 7 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e36eee387c6c52e93ea0da1ae713ce120a392c0b1e04ab7346dea2f7cf104ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 8 locations): priv/www/src/sig-accounting-list.js:360 \u00B7 priv/www/src/sig-bucket-list.js:264 \u00B7 priv/www/src/sig-client-list.js:212 \u00B7 priv/www/src/sig-product-list.js:204 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 8 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"7595d84fccd03855424c926118d28fb3042b3b6a890e84a520512623e638d4be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): priv/www/src/sig-accounting-list.js:291 \u00B7 priv/www/src/sig-bucket-list.js:217 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aabcaebd196017cc36da8e32f98309320078d38a9f707fc6dd607a0c8500eb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6 locations): priv/www/src/sig-offer-update.js:2278 \u00B7 priv/www/src/sig-offer-update.js:2324 \u00B7 priv/www/src/sig-offer-update.js:2370 \u00B7 priv/www/src/sig-offer-update.js:2415 \u00B7 \u002B2 more site(s) not listed \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a67262b279d124a9c2142f950d954cfa15f0f4515c7ad70430e7a8ed33eb2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7 locations): priv/www/src/sig-dashboard.js:315 \u00B7 priv/www/src/sig-dashboard.js:412 \u00B7 priv/www/src/sig-dashboard.js:495 \u00B7 priv/www/src/sig-dashboard.js:578 \u00B7 \u002B3 more site(s) not listed \u2014 all 7 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"641d99471fb2d94d714a0c0c094a855c1622573f936800a86963d9492678436f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5 locations): priv/www/src/sig-dashboard.js:934 \u00B7 priv/www/src/sig-dashboard.js:960 \u00B7 priv/www/src/sig-dashboard.js:986 \u00B7 priv/www/src/sig-dashboard.js:1012 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"c038fb6db4b966de03083fd8a4680a321d3d6054c67b7357b3b8b9946b1c3c0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2620 \u00B7 priv/www/src/sig-offer-update.js:3545 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85d0d94fb9ed2e8881dfa99e95ae5181768831f3dab52d5229eb26798f63255"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4 locations): priv/www/src/sig-offer-update.js:2049 \u00B7 priv/www/src/sig-offer-update.js:2069 \u00B7 priv/www/src/sig-offer-update.js:2234 \u00B7 priv/www/src/sig-offer-update.js:2257 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa3ac06b0fbea78d7d8972d33425d0809754351a2d79b947888d12abe4f84dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): priv/www/src/sig-offer-update.js:2387 \u00B7 priv/www/src/sig-offer-update.js:2432 \u00B7 priv/www/src/sig-offer-update.js:2476 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2387}}}],"partialFingerprints":{"codehealthFindingId/v1":"615b2781c09693b3762723e5b1438bf8ba1c82f98dc127b7926ce35d96becc42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3211 \u00B7 priv/www/src/sig-offer-update.js:3582 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d01b3a1e8f70978519b3a85873726401daa65b84704b96ecb952acb2b600e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): priv/www/src/sig-sub-update.js:512 \u00B7 priv/www/src/sig-sub-update.js:762 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce00ac190b543c5d3b2d9ce4445824cb6540b266c36185ad3526910edc37734a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): priv/www/src/sig-client-update.js:388 \u00B7 priv/www/src/sig-product-add.js:217 \u00B7 priv/www/src/sig-product-add.js:269 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb56f0785cc7d634ec23bfeef194383252d016facd20d0838de497337bd311fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4 locations): priv/www/src/sig-dashboard.js:954 \u00B7 priv/www/src/sig-dashboard.js:980 \u00B7 priv/www/src/sig-dashboard.js:1006 \u00B7 priv/www/src/sig-dashboard.js:1032 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee08c2df41be48f31b7d744eaf65cf4b78725e0966a268c9b8f10f595c8d0aca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): priv/www/src/sig-offer-add.js:1102 \u00B7 priv/www/src/sig-offer-add.js:1118 \u00B7 priv/www/src/sig-offer-add.js:1227 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6a21ed965e65da0f2ed45ef28f57740652292f2459669180615509ba3c811d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1372 \u00B7 priv/www/src/sig-offer-add.js:1402 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"235e82b7bfc4475b1d434f2984323d3a30d653815ebbeaef7084c6a6d4c4973c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8 locations): priv/www/src/sig-offer-add.js:2063 \u00B7 priv/www/src/sig-offer-add.js:2200 \u00B7 priv/www/src/sig-offer-update.js:1174 \u00B7 priv/www/src/sig-offer-update.js:1239 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2063}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c79319040afcb5d7dd4746d20770374e303df6174344b4cf8cbbf88d9a06b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:1942 \u00B7 priv/www/src/sig-offer-update.js:2685 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd29860c17f81abf1bd09025023ec5d573a328b6197f191d5e7b7c1017854549"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): priv/www/src/sig-offer-update.js:3256 \u00B7 priv/www/src/sig-offer-update.js:3385 \u00B7 priv/www/src/sig-offer-update.js:3618 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8b00072786224980cfc70ae521a7c4a78f476d973d03459b7fd535d7819c1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3319 \u00B7 priv/www/src/sig-offer-update.js:3382 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3319}}}],"partialFingerprints":{"codehealthFindingId/v1":"60455551886fb549435508dcb9b8e46fdb90f4d2e47001256143e78eb35a7a86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): priv/www/src/sig-sub-update.js:893 \u00B7 priv/www/src/sig-tariff-period-update.js:371 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"72172f994a10a678b4734a47340252796ad01cee310f292578a3772ab181e2a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): priv/www/src/sig-bucket-add.js:326 \u00B7 priv/www/src/sig-offer-update.js:3674 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-add.js"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f94ed85b0059226e3741f96d34ab40441860241ecff45314741187215e7e087"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): priv/www/src/sig-offer-add.js:1434 \u00B7 priv/www/src/sig-offer-update.js:3410 \u00B7 priv/www/src/sig-offer-update.js:3428 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bbf8883853fc82354dc555cac54b80619a7bd69da221dfedb42c459ff032fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): priv/www/src/sig-offer-add.js:1619 \u00B7 priv/www/src/sig-offer-add.js:1636 \u00B7 priv/www/src/sig-offer-add.js:1749 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"de048deb55d597da883411cf469a748024ae720d77ab664a8add5d693a50c360"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1999 \u00B7 priv/www/src/sig-offer-add.js:2167 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d514f97abc43088366a5f24bfb5b6e49595f8924b2c77db702602846b0a7c02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:1686 \u00B7 priv/www/src/sig-offer-update.js:1705 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54ec345278af441ad3c1d401b51e8133346eb15c29ddf6aea57a580d0e9f97e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): priv/www/src/sig-offer-update.js:2406 \u00B7 priv/www/src/sig-offer-update.js:2450 \u00B7 priv/www/src/sig-offer-update.js:2494 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2406}}}],"partialFingerprints":{"codehealthFindingId/v1":"58748207ca7c075923c41b0c3edfabad7cccca03604d133ad50ee5012f48137a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3758 \u00B7 priv/www/src/sig-offer-update.js:3774 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3758}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bb0ca0d481c1da908b71b221d5797bb002b005a32646be6610591ae9ec9c9c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): priv/www/src/sig-dashboard.js:276 \u00B7 priv/www/src/sig-dashboard.js:373 \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":"priv/www/src/sig-dashboard.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdee1a244cf984072f28f5166b513d5a4f472ede0fb55e9f8917843b7c90104d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1022 \u00B7 priv/www/src/sig-offer-update.js:966 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bf5f1e8440a974511e346a301ce00f30e3e2bd251404cfaeb58bd99031d4c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): priv/www/src/sig-offer-add.js:1134 \u00B7 priv/www/src/sig-offer-add.js:1243 \u00B7 priv/www/src/sig-offer-update.js:1016 \u00B7 priv/www/src/sig-offer-update.js:1618 \u2014 the 4 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"931633cfc55b463e5b0f007796aa8c3692786e645c8e792555f0e7088643669e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:2183 \u00B7 priv/www/src/sig-offer-update.js:3594 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"348e233c955f404f9d5c2f9731f4fe697689882dce7237b534750345fabcf196"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): priv/www/src/sig-offer-add.js:2267 \u00B7 priv/www/src/sig-sub-update.js:893 \u00B7 priv/www/src/sig-tariff-period-add.js:224 \u00B7 priv/www/src/sig-tariff-period-update.js:371 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49b4826c2411b951050c1d0c3d99703a75750c3ace489d5755b42e3a06df3ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:1646 \u00B7 priv/www/src/sig-offer-update.js:1725 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1646}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d647b105415921799e371f874d8f4542080f89235295dae9978f952858afe00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): priv/www/src/sig-offer-update.js:2188 \u00B7 priv/www/src/sig-offer-update.js:2210 \u00B7 priv/www/src/sig-offer-update.js:2712 \u00B7 priv/www/src/sig-offer-update.js:2941 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2188}}}],"partialFingerprints":{"codehealthFindingId/v1":"d078cf0f073c2e8f5397496ac210475dd58468416c94b742bc52c8b4ecbac2dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2836 \u00B7 priv/www/src/sig-offer-update.js:2858 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2836}}}],"partialFingerprints":{"codehealthFindingId/v1":"a489e4492ae504d2c9ad237c8ea8e4d30821dd9cf25824b18168cbfa60c24652"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): priv/www/src/sig-sub-update.js:611 \u00B7 priv/www/src/sig-sub-update.js:788 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"275c836dff2418cb47396a6cf366d258573b6c1bd218ef63d9d03b26cc928696"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5 locations): priv/www/src/sig-access-list.js:255 \u00B7 priv/www/src/sig-accounting-list.js:388 \u00B7 priv/www/src/sig-accounting-list.js:402 \u00B7 priv/www/src/sig-accounting-list.js:416 \u00B7 \u002B1 more site(s) not listed \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-access-list.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c83d0b324aa9d6dd72769b6f9c845b2dbfa56b82f1595b799feff270273c5f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 19 locations): priv/www/src/sig-dashboard.js:1197 \u00B7 priv/www/src/sig-dashboard.js:1225 \u00B7 priv/www/src/sig-dashboard.js:1253 \u00B7 priv/www/src/sig-dashboard.js:1281 \u00B7 \u002B15 more site(s) not listed \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbb37339bcfa48d2a283a5d1abbabac21d8294dd726cceea80e1942416be873"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1213 \u00B7 priv/www/src/sig-offer-update.js:1583 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e15143b8bf973408ab33b150f8b56134a51f614e98d1c853616a33a85e776e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:1364 \u00B7 priv/www/src/sig-offer-update.js:1538 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ba6c9b0f506c3147277f6e091bd270d9711ed4cc7a2985cf23c7e86a3019d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6 locations): priv/www/src/sig-offer-update.js:2128 \u00B7 priv/www/src/sig-offer-update.js:2151 \u00B7 priv/www/src/sig-offer-update.js:2168 \u00B7 priv/www/src/sig-offer-update.js:2831 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fcf5ab66ac8abaf218e4f05a288f68e9b89f83bedde1600de57b262a45cde3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3162 \u00B7 priv/www/src/sig-offer-update.js:3182 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41f1dbe412bc214085304111288beb1927396b169001b8ea9308fccd10985e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): priv/www/src/sig-offer-update.js:3421 \u00B7 priv/www/src/sig-offer-update.js:3439 \u00B7 priv/www/src/sig-offer-update.js:3521 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3421}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b61759bab3b963890b5e105ec9c071c4ba11452f92d791788571d60b179bbe5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5 locations): priv/www/src/sig-policy-list.js:681 \u00B7 priv/www/src/sig-policy-list.js:693 \u00B7 priv/www/src/sig-policy-list.js:705 \u00B7 priv/www/src/sig-policy-list.js:717 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf561100b4c9fceba2049dc96211d8a7b7a93400b79f2b0e69073d694e20e99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): priv/www/src/sig-sub-update.js:647 \u00B7 priv/www/src/sig-sub-update.js:674 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7f5e50ce0d15d41d4ce8e932597139ce2993e62eca50c2e2f045dad5ad14b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): priv/www/src/sig-app.js:542 \u00B7 priv/www/src/sig-app.js:563 \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":"priv/www/src/sig-app.js"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"0249b9c162bcfe61e3b7663882bbdd13b4eebf498a451b3657cc885c9295e6a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): priv/www/src/sig-bucket-list.js:226 \u00B7 priv/www/src/sig-policy-list.js:445 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6937f7d55dcbb046436a7470aa8856735d0205d5a1dd15237c92c37f72814bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): priv/www/src/sig-dashboard.js:1351 \u00B7 priv/www/src/sig-dashboard.js:1471 \u00B7 priv/www/src/sig-dashboard.js:1649 \u00B7 priv/www/src/sig-dashboard.js:1728 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7953ef27de830784bf6ea29c01256acf3f15601ad60fbd072ae52980fff6687"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): priv/www/src/sig-offer-add.js:1874 \u00B7 priv/www/src/sig-offer-add.js:1885 \u00B7 priv/www/src/sig-offer-update.js:3076 \u00B7 priv/www/src/sig-offer-update.js:3087 \u2014 the 4 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5cf8c8abad32788004f09545ce09ae60138de4d30a1620bed066c0917eef48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11 locations): priv/www/src/sig-offer-add.js:1900 \u00B7 priv/www/src/sig-offer-add.js:1922 \u00B7 priv/www/src/sig-offer-add.js:1947 \u00B7 priv/www/src/sig-offer-add.js:1966 \u00B7 \u002B7 more site(s) not listed \u2014 the 11 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d96bd23bbd0a8994d6b4916223b17844c5fc5a3fac3866b8b629d635520665"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:1581 \u00B7 priv/www/src/sig-offer-update.js:1614 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"e764e1c7cb2ff83e1be682d2eca2a891eefa4a5adc9660f07fa02419d5eae793"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): priv/www/src/sig-offer-update.js:1920 \u00B7 priv/www/src/sig-offer-update.js:2669 \u00B7 priv/www/src/sig-offer-update.js:3008 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"074d494921d7ef35825a0f42c5ad47e4ec0a74c577d4b13e7f0c6ca04aef7407"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): priv/www/src/sig-offer-update.js:2013 \u00B7 priv/www/src/sig-offer-update.js:2195 \u00B7 priv/www/src/sig-offer-update.js:2217 \u00B7 priv/www/src/sig-offer-update.js:2764 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b477086aaca865e757b6aa0a091f41203e864f13c28dedd9cb05c9096c7dec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): priv/www/src/sig-offer-update.js:2676 \u00B7 priv/www/src/sig-offer-update.js:3015 \u00B7 priv/www/src/sig-offer-update.js:3665 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"9274e54e5eaf970c2cdb7a25cec36f8e608a0fa1b5484a02fca9901ea6fb150c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2908 \u00B7 priv/www/src/sig-offer-update.js:2957 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2908}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad30e07b9d1c90bc024584a5858caa60c55ab49a8d2785e53417df491c440f56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): priv/www/src/sig-dashboard.js:1102 \u00B7 priv/www/src/sig-dashboard.js:1126 \u00B7 priv/www/src/sig-dashboard.js:1142 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca0983cc745fcffa9a8cf1ca07ddf86f69a136eecbaf0fd195a865cd0370e8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): priv/www/src/sig-http-list.js:169 \u00B7 priv/www/src/sig-ipdr-list-voip.js:255 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-http-list.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"3429ec3e904acb7daa8614e9a9129813fdfa120b530a219a71605a90489010ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1041 \u00B7 priv/www/src/sig-offer-add.js:1054 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"85eab98e89265cd6da823c95d58df091c28227d45c0a1750ba50ae34aa79d134"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1179 \u00B7 priv/www/src/sig-offer-add.js:1258 \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":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"deefad66d9028715a6110bc4d7c9106d51a795f9f0c23b78aa426d047e118769"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1840 \u00B7 priv/www/src/sig-offer-update.js:3052 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe38aced0bc5cf784dc1e2aaf8144b968a46c08ca18fd9eb2f2eb88764293ee0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7 locations): priv/www/src/sig-offer-update.js:1281 \u00B7 priv/www/src/sig-period-table-list.js:171 \u00B7 priv/www/src/sig-rate-table-list.js:171 \u00B7 priv/www/src/sig-roaming-table-list.js:171 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f2871bd60fcec38c131d5af0010f13e4573f294ed058e3e7870f5083d82d98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2575 \u00B7 priv/www/src/sig-offer-update.js:3529 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2575}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e4c1b506293d83c7b7e919c151519c81f0187f192253205ce8853b8b3e2090"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): priv/www/src/sig-policy-table-add.js:167 \u00B7 priv/www/src/sig-tariff-period-add.js:223 \u00B7 priv/www/src/sig-tariff-rate-add.js:163 \u00B7 priv/www/src/sig-tariff-roaming-add.js:167 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-table-add.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b90874afdbab3185e6c74f96bc91808ceb766b0752562a86a30c05c1ec718b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): priv/www/src/sig-sub-update.js:844 \u00B7 priv/www/src/sig-sub-update.js:858 \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":"priv/www/src/sig-sub-update.js"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55cbfdb6996bbbabe26fd8af87bca460c5e37ec4dfb35e6ef1dc6d52c538c55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8 locations): priv/www/src/sig-app.js:409 \u00B7 priv/www/src/sig-app.js:418 \u00B7 priv/www/src/sig-app.js:427 \u00B7 priv/www/src/sig-app.js:445 \u00B7 \u002B4 more site(s) not listed \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfb9f57016a529efc2ff3d6b4e16083e967a1f876e7ae9eb7e8fdae6c920713"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7 locations): priv/www/src/sig-client-update.js:339 \u00B7 priv/www/src/sig-offer-update.js:1945 \u00B7 priv/www/src/sig-offer-update.js:2688 \u00B7 priv/www/src/sig-sub-update.js:878 \u00B7 \u002B3 more site(s) not listed \u2014 the 6 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c219104a05107e848d2cbecd3c00f6e194a87d707ab391963cf8d20ed73713cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): priv/www/src/sig-offer-add.js:1279 \u00B7 priv/www/src/sig-offer-add.js:2140 \u00B7 priv/www/src/sig-offer-add.js:2150 \u00B7 priv/www/src/sig-offer-add.js:2160 \u00B7 \u002B1 more site(s) not listed \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"742ff7114f45d72a9977f5cbb7f2f5168e3e56cae98dff425aa2fa2753a71ded"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1649 \u00B7 priv/www/src/sig-offer-add.js:1762 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"e800a8da9693d0c6aed10d8cff1f356030717d6e9a63400b205dd75e51a567dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1723 \u00B7 priv/www/src/sig-offer-update.js:3544 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"797ebb96c4fba53f9961b90edc36a59abf777b759f1c7265edc65f5a057fe3a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1790 \u00B7 priv/www/src/sig-offer-add.js:2132 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1441aabc18298a4dd6f5c522255d562d62338f3a2a08b82f6af9768e0cfc3f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1955 \u00B7 priv/www/src/sig-offer-add.js:1974 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51c378e86dd5129f5086cf3bd7ba9a18cccda05cd020647f1d9874175b8d05a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): priv/www/src/sig-offer-update.js:1304 \u00B7 priv/www/src/sig-offer-update.js:1314 \u00B7 priv/www/src/sig-offer-update.js:1324 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2d120a83bb28c1ed5e9bb3f869328e9aaea2361b9095ffe7fdf060d8e87503"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2649 \u00B7 priv/www/src/sig-offer-update.js:2659 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2649}}}],"partialFingerprints":{"codehealthFindingId/v1":"092f65109e88e1188b117ccd101ab182a659145163e845fcd12e07d1b33c9aec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): priv/www/src/sig-policy-list.js:565 \u00B7 priv/www/src/sig-policy-list.js:574 \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":"priv/www/src/sig-policy-list.js"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d822baa3eebf3aaf11dd4054a06058ead7c218679f1839fa3dd706457933e1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): priv/www/src/sig-policy-list.js:744 \u00B7 priv/www/src/sig-policy-list.js:757 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d70778be6a49c4eaf392b7c5a3a77d1cfa7223e87d4ec5d4bd87cff2f52d2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): priv/www/src/sig-sub-update.js:629 \u00B7 priv/www/src/sig-sub-update.js:656 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b676aa2382cf915eba11d6e94f306f1450a2091205028e93d58bb084e23afc8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): priv/www/src/sig-access-list.js:239 \u00B7 priv/www/src/sig-access-list.js:260 \u00B7 priv/www/src/sig-sub-list.js:207 \u00B7 priv/www/src/sig-sub-list.js:221 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-access-list.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a846ba791a35e4e95c4b571f272c446a70d7f34e07b5d0d7f1c33d9befd5392"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 15 locations): priv/www/src/sig-app.js:393 \u00B7 priv/www/src/sig-app.js:403 \u00B7 priv/www/src/sig-app.js:412 \u00B7 priv/www/src/sig-app.js:421 \u00B7 \u002B11 more site(s) not listed \u2014 all 15 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"203f9e62476659451f82bcdccf76e78bdbedd1b332a76b88e66a809e0b7e4f1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): priv/www/src/sig-app.js:466 \u00B7 priv/www/src/sig-app.js:474 \u00B7 priv/www/src/sig-app.js:482 \u00B7 priv/www/src/sig-app.js:490 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"4443a4606c048d0a7b6688ef85ed3e13c73478323eb50c97f915eb0abfa32755"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): priv/www/src/sig-bucket-add.js:241 \u00B7 priv/www/src/sig-offer-update.js:3657 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-add.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f56d3097f2b132412182b4680a0511d759cf6d00ca52c9668b3b158e29419e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): priv/www/src/sig-client-add.js:251 \u00B7 priv/www/src/sig-sub-add.js:864 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-add.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c971e396d9a2bef681dc7f03c9e7abaa22bccf68d8c149a43bf683448c4d38d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1071 \u00B7 priv/www/src/sig-offer-add.js:1199 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ed7e6d7ebcf4eed359ffdff7db4dd1785a61d0580148af1e6a456ead728851"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1362 \u00B7 priv/www/src/sig-offer-add.js:1388 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"f301419b30f15af549a46273817602cd3e941c222ffcd08d6a95424856b186de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3081 \u00B7 priv/www/src/sig-offer-update.js:3092 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3081}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae860f2908fe5bf47a15673766a44ce69371bd29b8f5fecfa66806f69fec614"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3095 \u00B7 priv/www/src/sig-offer-update.js:3118 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3095}}}],"partialFingerprints":{"codehealthFindingId/v1":"871c50bcdb5efb0cedfb5e3f6de6b52a75214644f191b06e4a84c61500f7d8f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): priv/www/src/sig-policy-add.js:227 \u00B7 priv/www/src/sig-tariff-period-add.js:166 \u00B7 priv/www/src/sig-tariff-rate-add.js:121 \u00B7 priv/www/src/sig-tariff-roaming-add.js:125 \u2014 the 4 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-add.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b07359700f2dd4fa09838ba8cdb760ab4a7e6cae7ca2873871508f595f6a85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): priv/www/src/sig-product-list.js:233 \u00B7 priv/www/src/sig-product-list.js:241 \u00B7 priv/www/src/sig-product-list.js:249 \u00B7 priv/www/src/sig-product-list.js:257 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-product-list.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9332c784e8408a9efae14cd3b196c26567f2ce7e91cc6d3a048b606d03a1c50d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): priv/www/src/sig-sub-update.js:536 \u00B7 priv/www/src/sig-sub-update.js:610 \u00B7 priv/www/src/sig-sub-update.js:787 \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":"priv/www/src/sig-sub-update.js"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d27855f559eaa4a578d99de1b224c972f990bc94f0c4e072058ccb9f9bd83c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): priv/www/src/sig-sub-update.js:779 \u00B7 priv/www/src/sig-sub-update.js:870 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0020764849ec305ed1d100b2f6d1fd2e43429465cadd7da8be2eee4a9928b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): priv/www/src/sig-balance-list.js:206 \u00B7 priv/www/src/sig-product-list.js:196 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-balance-list.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b714a37f0b0df3a2bdf85da35e07920d99616b312eb7be9151f000ae627911c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): priv/www/src/sig-bucket-list.js:311 \u00B7 priv/www/src/sig-bucket-list.js:318 \u00B7 priv/www/src/sig-bucket-list.js:325 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"47322c903dfb35133edd012204affce82d6d78490be208991f094816e2e82fbd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): priv/www/src/sig-client-update.js:419 \u00B7 priv/www/src/sig-user-update.js:258 \u00B7 priv/www/src/sig-user-update.js:273 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a50f8cc7a5b5607aae2f203617310db85906554343dec54d694edcd262129bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): priv/www/src/sig-offer-add.js:1930 \u00B7 priv/www/src/sig-offer-update.js:3136 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1930}}}],"partialFingerprints":{"codehealthFindingId/v1":"710828fca44faf4df60a2f88f8fe5c93e9741ca315e51958c48aab55cd2d1113"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3345 \u00B7 priv/www/src/sig-offer-update.js:3464 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3345}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed04d78610bb0327a8aede6b2c4d86506da0443ce869e4f7b2b13aa74d21b1ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): priv/www/src/sig-client-update.js:331 \u00B7 priv/www/src/sig-user-add.js:174 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c60bae259e3756f1cec4394fbae421e4f4f9ae13557581f52390948b7d7427"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): priv/www/src/sig-offer-update.js:1151 \u00B7 priv/www/src/sig-offer-update.js:1157 \u00B7 priv/www/src/sig-offer-update.js:1163 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a0cbb077415a1db356f4cb2501cfe3096fc6e5b1ff16a49a840fec38e135f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5 locations): priv/www/src/sig-offer-update.js:2100 \u00B7 priv/www/src/sig-offer-update.js:2192 \u00B7 priv/www/src/sig-offer-update.js:2214 \u00B7 priv/www/src/sig-offer-update.js:2716 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4b6191aa839faf4f85e6044a3c001c197409e723b6c849f8c006474de70307"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2923 \u00B7 priv/www/src/sig-offer-update.js:2985 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9db20c3b55c015e56dfffece9eb9af6e3e398704b6e29c2f152aecbc7f66480"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3034 \u00B7 priv/www/src/sig-offer-update.js:3052 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3034}}}],"partialFingerprints":{"codehealthFindingId/v1":"e332fad0df8f30f92494406624429517519d74c63b276842800a17f9aafd227b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:3044 \u00B7 priv/www/src/sig-offer-update.js:3050 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3044}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f132d40887dc88036260280e8bbcd1b78859654867af5370eaaefa58cc6bef5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): priv/www/src/sig-dashboard.js:1082 \u00B7 priv/www/src/sig-dashboard.js:1087 \u00B7 priv/www/src/sig-dashboard.js:1092 \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":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5787eb88d175acbb0e2cd029f50ebe36882da6e6ce4156d615d7daf8b000a3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): priv/www/src/sig-offer-update.js:2700 \u00B7 priv/www/src/sig-offer-update.js:3292 \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":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2700}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b4d4dac9e0ce477038f3ac918ccca440aa77449bcabb9bd5c94ece652e66aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): priv/www/src/sig-policy-add.js:316 \u00B7 priv/www/src/sig-sub-add.js:893 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-add.js"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fb60371fa415612f71fcccad1333b733a65354a2928cd22731831dde795458"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateOfferPrice (cyclomatic 186, cognitive 237): _updateOfferPrice has cyclomatic complexity 186 and cognitive complexity 237; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1951}}}],"partialFingerprints":{"codehealthFindingId/v1":"249dcab3d63fb34c2a5579c342ad2dd04de77cc4a41e76855193d52adf437ba5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateOfferAlteration (cyclomatic 104, cognitive 120): _updateOfferAlteration has cyclomatic complexity 104 and cognitive complexity 120; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb85cb3f216de6abc4c19d780465b66d98b66e054b3026997f7175ad418ae04"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mapPrice (cyclomatic 82, cognitive 120): mapPrice has cyclomatic complexity 82 and cognitive complexity 120; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef2f42aa9ffc9fb96f91d4524d5a5be22793bc660cf0f01efeb32db5ca692e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateProductOffer (cyclomatic 82, cognitive 95): _updateProductOffer has cyclomatic complexity 82 and cognitive complexity 95; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"678b0077e4d05e128cba5c15efbc7741ca0ed88d61ebe746794c06b37193f00f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _activeItemChanged (cyclomatic 79, cognitive 182): _activeItemChanged has cyclomatic complexity 79 and cognitive complexity 182; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"78766669c0814fe360eebedb647493e35d4cfee45837e73789d6908521bb0a50"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAjaxResponse (cyclomatic 78, cognitive 232): handleAjaxResponse has cyclomatic complexity 78 and cognitive complexity 232; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7a25ecef6e574ff096ad34082d76c27ce4e4c463393ee933f6a9f582c0dd78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateAddPrice (cyclomatic 78, cognitive 120): _updateAddPrice has cyclomatic complexity 78 and cognitive complexity 120; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1f6800d724313952e9bf0fda1617bf7900ed0bcce29abb60a39ad38de8b6ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _addPrice (cyclomatic 48, cognitive 33): _addPrice has cyclomatic complexity 48 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"584da76269df2638676add2f83b1cf108a3c37b4f942f42f16f66a2856d084af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updatePricesDialog (cyclomatic 45, cognitive 121): _updatePricesDialog has cyclomatic complexity 45 and cognitive complexity 121; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc704a6fbe9c3f12412b0338623e3df8d2df05259eff380fad3f0284e4d61001"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refresh (cyclomatic 35, cognitive 68): refresh has cyclomatic complexity 35 and cognitive complexity 68; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd4542afd6fb52ae677ecbe3a98e5be42c86b6430886e50015ca3040525aafe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _addOffer (cyclomatic 32, cognitive 39): _addOffer has cyclomatic complexity 32 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7562630f6c8045afd4abee5ccdd86fec55c0596d3aa162baab38355ce7e2cec2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAjaxResponse (cyclomatic 30, cognitive 108): handleAjaxResponse has cyclomatic complexity 30 and cognitive complexity 108; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3b8148a562e4f5c121afd35d6faf75c0fbaa6927fc565a788f44a5d18eafdc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _addAlteration (cyclomatic 29, cognitive 17): _addAlteration has cyclomatic complexity 29 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"901bf7d3118439a9a945648360862f2ebe1ec2b7ce1fd34e483b6ee2de04e273"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAjaxResponse (cyclomatic 28, cognitive 101): handleAjaxResponse has cyclomatic complexity 28 and cognitive complexity 101; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-product-list.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d22a6595ee790906f800d63e5e4b1cfd7fa8a50a095f6e1bec0e0e45feae03"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _addUpdatePriceDialog (cyclomatic 28, cognitive 43): _addUpdatePriceDialog has cyclomatic complexity 28 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab43c45c2166b620f33b3332c6ee7504058a82fd6ee1f9887ea6359e3ff78bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _serviceAddSubmit (cyclomatic 27, cognitive 34): _serviceAddSubmit has cyclomatic complexity 27 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"71123b8f5834c9f79c6d65a278f8d5d827c783f19b0f077459ccef87d2f6f8a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateSubscriberAuthorization (cyclomatic 25, cognitive 54): updateSubscriberAuthorization has cyclomatic complexity 25 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"e192d9ccab75470cfdaacb7a237ff10f82543ac1168ac1cff7aea2d94875aa08"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _routePageChanged (cyclomatic 25, cognitive 16): _routePageChanged has cyclomatic complexity 25 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d6d466e3e4be8e0316e47523d345bf09916c0991eaf49f0b99ff8fadaaa0fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAjaxResponse (cyclomatic 23, cognitive 57): handleAjaxResponse has cyclomatic complexity 23 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-list.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6c125ae76d75d4f50badef077e0aef0300af929e4e2ac25a10a2a253cd403e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAjaxResponse (cyclomatic 22, cognitive 66): handleAjaxResponse has cyclomatic complexity 22 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec2b70eb58531ec9cb371cf27486e47adc650ba8328d921f2c8517af947b843"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAjaxResponse (cyclomatic 22, cognitive 59): handleAjaxResponse has cyclomatic complexity 22 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-list.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbaeef95ecd07da7c0c9f8f73b34b07db718bff3d5113e67117b65c3a8ceacf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateAlterationsDialog (cyclomatic 22, cognitive 34): _updateAlterationsDialog has cyclomatic complexity 22 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03f97e2cfb35493a22fbfd0ceb660a9cd8ec58dd22da94de52a80267ef6c72e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _addServiceResponse (cyclomatic 20, cognitive 44): _addServiceResponse has cyclomatic complexity 20 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e37bb3b901a10af3acc8bf6548c05f8033130dd6356e38ea68382d3e10211e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateAddAlteration (cyclomatic 19, cognitive 11): _updateAddAlteration has cyclomatic complexity 19 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fd7e3986a43c220b147eae9eb0888c590eea4a87b497c733af798075010612"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateSubscriberProduct (cyclomatic 17, cognitive 34): updateSubscriberProduct has cyclomatic complexity 17 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ed08ee34e963ea0619e97d4aa70475a11d8657692bac1f8e3b2e7d4a001c6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateSubscriberBalance (cyclomatic 17, cognitive 32): updateSubscriberBalance has cyclomatic complexity 17 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f2c3c1bf53285f058cddc4a9deee2c91f6583096f3989c511a6ace832816c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _loadingChanged (cyclomatic 17, cognitive 17): _loadingChanged has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"c716277ac3e072676f17eff08d01f954f57225228b62bca44533620c5d0e7a47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _addProductResponse (cyclomatic 16, cognitive 31): _addProductResponse has cyclomatic complexity 16 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"611d630485930be4b58ec9ddeb2e46b834b56d02a36fcd47fcf901c26ff72bcc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _tableAdd (cyclomatic 16, cognitive 15): _tableAdd has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-period-table-add.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a609b5329d2e1aac40972d7f792ce4bddd22f9d1844242379a273e0d059531dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _tableAdd (cyclomatic 16, cognitive 15): _tableAdd has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-rate-table-add.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b8bc1e4c2d7563063ac187b5087d2f8f6288e8d45377654ac19dfdb5d9346c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _tableAdd (cyclomatic 16, cognitive 15): _tableAdd has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-roaming-table-add.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4723c3886914e4b14209e71d1a0a9a303eb3d99bd4fda0e104a8121ad691a5ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _add (cyclomatic 15, cognitive 31): _add has cyclomatic complexity 15 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-add.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"800855c2a5f3017185710079b2908f9b45f95f9d629fa37c5f46e3e943ffcc58"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateAltsDialog (cyclomatic 15, cognitive 13): updateAltsDialog has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc3c0e1771500ea99677eabcd2d59576d750055d48546e662b06f7ae79decc1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _bucketAddSubmit (cyclomatic 14, cognitive 21): _bucketAddSubmit has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-add.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ea120419acd20b6310a50404c956039ab164a76e9c5b4658315e75ca045448"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAjaxResponse (cyclomatic 13, cognitive 33): handleAjaxResponse has cyclomatic complexity 13 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5fe7575746ef813dff673871c0b29858960ddd33b8f98b9a63522a39abf632"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _checkRecurringAlt (cyclomatic 13, cognitive 15): _checkRecurringAlt has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1941}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad49086df4d0a4f07b7da0baa872e94deddace64064f379c476884dfe6f9da95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkRecurringAlt (cyclomatic 13, cognitive 15): checkRecurringAlt has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3147}}}],"partialFingerprints":{"codehealthFindingId/v1":"042467ae425b97e78a2948d84c2212f6bebf03ba035fefbd378cb8a1c951c00b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _tableAdd (cyclomatic 13, cognitive 12): _tableAdd has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-table-add.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"82307cd8ca005fcd78af567c7fdd0142923e0df67dbacc66bd2b863dde5d6153"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateUserSubmit (cyclomatic 11, cognitive 20): _updateUserSubmit has cyclomatic complexity 11 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-user-update.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3aa47b62583fc34a1dba89eafe37574a89e190ade44231fdcaba4c5dee262c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateClientAuth (cyclomatic 11, cognitive 18): updateClientAuth has cyclomatic complexity 11 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"50558731f04eed1ccfc406b0d225b2a120647c199086af0d7736de14843fb2b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAjaxResponse (cyclomatic 11, cognitive 18): handleAjaxResponse has cyclomatic complexity 11 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-list.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43fcf11ebaa35425862ec8db2e515b307fe7e5957ea6c33b1e4c093850d8951"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _checkRecurring (cyclomatic 11, cognitive 12): _checkRecurring has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b9111423318656b3b1e9468be7abdbfe8dada44ae9ba0eecec63a040f5dee6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkRecurring (cyclomatic 11, cognitive 12): checkRecurring has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":3074}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6e9e3469887280e585e97347474f15256025c35f5a7285400830553cc21b19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _update (cyclomatic 11, cognitive 11): _update has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd40bed10e213d1bff2d3f70f5083f8ada8b6a96f117195701dccbe014844fd5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updatePeriodRow (cyclomatic 11, cognitive 10): _updatePeriodRow has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-tariff-period-update.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8a53df547ebb7f27f6a963c3776464a12f8f57ddf40523d062c3509f78ce9d"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-offer-update.js: 3761 lines of code: priv/www/src/sig-offer-update.js has 3761 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-update.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9572149d85adf031378626cae387dd28a5b14ebc554310ce160b8138904bff47"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-offer-add.js: 2343 lines of code: priv/www/src/sig-offer-add.js has 2343 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-offer-add.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b91481793952d167ba0215a04d6f336fb815caa5cc596e1d8cda7bae69c8e0"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-dashboard.js: 2040 lines of code: priv/www/src/sig-dashboard.js has 2040 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2512323e74b4b2cd863b69a1f3aca695512d2abc64bbd8eee5d272e52f7aa6ef"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-sub-add.js: 930 lines of code: priv/www/src/sig-sub-add.js has 930 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-add.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f209720d40ec9618e2971dfe3995b70798f6aa14b159139a5e65fdd88a0cc353"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-sub-update.js: 895 lines of code: priv/www/src/sig-sub-update.js has 895 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-sub-update.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfc65f6b221f32b5a9e4b98f7fa8292ccd61491ac5b4cd939e194384dcaa710"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-app.js: 852 lines of code: priv/www/src/sig-app.js has 852 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b76b263c7693cff800c4bc2929666bc5787049876c62d413729b66caf1ffa45"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-policy-list.js: 767 lines of code: priv/www/src/sig-policy-list.js has 767 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-policy-list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8d4ba6e5e5e95cca55f71b8bc68a22afec0d5eea8ecf2fe1a0a4eb2f30d3a4"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-accounting-list.js: 487 lines of code: priv/www/src/sig-accounting-list.js has 487 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff2b499a6fe0b83ca64f3933dd0d1d312f6ed5a13b63c13fdf420ed6a94ca5c"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-client-update.js: 417 lines of code: priv/www/src/sig-client-update.js has 417 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-client-update.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1543d0bd00a869aadeb96f14bb06b67591356c5bf31e33f7d2fdd3cfac74994b"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-ipdr-list-wlan.js: 417 lines of code: priv/www/src/sig-ipdr-list-wlan.js has 417 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-ipdr-list-wlan.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd358a3402a93f12f0cb901402e190ae4d114a75ecf70a7774f764f1f46be8e"}},{"ruleId":"R3","level":"warning","message":{"text":"priv/www/src/sig-bucket-list.js: 403 lines of code: priv/www/src/sig-bucket-list.js has 403 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ea79886eb70b4ac81a54b261fed1d64245f4fcdabeaf43ec2a8304e69067d4"}},{"ruleId":"R4","level":"warning","message":{"text":"Test Coverage: 0% of 45 production file(s) reachable from 0 test file(s) via the import graph \u2014 \u0027production\u0027 here is the RESIDUE: every source file left once tests, tooling, generated output, config, declarations and declaration-only modules, fixture corpora, type fixtures, behaviour-free data modules, re-export barrels, registration/constant data modules and service workers are set aside, so the percentage is taken over a smaller denominator than the workspace\u0027s file count"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"64e0e3511eb969fb4720b196e7d3799e1714077217351c3c56a27b50e3e21220"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060column !== undefined \u0026\u0026 model.item.entityClass !== undefined\u0060 appears character-identically in 4 files \u2014 priv/www/src/sig-bucket-list.js, priv/www/src/sig-offer-list.js, priv/www/src/sig-product-list.js, priv/www/src/sig-sub-list.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-bucket-list.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2a44a36c5f47e7c22869d9fb6bc43a6d1811a32fc7d9cf6adb518d1447907c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060grid.detailsOpenedItems \u0026\u0026 grid.detailsOpenedItems.some(checkExist)\u0060 appears character-identically in 3 files \u2014 priv/www/src/sig-accounting-list.js, priv/www/src/sig-bucket-list.js, priv/www/src/sig-policy-list.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"priv/www/src/sig-accounting-list.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d944af2fcc6fc42710a091ffb6ff6c57ba11758e275623acc524ceff0669fa06"}},{"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/ocs_diameter_3gpp_ro_application_cb.erl"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a9a262e5f3f561e0067335e7065783d14dd0612cd279030f8286d8b173c707"}},{"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/ocs_diameter_3gpp_ro_nrf_app_cb.erl"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2937041140aacba41192aa7c37f749d391ccce5ef9eeaeb167891460b3748a"}},{"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/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"de49f7ed715f3b0876dc2265e7caa3863ae2dc9d6123ae15eb5b62559e59ce11"}},{"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/ocs_diameter_acct_service_fsm.erl"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7166d523f6b69fea74bbe29c107850d33479733764d66a175265d1fe9071295"}},{"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/ocs_diameter_auth_service_fsm.erl"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9113f7efb6d6487f7884102990fb8924665b84fd6b3e8e57f474f872810e4300"}},{"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/ocs_diameter_auth_service_fsm.erl"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b161089cfda1881ba74fda6a8a4106e3a8a027e58d7b5a2d5252f788438fc451"}},{"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/ocs_eap_ttls_aaah_fsm.erl"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ea8c00b7a36d68a7c51d8e971a75c0de295c14c1616aff41e56d14a3862350"}},{"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/ocs_event.erl"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fede0af957b45d0d66753af5c55be82d4a16f3f523d6f874983a7746ed69c9"}},{"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/ocs_event_log.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa03c7389b8a04a0c169400df75683138fb9c2e0c5b5555914314e736bf25f6"}},{"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/ocs_log.erl"},"region":{"startLine":7008}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b892ba7b1f98b82b2d7b74c87a573f72f1eed3fad7d02c9ca090c1ba0cca59"}},{"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/ocs_log.erl"},"region":{"startLine":7051}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4e08514422e973fb4f4541ae432264d4f6d1f8bf1d875feebdc5e85604c563"}},{"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/ocs_mib.erl"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a0ef6b2442dc58f0082498536bb317af1516876768cfea55534cd00beb2fd0"}},{"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/ocs_mib.erl"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b38efb42c5a5acfa421d4ad421e9fbd0c3c1d9e32f184cedd6fba8bd1c302b"}},{"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/ocs_mib.erl"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6429675903f9a7d3608670329e5df94c70c73f77844263b644f1d1bd108d885"}},{"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/ocs_mib.erl"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee3815f869a8d6d756136e2612627ceafa10092819319abfff7adaa8fabb74f"}},{"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/ocs_mib.erl"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da476db3fd7598b2e8f8fa109fe9297ed7e56d78fca7bba1e56297e57024830"}},{"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/ocs_mib.erl"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcac0056104f4041ba18e110fd6365f1957641c8ffd58d262572f3c44ab4b29"}},{"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/ocs_mib.erl"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"befe0e90e843e5f17ffa8fd697d9d0eeeb356686da399b537240ced7e48822c0"}},{"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/ocs_radius_accounting.erl"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb5f3df3fadbc6a3ce77e8ad024ca5978eadacc618975cca2640896350f5225"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_radius_acct_port_server.erl"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5d463d7cb6aad2bb631e33801f7fec74ca3491f244288ddbb986ed90005fe7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_radius_auth_port_server.erl"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c66e03769f4fe1ff7e7cec352582489e9b97b0a9d4fda6e49c06e07decd906"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_R\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/ocs_radius_authentication.erl"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fb2a43e3ddc1b79b47f952c8c0d1eebe2d6c316a109018b1f64790ded9d2c0"}},{"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/ocs_rest.erl"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be92ec64081e8360871f6516d9b72dbf07d0b9654f264a00252d05652d2153b"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac191d9cf1518ab8d02844aabe095bb9591e0bb0461272b951f56f69bde758c"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c3c8774df64333146ccb70eced9722b090b9c3156e491e454ff587d2b733fa"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"25425d8400c4b77f6f315cd9eb21ba3076bee990c296cb83c7ba91480dadb00a"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8134ae13cc158f09b43c02b3a8c62e9e96dba2135009ec65b88e6f5cd108b07"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c67549859d1573a30d5a699169617cc213696c3c5146659c745c769ed279030"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"82933f17c4a09a15464693cfc176436e61fa10cccfd8351c619be06e60a4135c"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bcbffd2fa80de3b6043cd87467ff3c232f14f6ceecadc6ff8869f63f6500d5"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"40680a196e77db45aab06f878972b1604cdc6df27990d3d31af01924693a8320"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"254551f2b4cee33038601909108fd8576ffc79c73ed144f54506a22e200d8b82"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddbe20730d2fd9abf5d2c87c48228719cdb331987cb302ee74a0c3ccce3c815"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d61f3a71d635530b915e49b29494380e061c31cb59484dbb8319ef771d44ed"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7e17ef5b500fd72bed416d35b3d0d19c7a12469e10fd06c091aeae48bb3456"}},{"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/ocs_rest_res_balance.erl"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3c4f9d7b99c8855c6b25154fd1ce8c7a76cfd86af4a05628fe49b8666a09f0"}},{"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/ocs_rest_res_client.erl"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f907d27e6928d0d2b4425dc91aa1f418e334772bca44e5279e6641c5a36403"}},{"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/ocs_rest_res_client.erl"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"702e12fde49ad1aad94f7d9fcb8248b6537cc746408d491a8a241771cf9afb0b"}},{"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/ocs_rest_res_client.erl"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b2352b70869bd0e14513dfc88f9746f23bffd080ce0eaf5e6cf2af28dcd856"}},{"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/ocs_rest_res_client.erl"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa8c6095e044a1c897bb3be777e563f1657e7e47f5f1acc63e62fd3c9a734da"}},{"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/ocs_rest_res_client.erl"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"3857b187bebb5d0d0f0b724faef159c58355d82bb079cc9d99ccd39ceecf3a7a"}},{"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/ocs_rest_res_client.erl"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf51668995d7a4ddafe62ce084018d0ec78b59f443edf6fe5e08a7bebb384960"}},{"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/ocs_rest_res_client.erl"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"afde85637e6d1bb2818a47ef067dd7f0a4e006054a32da5f6af831c5611f11a3"}},{"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/ocs_rest_res_client.erl"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cec721be6a1364a58cc604f3000f0e40095b8f35271b8970718f524e6bca2a5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_rest_res_client.erl"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"280cbfd957029011f09adf306076e8024b28e56b3166b79980c164cab64b1877"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_rest_res_client.erl"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"860800791171f7ad2acbac2d498f11edc3b644e2e335557efd29d3699fc9581b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason2\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/ocs_rest_res_health.erl"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb04bc58eaa76fab23af8396c42be2c7edfb6f26fae3b38618ac13c964d3611"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_rest_res_health.erl"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5ad81f6a12395b054a1ed35e9e7a8ec139b071fecba586505522b49e7b1952"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_rest_res_health.erl"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f84877de50c5797e8a877358b3afc004ac62dc1ca5c32db56779437c015bad"}},{"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/ocs_rest_res_hub_balance.erl"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc44b56c1f95734c8f9619d7d7686064e4ab653d7cb21ea9b0a393800128186"}},{"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/ocs_rest_res_hub_balance.erl"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4ca60b14c341db13a5cd1f18533b97afe42460df27335652de2c538aac15e2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_rest_res_hub_product.erl"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ef845020a7376cfec9207633cef540e405cb2c8154233d870a5e499e289073"}},{"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/ocs_rest_res_hub_product.erl"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ec4d5f88cd9784d1941670162b7d0f48271f196cc4d15a9178ae74d87e5c3f"}},{"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/ocs_rest_res_hub_product.erl"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb8d7d952c491e6eb64aeceba6550216ecc295241491103c3ad855b1acf8085"}},{"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/ocs_rest_res_hub_resource.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf711937290702929428c93eb1e156bdcb50866622e7d40a29a543aedea4d0c"}},{"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/ocs_rest_res_hub_resource.erl"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"625e7fbfc4903b0aeee25f6529a97b61a4d0991891f853cde011611f812c2e94"}},{"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/ocs_rest_res_hub_role.erl"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd821ae70b27aa9289db9a4adda7e401de9da40baf8a55515ee2b388c8848c29"}},{"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/ocs_rest_res_hub_role.erl"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"376a6e854d244a53adb1748014fc85c57011d0dc37e0fc79414fd4824c2dd27f"}},{"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/ocs_rest_res_hub_service.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3ca8b179f7df8e945c316d52ffba9a24851dbeb160314670ece50704f1bf45"}},{"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/ocs_rest_res_hub_service.erl"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"548a2e6249b0993c6b97b1dddf8a694638538456ffd99024c83a8ed01938b790"}},{"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/ocs_rest_res_hub_usage.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77cd58129084362cad913a155450ad8a77e38fa4098135dabc69b77b1af2ae8"}},{"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/ocs_rest_res_hub_usage.erl"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbf9cac0ed67b3e98ccc825af73aaaf82654c9676b9a90908a10291cdeea4e1"}},{"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/ocs_rest_res_hub_user.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"755ed5891cd3ff0947988b4a052f5df9711ff5f3a624a579a665d97a9c7973a2"}},{"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/ocs_rest_res_hub_user.erl"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53ab670abd2c7600082444676047fda4b9375a21e1a055595f1b370dd5951a4"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27cff9cfadcffbbcfdec8dba067e1914a153fb217f60c55e4073711b56941dd"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c972506b56e6beed00795f7504a08bb0ca502a384a1e749357e00873d80bad19"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a45286f89eff62d227c2b113a366b37fe7dbe446b0c175b811e33820ef09e5c"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b2d43c41242a428b893b181dd8fa606d81d55279e57120acf0730d2ad16919"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8cf9b5c8b8444ea5f40b0df41237608ef801b2a9b851fcc4b15a27f969ae51"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cebb433f692cd96dff61138317efe794119e640d3cec9bd7c6163ff2a75884"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fbae4333ca8c4a05681cccb7c31958e876715b725fea3a4dfb0ccb1402f8ea"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afd33625fec1b3394951f9a31e1eb02a576780ea0810503fa883808fba11a46"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96ee25f32a8a9bb5466a6d648ffa2d75dbc267150092ac7465bc104d263ac86"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c02205f17f492241d8cd74c19e03b847023b9598475c9d935a164dc0dabf39"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaa30c844356bd15c1d65afd5ce82f99d93017c2d46372f695ddd7da41bb755"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e818ecc316c0ba7cde8f6e84b7c7f36a45a48eda21c8553a156553e78e8f5c"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a53e431e55b1ad1a74d7d2928244b39a58d6ad5afc54864fe71251143bc7ed"}},{"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/ocs_rest_res_product.erl"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb0d6866c01fb4883bf839ebd66bfbf429c2aa6c6dc991b6758b67a9e5cd37f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_rest_res_product.erl"},"region":{"startLine":2528}}}],"partialFingerprints":{"codehealthFindingId/v1":"f007fb68e99e174ff7282d977ec7039d544c2387f73f4dbf14668c1e7af6df9c"}},{"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/ocs_rest_res_resource.erl"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f52ebace0a0c25d4804d9b6c3b388b704bb54f71c06734501d9e717aa1fec6"}},{"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/ocs_rest_res_resource.erl"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"be51c44fb1acbb2a7384c60b86a853eea150853fb84c61a4f8c9859e2e07d8ee"}},{"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/ocs_rest_res_resource.erl"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"110e00cbae2e03e2b009292f9aec923c7a04d919d71dfef9aca9554c35602fbf"}},{"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/ocs_rest_res_resource.erl"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"47117e435e55b21f773a802efff1f199039b88b68ad3673a692a1edfa12a7021"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_rest_res_resource.erl"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c971bcd2b15ba33f61923e2fb519458492067e822ecb8d6cb0c8627e5a5b574"}},{"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/ocs_rest_res_resource.erl"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e078b43d0dae1dcc368484344db1d9a1b621b5e3b7511ab827bc0a81cf1a3f"}},{"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/ocs_rest_res_resource.erl"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d31cc0253ed3091e6585225abb964f45a79bf9c451cef806605363e83df9ac5"}},{"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/ocs_rest_res_role.erl"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"34093079ded8fc524407b1451703f45f076b8087f82df8538910067da48f92ef"}},{"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/ocs_rest_res_role.erl"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bafdb2c2ea595cd82ff4943164aa9479d3b27d49d247b9c707a732fb4ad1e4"}},{"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/ocs_rest_res_role.erl"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"de517bbba2e65366616e5b39134ec17e9f4eacf9411f874a051e1ae4f061406b"}},{"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/ocs_rest_res_role.erl"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2674cc72ad6935fc370ba2bd0ce16933b717a9ea6c32db9a1dd5d0f0407b25e"}},{"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/ocs_rest_res_service.erl"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4efbd306aae8c545a4a26fbd3ad8b25d30b93f5377255c26496de56d7340a8b"}},{"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/ocs_rest_res_service.erl"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"de17c238408468d77b618d53ce072fcebb45467747234d0b361dd0e3eb91f026"}},{"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/ocs_rest_res_service.erl"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d936d0851d53f4773320c7fa2d389faece28f67a83f300bef48dc0a6eaef6de6"}},{"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/ocs_rest_res_service.erl"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dee88b58938b718af7103b74813c6f5a49b44d62f1e2b4814a5d9b335fdb0e"}},{"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/ocs_rest_res_service.erl"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bf014932c0d1efab50344ed799807c4e198504e86ba18083126f5b6c53ea25"}},{"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/ocs_rest_res_service.erl"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdbb63a3868f7a3f278da538bfda32ebe9524e548845196f4eb6dc5484154b0"}},{"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/ocs_rest_res_service.erl"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbdfb670518981ea53070d7888659b0613163da104fcf5245a7fde90464311a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason1\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/ocs_rest_res_usage.erl"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"836f6c1a19ac04797c74752eb65ebe9a5144da3361333e41f8ebcd7329e05f17"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason1\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/ocs_rest_res_usage.erl"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d92ca9a3ece88c2c2b93176b47beace54f6ced567977bd9c8ed8834442d563"}},{"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/ocs_rest_res_usage.erl"},"region":{"startLine":3108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6000777ba0c0a69f3498ec16e9061169a111fd29aec5766be9a54178825020f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason1\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/ocs_rest_res_usage.erl"},"region":{"startLine":3136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d53ebdb602da13b81d9eefe9c5bc5187315698ee7ce0c0eb8865905c0df4720"}},{"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/ocs_rest_res_usage.erl"},"region":{"startLine":3175}}}],"partialFingerprints":{"codehealthFindingId/v1":"811d4bb915571630b29713c41e22abb269d310a22ade2fc6087c6cb9834e5313"}},{"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/ocs_rest_res_usage.erl"},"region":{"startLine":3258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d5cf221ab9f2fb37f2ddd3d2e43e6c766af986aa4d426b4b3b3fca819efe14"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Reason\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/ocs_rest_res_usage.erl"},"region":{"startLine":3299}}}],"partialFingerprints":{"codehealthFindingId/v1":"567ee5d6dd3d35620c79ef38aeda75e221ecd0ce5979add17552c93015c26cd0"}},{"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/ocs_rest_res_usage.erl"},"region":{"startLine":3341}}}],"partialFingerprints":{"codehealthFindingId/v1":"51856d5fedb63107561aa6309c770b08b27d09f46d4cd9e824d436024d916a39"}},{"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/ocs_rest_res_usage.erl"},"region":{"startLine":3374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1631a84193c62971d6036db2fb5f163874796eff9a8086dcd56880ce8a439d2"}},{"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/ocs_rest_res_usage.erl"},"region":{"startLine":3407}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fd5598198076fb3f213738b9249ee1a67659a24090a30e74b68446fc6de4c0"}},{"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/ocs_rest_res_usage.erl"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2df0ecd8999c489537b550359aa67b010f2bb12c1c6b753efe0285957b853b6"}},{"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/ocs_rest_res_usage.erl"},"region":{"startLine":3473}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6c1e31ab8706cd56a3430d923b60ce5a4960c46ebc27bf65811cfb83506226"}},{"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/ocs_rest_res_user.erl"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52dd17747ad4fe461dc5faf99d7bd64906f404c255ed574a4ea58a1861e6eb1"}},{"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/ocs_rest_res_user.erl"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15147ad6e71c189319c3d2504f8f917fc556cf73968574a5482a621170899ab"}},{"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/ocs_rest_res_user.erl"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0f4145d73cc5674e8b6838a0b7a1ac1d741d906ab20ab9d2ed1f92e17e50a6"}},{"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/ocs_rest_res_user.erl"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"17da74626015ccb0d0ffc1620805775ff3330411dd6bbbe72d91e6b97961c68f"}},{"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/ocs_rest_res_user.erl"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc70e154c033e07ba17d15a7e841c5d7bf56aa95d5617bc6f781861f270c87c"}},{"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/ocs_rest_res_user.erl"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95642f8105aff527790c49b9cf0deaa87b1925f0608579e74dd2ded8b57d070"}},{"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/ocs_rest_res_user.erl"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"6877664e5a940869c895874cb216a2ffc1f1753fc15d3b4a98628eff8f56abff"}}],"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-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-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.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":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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/"}]}],"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":21,"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."]}]}