Duplication Overall
- 10% duplication:
- 62,024 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
- 6,529 duplicated lines
- 660 duplicates
Duplication per Extension
Duplication per Component (primary)
Duplication Between Components (50+ lines)
flowchart TB
n0["mantis-examples"]
n1["mantis-source-jobs"]
n2["mantis-network"]
n3["mantis-remote-observable"]
n4["mantis-common"]
n5["mantis-control-plane"]
n6["mantis-publish"]
n7["mantis-connectors"]
n8["mantis-runtime"]
n9["mantis-client"]
n10["mantis-server"]
n11["mantis-runtime-autoscaler-api"]
n12["mantis-rxcontrol"]
n13["mantis-runtime-executor"]
n0 ---|"489"| n1
n2 ---|"333"| n3
n4 ---|"266"| n5
n5 ---|"255"| n6
n4 ---|"214"| n6
n7 ---|"146"| n8
n9 ---|"126"| n10
n4 ---|"106"| n2
n11 ---|"94"| n12
n4 ---|"93"| n3
n13 ---|"80"| n10
n4 ---|"50"| n8
classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
linkStyle 0 stroke:#DC143CFF,stroke-width:10px
linkStyle 1 stroke:#DC143CB7,stroke-width:6px
linkStyle 2 stroke:#DC143CA5,stroke-width:5px
linkStyle 3 stroke:#DC143CA5,stroke-width:5px
linkStyle 4 stroke:#DC143C93,stroke-width:4px
linkStyle 5 stroke:#DC143C70,stroke-width:2px
linkStyle 6 stroke:#DC143C70,stroke-width:2px
linkStyle 7 stroke:#DC143C70,stroke-width:2px
linkStyle 8 stroke:#DC143C5E,stroke-width:1px
linkStyle 9 stroke:#DC143C5E,stroke-width:1px
linkStyle 10 stroke:#DC143C5E,stroke-width:1px
linkStyle 11 stroke:#DC143C5E,stroke-width:1px
Download:
Mermaid (.mmd)
(open online Mermaid editor)
2D force graph
|
3D force graph
Show more details on duplication between components...
From Component
--> To Component
Duplicated
Lines
File Pairs
Details
mantis-examples (48%)
  --> mantis-source-jobs (36%)
489
12 file pairs
details...
mantis-network (8%)
  --> mantis-remote-observable (5%)
333
4 file pairs
details...
mantis-common (2%)
  --> mantis-control-plane (<1%)
266
35 file pairs
details...
mantis-control-plane (<1%)
  --> mantis-publish (4%)
255
10 file pairs
details...
mantis-common (2%)
  --> mantis-publish (4%)
214
21 file pairs
details...
mantis-connectors (2%)
  --> mantis-runtime (1%)
146
2 file pairs
details...
mantis-client (8%)
  --> mantis-server (3%)
126
3 file pairs
details...
mantis-common (1%)
  --> mantis-network (2%)
106
11 file pairs
details...
mantis-runtime-autoscaler-api (2%)
  --> mantis-rxcontrol (6%)
94
3 file pairs
details...
mantis-common (<1%)
  --> mantis-remote-observable (1%)
93
1 file pair
details...
mantis-runtime-executor (2%)
  --> mantis-server (2%)
80
3 file pairs
details...
mantis-common (<1%)
  --> mantis-runtime (<1%)
50
4 file pairs
details...
flowchart TB
n0["mantis-examples"]
n1["mantis-source-jobs"]
n2["mantis-network"]
n3["mantis-remote-observable"]
n4["mantis-common"]
n5["mantis-control-plane"]
n6["mantis-publish"]
n7["mantis-connectors"]
n8["mantis-runtime"]
n9["mantis-client"]
n10["mantis-server"]
n11["mantis-runtime-autoscaler-api"]
n12["mantis-rxcontrol"]
n13["mantis-runtime-executor"]
n0 ---|"489"| n1
n2 ---|"333"| n3
n4 ---|"266"| n5
n5 ---|"255"| n6
n4 ---|"214"| n6
n7 ---|"146"| n8
n9 ---|"126"| n10
n4 ---|"106"| n2
n11 ---|"94"| n12
n4 ---|"93"| n3
n13 ---|"80"| n10
n4 ---|"50"| n8
classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
linkStyle 0 stroke:#DC143CFF,stroke-width:10px
linkStyle 1 stroke:#DC143CB7,stroke-width:6px
linkStyle 2 stroke:#DC143CA5,stroke-width:5px
linkStyle 3 stroke:#DC143CA5,stroke-width:5px
linkStyle 4 stroke:#DC143C93,stroke-width:4px
linkStyle 5 stroke:#DC143C70,stroke-width:2px
linkStyle 6 stroke:#DC143C70,stroke-width:2px
linkStyle 7 stroke:#DC143C70,stroke-width:2px
linkStyle 8 stroke:#DC143C5E,stroke-width:1px
linkStyle 9 stroke:#DC143C5E,stroke-width:1px
linkStyle 10 stroke:#DC143C5E,stroke-width:1px
linkStyle 11 stroke:#DC143C5E,stroke-width:1px
Show more details on duplication between components...
| From Component --> To Component |
Duplicated Lines |
File Pairs | Details |
|---|---|---|---|
| mantis-examples (48%)   --> mantis-source-jobs (36%) |
489 | 12 file pairs | details... |
| mantis-network (8%)   --> mantis-remote-observable (5%) |
333 | 4 file pairs | details... |
| mantis-common (2%)   --> mantis-control-plane (<1%) |
266 | 35 file pairs | details... |
| mantis-control-plane (<1%)   --> mantis-publish (4%) |
255 | 10 file pairs | details... |
| mantis-common (2%)   --> mantis-publish (4%) |
214 | 21 file pairs | details... |
| mantis-connectors (2%)   --> mantis-runtime (1%) |
146 | 2 file pairs | details... |
| mantis-client (8%)   --> mantis-server (3%) |
126 | 3 file pairs | details... |
| mantis-common (1%)   --> mantis-network (2%) |
106 | 11 file pairs | details... |
| mantis-runtime-autoscaler-api (2%)   --> mantis-rxcontrol (6%) |
94 | 3 file pairs | details... |
| mantis-common (<1%)   --> mantis-remote-observable (1%) |
93 | 1 file pair | details... |
| mantis-runtime-executor (2%)   --> mantis-server (2%) |
80 | 3 file pairs | details... |
| mantis-common (<1%)   --> mantis-runtime (<1%) |
50 | 4 file pairs | details... |
Longest Duplicates
The list of 50 longest duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 89 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/coremantis-source-jobs/manti...rx/sourcejob/kafka/sink | 44:269 (100%)44:269 (100%) | view | |
| 68 | x 2 | mantis-control-plane/man...srx/extensions/dynamodbmantis-control-plane/man...srx/server/master/store | 245:331 (35%)195:281 (42%) | view | |
| 63 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-remote-observable...antis/remote/observable | 50:129 (42%)44:124 (39%) | view | |
| 47 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-remote-observable...antis/remote/observable | 24:103 (100%)24:103 (100%) | view | |
| 43 | x 2 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 229:281 (9%)375:427 (9%) | view | |
| 42 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/server/master/store | 37:91 (93%)101:155 (56%) | view | |
| 39 | x 2 | mantis-control-plane/man...io/mantisrx/server/coremantis-publish/mantis-pu...nternal/discovery/proto | 28:84 (97%)28:84 (53%) | view | |
| 38 | x 2 | mantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtime | 62:135 (71%)63:137 (71%) | view | |
| 37 | x 2 | mantis-common/src/main/j...o/mantisrx/common/codecmantis-remote-observable...o/reactivex/netty/codec | 60:118 (50%)41:99 (78%) | view | |
| 32 | x 2 | mantis-control-plane/man...r/jobcluster/job/workermantis-control-plane/man...r/jobcluster/job/worker | 51:102 (74%)51:103 (76%) | view | |
| 28 | x 2 | mantis-common/src/main/java/io/mantisrx/runtimemantis-publish/mantis-pu...nternal/discovery/proto | 72:108 (41%)60:96 (44%) | view | |
| 28 | x 2 | mantis-control-plane/man...io/mantisrx/server/coremantis-publish/mantis-pu...nternal/discovery/proto | 26:69 (96%)28:71 (100%) | view | |
| 26 | x 2 | mantis-control-plane/man...a/io/mantisrx/master/zkmantis-control-plane/man...a/io/mantisrx/master/zk | 101:136 (27%)103:138 (34%) | view | |
| 25 | x 2 | mantis-common/src/main/java/io/mantisrx/runtimemantis-publish/mantis-pu...nternal/discovery/proto | 22:49 (37%)26:53 (39%) | view | |
| 25 | x 2 | mantis-common/src/main/j...rx/common/metrics/nettymantis-common/src/main/j...rx/common/metrics/netty | 139:179 (16%)136:176 (22%) | view | |
| 24 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/server/master/store | 200:223 (10%)229:252 (10%) | view | |
| 24 | x 2 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 231:259 (5%)501:530 (5%) | view | |
| 24 | x 2 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 377:405 (5%)501:530 (5%) | view | |
| 24 | x 2 | mantis-control-plane/man...a/io/mantisrx/master/zkmantis-control-plane/man...a/io/mantisrx/master/zk | 64:97 (25%)59:92 (32%) | view | |
| 24 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/coremantis-source-jobs/manti...rx/sourcejob/kafka/sink | 24:63 (100%)24:63 (100%) | view | |
| 22 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 66:90 (9%)122:146 (9%) | view | |
| 22 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 209:238 (9%)274:303 (9%) | view | |
| 22 | x 2 | mantis-connectors/mantis...rx/connector/job/sourcemantis-runtime/src/main/...tisrx/runtime/parameter | 278:314 (10%)157:193 (14%) | view | |
| 21 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/server/master/store | 58:90 (28%)31:63 (84%) | view | |
| 20 | x 2 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 285:307 (2%)516:536 (2%) | view | |
| 20 | x 2 | mantis-control-plane/man...er/api/akka/route/protomantis-control-plane/man...er/api/akka/route/proto | 62:83 (9%)185:205 (9%) | view | |
| 20 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/sinkmantis-source-jobs/manti...rx/sourcejob/kafka/sink | 40:68 (52%)34:62 (54%) | view | |
| 20 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/sinkmantis-source-jobs/manti...rx/sourcejob/kafka/sink | 45:72 (52%)40:67 (52%) | view | |
| 19 | x 2 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 156:174 (2%)196:214 (2%) | view | |
| 19 | x 2 | mantis-control-plane/man...io/mantisrx/server/coremantis-publish/mantis-pu...nternal/discovery/proto | 29:56 (90%)30:57 (95%) | view | |
| 18 | x 2 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 176:193 (2%)280:297 (2%) | view | |
| 18 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-remote-observable...antis/remote/observable | 214:238 (12%)201:225 (11%) | view | |
| 18 | x 2 | mantis-control-plane/man...aster/api/akka/route/v0mantis-control-plane/man...aster/api/akka/route/v1 | 76:102 (19%)87:113 (15%) | view | |
| 17 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/coremantis-source-jobs/manti...rx/sourcejob/kafka/core | 29:57 (65%)28:57 (100%) | view | |
| 17 | x 2 | mantis-runtime-autoscale...orker/jobmaster/controlmantis-rxcontrol/src/main/java/io/mantisrx/control | 37:62 (85%)44:69 (85%) | view | |
| 17 | x 2 | mantis-common/src/main/j...mantisrx/common/metricsmantis-common/src/main/j...ommon/metrics/spectator | 48:74 (48%)88:113 (28%) | view | |
| 16 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 77:96 (7%)209:228 (7%) | view | |
| 16 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 77:96 (7%)274:293 (7%) | view | |
| 16 | x 2 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 261:281 (3%)532:552 (3%) | view | |
| 16 | x 2 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 407:427 (3%)532:552 (3%) | view | |
| 16 | x 2 | mantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtime | 80:111 (25%)74:105 (28%) | view | |
| 16 | x 2 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 91:112 (3%)147:168 (13%) | view | |
| 15 | x 2 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 140:154 (2%)181:195 (2%) | view | |
| 15 | x 2 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 214:228 (1%)262:276 (1%) | view | |
| 15 | x 2 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 232:246 (1%)321:335 (1%) | view | |
| 15 | x 2 | mantis-runtime/src/main/...untime/source/http/implmantis-runtime/src/main/...untime/source/http/impl | 74:94 (20%)118:138 (20%) | view | |
| 15 | x 2 | mantis-runtime-executor/.../mantisrx/server/workermantis-server/mantis-ser...o/mantisrx/server/agent | 189:219 (10%)119:152 (17%) | view | |
| 15 | x 2 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 61:83 (23%)76:98 (17%) | view | |
| 15 | x 2 | mantis-control-plane/man...r/jobcluster/job/workermantis-control-plane/man...srx/server/master/store | 257:271 (5%)201:215 (6%) | view | |
| 15 | x 2 | mantis-control-plane/man...r/jobcluster/job/workermantis-control-plane/man...srx/server/master/store | 257:271 (5%)230:244 (6%) | view |
Most Frequent Duplicates
The list of 50 most frequently found duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 6 | x 16 | mantis-common/src/main/java/io/mantisrx/commonmantis-control-plane/man...rx/server/master/domainmantis-common/src/main/j...mantisrx/common/networkmantis-control-plane/man...rx/server/master/domainmantis-common/src/main/j...tisrx/runtime/parametermantis-common/src/main/j...tisrx/runtime/parametermantis-network/src/main/...vex/mantis/network/pushmantis-publish/mantis-pu...nternal/discovery/protomantis-common/src/main/j...mantisrx/common/networkmantis-common/src/main/java/io/mantisrx/common... | 40:45 (19%)84:89 (9%)193:198 (4%)158:163 (4%)72:77 (12%)52:57 (10%)115:120 (8%)97:102 (8%)88:93 (10%)53:58 (14%)... | view | |
| 6 | x 16 | mantis-common/src/main/java/io/mantisrx/commonmantis-control-plane/man...rx/server/master/domainmantis-common/src/main/j...mantisrx/common/networkmantis-control-plane/man...rx/server/master/domainmantis-common/src/main/j...tisrx/runtime/parametermantis-common/src/main/j...tisrx/runtime/parametermantis-network/src/main/...vex/mantis/network/pushmantis-publish/mantis-pu...nternal/discovery/protomantis-common/src/main/j...mantisrx/common/networkmantis-common/src/main/java/io/mantisrx/common... | 42:47 (19%)86:91 (9%)195:200 (4%)160:165 (4%)74:79 (12%)54:59 (10%)117:122 (8%)99:104 (8%)90:95 (10%)55:60 (14%)... | view | |
| 6 | x 16 | mantis-common/src/main/java/io/mantisrx/commonmantis-control-plane/man...rx/server/master/domainmantis-common/src/main/j...mantisrx/common/networkmantis-control-plane/man...rx/server/master/domainmantis-common/src/main/j...tisrx/runtime/parametermantis-common/src/main/j...tisrx/runtime/parametermantis-network/src/main/...vex/mantis/network/pushmantis-publish/mantis-pu...nternal/discovery/protomantis-common/src/main/j...mantisrx/common/networkmantis-common/src/main/java/io/mantisrx/common... | 41:46 (19%)85:90 (9%)194:199 (4%)159:164 (4%)73:78 (12%)53:58 (10%)116:121 (8%)98:103 (8%)89:94 (10%)54:59 (14%)... | view | |
| 6 | x 15 | mantis-common/src/main/java/io/mantisrx/commonmantis-control-plane/man...rx/server/master/domainmantis-common/src/main/j...mantisrx/common/networkmantis-control-plane/man...rx/server/master/domainmantis-common/src/main/j...tisrx/runtime/parametermantis-common/src/main/j...tisrx/runtime/parametermantis-common/src/main/j...mantisrx/common/networkmantis-common/src/main/java/io/mantisrx/commonmantis-control-plane/man...r/jobcluster/job/workermantis-publish/mantis-pu...rx/publish/internal/mql... | 37:44 (19%)81:88 (9%)190:197 (4%)155:162 (4%)69:76 (12%)48:56 (10%)85:92 (10%)50:57 (14%)86:93 (10%)127:134 (6%)... | view | |
| 6 | x 8 | .baseline/idea.baseline/idea.baseline/idea.baseline/idea.baseline/idea.baseline/idea.baseline/idea.baseline/idea | 142:147 (1%)154:159 (1%)166:171 (1%)178:183 (1%)244:249 (1%)255:260 (1%)266:271 (1%)277:282 (1%) | view | |
| 6 | x 8 | mantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/proto | 326:333 (<1%)434:441 (<1%)497:504 (<1%)619:626 (<1%)681:688 (<1%)746:753 (<1%)809:816 (<1%)2244:2251 (<1%) | view | |
| 6 | x 8 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/protomantis-control-plane/man...master/jobcluster/proto | 79:85 (5%)987:993 (<1%)1073:1079 (<1%)1238:1244 (<1%)1318:1324 (<1%)1464:1470 (<1%)1878:1884 (<1%)1937:1943 (<1%) | view | |
| 6 | x 8 | .baseline/idea.baseline/idea.baseline/idea.baseline/idea.baseline/idea.baseline/idea.baseline/idea.baseline/idea | 149:158 (1%)161:170 (1%)173:182 (1%)185:194 (1%)196:205 (1%)207:216 (1%)218:227 (1%)239:248 (1%) | view | |
| 6 | x 6 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1 | 526:532 (1%)584:590 (1%)624:630 (1%)662:668 (1%)700:706 (1%)738:744 (1%) | view | |
| 6 | x 6 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1 | 525:531 (1%)583:589 (1%)623:629 (1%)661:667 (1%)699:705 (1%)737:743 (1%) | view | |
| 6 | x 6 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1 | 523:528 (1%)581:586 (1%)621:626 (1%)659:664 (1%)697:702 (1%)735:740 (1%) | view | |
| 6 | x 6 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1 | 524:529 (1%)582:587 (1%)622:627 (1%)660:665 (1%)698:703 (1%)736:741 (1%) | view | |
| 6 | x 5 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 214:219 (<1%)290:295 (<1%)521:526 (<1%)262:267 (<1%)305:310 (<1%) | view | |
| 6 | x 5 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 219:224 (<1%)295:300 (<1%)526:531 (<1%)267:272 (<1%)310:315 (<1%) | view | |
| 6 | x 5 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 216:221 (<1%)292:297 (<1%)523:528 (<1%)264:269 (<1%)307:312 (<1%) | view | |
| 6 | x 5 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 220:225 (<1%)296:301 (<1%)527:532 (<1%)268:273 (<1%)311:316 (<1%) | view | |
| 6 | x 5 | mantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-common/src/main/j...activx/mantis/operatorsmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markers | 33:40 (42%)33:40 (42%)62:70 (21%)33:40 (42%)33:40 (42%) | view | |
| 6 | x 5 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 217:222 (<1%)293:298 (<1%)524:529 (<1%)265:270 (<1%)308:313 (<1%) | view | |
| 6 | x 5 | mantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-common/src/main/j...activx/mantis/operatorsmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markers | 30:39 (42%)30:39 (42%)59:68 (21%)30:39 (42%)30:39 (42%) | view | |
| 6 | x 5 | mantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-common/src/main/j...activx/mantis/operatorsmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markers | 27:34 (42%)27:34 (42%)55:63 (21%)27:34 (42%)27:34 (42%) | view | |
| 6 | x 5 | mantis-examples/mantis-e...ourcejob/synthetic/sinkmantis-source-jobs/manti...rx/sourcejob/kafka/sinkmantis-connectors/mantis...tor/publish/source/httpmantis-runtime/src/main/...o/mantisrx/runtime/sinkmantis-runtime/src/main/...o/mantisrx/runtime/sink | 85:90 (15%)79:84 (16%)66:71 (22%)56:61 (6%)91:96 (6%) | view | |
| 6 | x 5 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 215:220 (<1%)291:296 (<1%)522:527 (<1%)263:268 (<1%)306:311 (<1%) | view | |
| 6 | x 5 | mantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-common/src/main/j...activx/mantis/operatorsmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markers | 28:35 (42%)28:35 (42%)56:64 (21%)28:35 (42%)28:35 (42%) | view | |
| 6 | x 5 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 218:223 (<1%)294:299 (<1%)525:530 (<1%)266:271 (<1%)309:314 (<1%) | view | |
| 6 | x 5 | mantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-common/src/main/j...activx/mantis/operatorsmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markers | 29:38 (42%)29:38 (42%)57:67 (21%)29:38 (42%)29:38 (42%) | view | |
| 6 | x 4 | mantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtime | 118:129 (11%)120:131 (11%)100:111 (12%)130:141 (10%) | view | |
| 6 | x 4 | mantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtime | 121:130 (11%)123:132 (11%)103:112 (12%)133:142 (10%) | view | |
| 6 | x 4 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 244:251 (1%)98:106 (5%)390:397 (1%)514:522 (1%) | view | |
| 6 | x 4 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 188:193 (<1%)241:246 (<1%)292:297 (<1%)330:335 (<1%) | view | |
| 6 | x 4 | mantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtimemantis-runtime/src/main/java/io/mantisrx/runtime | 117:126 (11%)119:128 (11%)99:108 (12%)129:138 (10%) | view | |
| 6 | x 4 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 238:245 (1%)92:99 (5%)384:391 (1%)508:515 (1%) | view | |
| 6 | x 4 | mantis-remote-observable...antis/remote/observablemantis-runtime/src/main/...untime/source/http/implmantis-remote-observable...antis/remote/observablemantis-runtime/src/main/...untime/source/http/impl | 97:106 (9%)84:93 (8%)104:113 (8%)128:137 (8%) | view | |
| 6 | x 4 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 184:189 (<1%)237:242 (<1%)288:293 (<1%)326:331 (<1%) | view | |
| 6 | x 4 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 77:83 (2%)133:139 (2%)209:215 (2%)274:280 (2%) | view | |
| 6 | x 4 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 181:186 (<1%)234:239 (<1%)285:290 (<1%)323:328 (<1%) | view | |
| 6 | x 4 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 69:74 (2%)125:130 (2%)178:183 (2%)261:266 (2%) | view | |
| 6 | x 4 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 52:59 (2%)111:118 (2%)162:169 (2%)245:252 (2%) | view | |
| 6 | x 4 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 78:84 (2%)134:140 (2%)210:216 (2%)275:281 (2%) | view | |
| 6 | x 4 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 51:57 (2%)110:116 (2%)161:167 (2%)244:250 (2%) | view | |
| 6 | x 4 | mantis-connectors/mantis...rx/connector/job/sourcemantis-runtime/src/main/...tisrx/runtime/parametermantis-connectors/mantis...rx/connector/job/sourcemantis-runtime/src/main/...tisrx/runtime/parameter | 159:164 (2%)74:79 (3%)169:174 (2%)85:90 (3%) | view | |
| 6 | x 4 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 237:244 (1%)91:98 (5%)383:390 (1%)507:514 (1%) | view | |
| 6 | x 4 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 67:72 (2%)123:128 (2%)176:181 (2%)259:264 (2%) | view | |
| 6 | x 4 | mantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observablemantis-remote-observable...antis/remote/observable | 235:241 (1%)89:95 (5%)381:387 (1%)505:511 (1%) | view | |
| 6 | x 4 | mantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourceclustermantis-control-plane/man.../master/resourcecluster | 182:187 (<1%)235:240 (<1%)286:291 (<1%)324:329 (<1%) | view | |
| 6 | x 4 | mantis-examples/mantis-e...ourcejob/synthetic/sinkmantis-source-jobs/manti...rx/sourcejob/kafka/sinkmantis-examples/mantis-e...ourcejob/synthetic/sinkmantis-source-jobs/manti...rx/sourcejob/kafka/sink | 45:51 (27%)43:49 (26%)50:56 (26%)42:48 (27%) | view | |
| 6 | x 4 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1 | 435:440 (1%)455:460 (1%)474:479 (1%)496:501 (1%) | view | |
| 6 | x 4 | mantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markers | 34:42 (42%)34:42 (42%)34:42 (42%)34:42 (42%) | view | |
| 6 | x 4 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 79:85 (2%)135:141 (2%)211:217 (2%)276:282 (2%) | view | |
| 6 | x 4 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v1 | 433:438 (1%)453:458 (1%)472:477 (1%)494:499 (1%) | view | |
| 6 | x 4 | mantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/pushmantis-network/src/main/...vex/mantis/network/push | 80:86 (2%)136:142 (2%)212:218 (2%)277:283 (2%) | view |
Duplicated Units
The list of top 38 duplicated units.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 21 | x 2 | mantis-runtime-autoscale...orker/jobmaster/controlmantis-rxcontrol/src/main/java/io/mantisrx/control | 38:63 45:70 | view | |
| 20 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-remote-observable...antis/remote/observable | 51:73 45:67 | view | |
| 16 | x 2 | mantis-control-plane/man...a/io/mantisrx/master/zkmantis-control-plane/man...a/io/mantisrx/master/zk | 68:88 63:83 | view | |
| 16 | x 2 | mantis-control-plane/man...r/jobcluster/job/workermantis-control-plane/man...r/jobcluster/job/worker | 57:81 57:82 | view | |
| 15 | x 2 | mantis-control-plane/man...a/io/mantisrx/master/zkmantis-control-plane/man...a/io/mantisrx/master/zk | 120:139 122:141 | view | |
| 14 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/sinkmantis-source-jobs/manti...rx/sourcejob/kafka/sink | 58:73 52:67 | view | |
| 14 | x 2 | mantis-common/src/main/java/io/mantisrx/runtimemantis-publish/mantis-pu...nternal/discovery/proto | 35:50 39:54 | view | |
| 14 | x 2 | mantis-common/src/main/j...o/mantisrx/common/codecmantis-remote-observable...o/reactivex/netty/codec | 79:97 60:78 | view | |
| 14 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/extensions/dynamodb | 264:282 314:332 | view | |
| 14 | x 4 | mantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markersmantis-runtime/src/main/...antisrx/runtime/markers | 26:43 26:43 26:43 26:43 | view | |
| 14 | x 2 | mantis-network/src/main/...vex/mantis/network/pushmantis-remote-observable...antis/remote/observable | 223:240 210:227 | view | |
| 13 | x 2 | mantis-control-plane/man...a/io/mantisrx/master/zkmantis-control-plane/man...a/io/mantisrx/master/zk | 101:118 103:120 | view | |
| 12 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/extensions/dynamodb | 218:232 268:282 | view | |
| 11 | x 2 | mantis-common/src/main/j...o/mantisrx/common/codecmantis-remote-observable...o/reactivex/netty/codec | 63:77 44:58 | view | |
| 10 | x 3 | mantis-examples/mantis-e...ourcejob/synthetic/coremantis-examples/mantis-e...urcejob/synthetic/stagemantis-source-jobs/manti...antisrx/sourcejob/kafka | 61:74 136:149 133:146 | view | |
| 10 | x 2 | mantis-common/src/main/j...o/mantisrx/common/codecmantis-remote-observable...o/reactivex/netty/codec | 33:46 29:42 | view | |
| 10 | x 2 | mantis-common/src/main/j...o/mantisrx/common/codecmantis-remote-observable...o/reactivex/netty/codec | 107:119 88:100 | view | |
| 10 | x 2 | mantis-control-plane/man...io/mantisrx/server/coremantis-publish/mantis-pu...nternal/discovery/proto | 40:51 40:51 | view | |
| 9 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/coremantis-source-jobs/manti...rx/sourcejob/kafka/sink | 87:98 87:98 | view | |
| 9 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/coremantis-source-jobs/manti...rx/sourcejob/kafka/sink | 100:111 100:111 | view | |
| 9 | x 3 | mantis-control-plane/man...tisrx/server/core/utilsmantis-server/mantis-ser...o/mantisrx/server/agentmantis-runtime-executor/.../mantisrx/server/worker | 150:162 141:153 208:220 | view | |
| 8 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/sinkmantis-source-jobs/manti...rx/sourcejob/kafka/sink | 78:88 73:83 | view | |
| 8 | x 3 | mantis-common/src/main/java/io/mantisrx/runtimemantis-control-plane/man...r/jobcluster/job/workermantis-publish/mantis-pu...nternal/discovery/proto | 91:100 125:134 79:88 | view | |
| 8 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/server/master/store | 49:58 113:122 | view | |
| 8 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/server/master/store | 61:70 125:134 | view | |
| 8 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/server/master/store | 73:82 137:146 | view | |
| 7 | x 2 | mantis-client/src/main/java/io/mantisrx/clientmantis-server/mantis-ser...rx/server/worker/client | 140:148 124:132 | view | |
| 7 | x 2 | mantis-common/src/main/java/io/mantisrx/runtimemantis-publish/mantis-pu...nternal/discovery/proto | 72:80 60:68 | view | |
| 7 | x 3 | mantis-common/src/main/java/io/mantisrx/runtimemantis-control-plane/man...r/jobcluster/job/workermantis-publish/mantis-pu...nternal/discovery/proto | 102:110 110:118 90:98 | view | |
| 7 | x 2 | mantis-control-plane/man...rx/server/master/domainmantis-control-plane/man...srx/server/master/store | 42:50 357:365 | view | |
| 7 | x 3 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v0mantis-control-plane/man...aster/api/akka/route/v0 | 93:101 88:96 92:100 | view | |
| 7 | x 2 | mantis-control-plane/man...aster/api/akka/route/v1mantis-control-plane/man...aster/api/akka/route/v0 | 114:122 120:128 | view | |
| 7 | x 2 | mantis-server/mantis-ser...o/mantisrx/server/agentmantis-runtime-executor/.../mantisrx/server/worker | 119:128 189:198 | view | |
| 7 | x 2 | mantis-runtime-autoscale...jobmaster/control/utilsmantis-rxcontrol/src/mai...srx/control/controllers | 30:40 27:37 | view | |
| 6 | x 2 | mantis-examples/mantis-e...ourcejob/synthetic/coremantis-source-jobs/manti...rx/sourcejob/kafka/sink | 57:64 57:64 | view | |
| 6 | x 2 | mantis-common/src/main/java/io/mantisrx/runtimemantis-publish/mantis-pu...nternal/discovery/proto | 82:89 70:77 | view | |
| 6 | x 2 | mantis-control-plane/man...srx/server/master/storemantis-control-plane/man...srx/server/master/store | 85:92 149:156 | view | |
| 6 | x 2 | mantis-runtime-autoscale...jobmaster/control/utilsmantis-rxcontrol/src/mai...srx/control/controllers | 75:82 80:87 | view |
About This Analysis
- For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
- Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
- You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
- To learn more about duplications and techniques for eliminating duplication, Sokrates recommends the following resources:
- Avoid Repetition, MartinFlower.com (IEEE Software article)
- Refactoring duplicated code, sourcemaking.com
- Beck Design Rules, MartinFowler.com
- DRY (Don't Repeat Yourself) Principle, Wikipedia
- The Cut-and-Paste Programming Software Development Anti-Pattern, sourcemaking.com
- Code Smells / Duplicated Code, Jeff Atwood, codinghorror.com:
- "Duplicated code is the bane of software development. Stamp out duplication whenever possible. You should always be on the lookout for more subtle cases of near-duplication, too. Don't Repeat Yourself!"
- Reducing Coupling, MartinFlower.com (IEEE Software article):
- "There are several ways to describe coupling, but it boils down to this: If changing one module in a program requires changing another module, then coupling exists. ... Duplication always implies coupling, because changing one piece of duplicate code implies changing the other."