Duplication Overall
- 16% duplication:
- 15,632 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
- 2,537 duplicated lines
- 164 duplicates
Duplication per Extension
Duplication per Component (primary)
Duplication Between Components (50+ lines)
flowchart TB
n0["hystrix-contrib"]
n1["hystrix-serialization"]
n0 ---|"678"| n1
classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
linkStyle 0 stroke:#DC143CFF,stroke-width:10px
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
hystrix-contrib (5%)
  --> hystrix-serialization (70%)
678
4 file pairs
details...
flowchart TB
n0["hystrix-contrib"]
n1["hystrix-serialization"]
n0 ---|"678"| n1
classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
linkStyle 0 stroke:#DC143CFF,stroke-width:10px
Show more details on duplication between components...
| From Component --> To Component |
Duplicated Lines |
File Pairs | Details |
|---|---|---|---|
| hystrix-contrib (5%)   --> hystrix-serialization (70%) |
678 | 4 file pairs | details... |
Longest Duplicates
The list of 50 longest duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 129 | x 2 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-serialization/sr.../netflix/hystrix/serial | 225:393 (41%)159:327 (46%) | view | |
| 62 | x 2 | hystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-serialization/sr.../netflix/hystrix/serial | 78:143 (53%)98:163 (59%) | view | |
| 59 | x 2 | hystrix-core/src/main/ja...om/netflix/hystrix/utilhystrix-core/src/main/ja...om/netflix/hystrix/util | 507:652 (24%)459:604 (25%) | view | |
| 35 | x 2 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-serialization/sr.../netflix/hystrix/serial | 450:508 (11%)372:430 (12%) | view | |
| 35 | x 2 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 44:123 (21%)45:124 (28%) | view | |
| 32 | x 2 | hystrix-contrib/hystrix-...odahalemetricspublisherhystrix-contrib/hystrix-...odahalemetricspublisher | 233:276 (18%)514:557 (7%) | view | |
| 32 | x 2 | hystrix-contrib/hystrix-...odahalemetricspublisherhystrix-contrib/hystrix-.../yammermetricspublisher | 61:109 (18%)62:104 (18%) | view | |
| 27 | x 2 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-serialization/sr.../netflix/hystrix/serial | 407:440 (8%)333:366 (9%) | view | |
| 22 | x 2 | hystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-serialization/sr.../netflix/hystrix/serial | 150:177 (18%)59:86 (21%) | view | |
| 22 | x 2 | hystrix-contrib/hystrix-...contrib/requests/streamhystrix-serialization/sr.../netflix/hystrix/serial | 86:114 (40%)71:99 (44%) | view | |
| 20 | x 2 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 53:83 (11%)53:83 (12%) | view | |
| 18 | x 2 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 68:95 (4%)55:83 (11%) | view | |
| 18 | x 2 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 55:83 (10%)68:95 (4%) | view | |
| 16 | x 2 | hystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-serialization/sr.../netflix/hystrix/serial | 93:112 (27%)57:76 (34%) | view | |
| 15 | x 2 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 336:385 (10%)396:446 (8%) | view | |
| 15 | x 2 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 562:614 (10%)535:587 (8%) | view | |
| 15 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 45:63 (60%)51:69 (46%) | view | |
| 14 | x 2 | hystrix-core/src/main/ja...om/netflix/hystrix/utilhystrix-core/src/main/ja...om/netflix/hystrix/util | 399:420 (5%)470:491 (5%) | view | |
| 13 | x 2 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 152:170 (8%)206:224 (8%) | view | |
| 13 | x 2 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 305:325 (8%)748:768 (3%) | view | |
| 13 | x 2 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/stream | 68:88 (52%)68:88 (52%) | view | |
| 13 | x 2 | hystrix-contrib/hystrix-...contrib/requests/streamhystrix-contrib/hystrix-...x/contrib/sample/stream | 50:70 (52%)67:87 (54%) | view | |
| 13 | x 2 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/stream | 68:88 (52%)67:87 (54%) | view | |
| 13 | x 2 | hystrix-contrib/hystrix-...contrib/requests/streamhystrix-contrib/hystrix-...x/contrib/sample/stream | 50:70 (52%)68:88 (52%) | view | |
| 13 | x 2 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 199:227 (7%)146:174 (8%) | view | |
| 13 | x 2 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...contrib/requests/stream | 68:88 (52%)50:70 (52%) | view | |
| 13 | x 2 | hystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/stream | 67:87 (54%)68:88 (52%) | view | |
| 13 | x 2 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 152:170 (8%)230:248 (10%) | view | |
| 13 | x 2 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 206:224 (8%)230:248 (10%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja...om/netflix/hystrix/utilhystrix-core/src/main/ja...om/netflix/hystrix/util | 327:345 (5%)278:296 (5%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/sample | 52:65 (22%)65:78 (14%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 51:64 (37%)52:65 (22%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/sample | 45:58 (48%)65:78 (14%) | view | |
| 12 | x 2 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 145:185 (8%)119:160 (19%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 45:58 (48%)52:65 (22%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/sample | 51:64 (37%)65:78 (14%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumer | 73:86 (11%)45:58 (48%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumer | 73:86 (11%)51:64 (37%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...x/hystrix/metric/sample | 73:86 (11%)65:78 (14%) | view | |
| 12 | x 2 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumer | 73:86 (11%)52:65 (22%) | view | |
| 11 | x 2 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 152:166 (6%)260:274 (6%) | view | |
| 11 | x 2 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 206:220 (6%)260:274 (6%) | view | |
| 11 | x 2 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 73:85 (10%)101:113 (10%) | view | |
| 11 | x 2 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 73:85 (10%)129:141 (10%) | view | |
| 11 | x 2 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 101:113 (10%)129:141 (10%) | view | |
| 11 | x 2 | hystrix-core/src/main/ja.../netflix/hystrix/metrichystrix-core/src/main/ja.../netflix/hystrix/metric | 60:78 (34%)61:79 (34%) | view | |
| 11 | x 2 | hystrix-core/src/main/ja.../netflix/hystrix/metrichystrix-core/src/main/ja.../netflix/hystrix/metric | 60:79 (34%)61:79 (34%) | view | |
| 11 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 82:98 (29%)81:97 (29%) | view | |
| 11 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 80:96 (31%)78:94 (31%) | view | |
| 11 | x 2 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 81:97 (30%)79:95 (30%) | view |
Most Frequent Duplicates
The list of 50 most frequently found duplicates.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 6 | x 5 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/samplehystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 75:81 (5%)54:60 (11%)67:73 (7%)53:59 (18%)47:53 (24%) | view | |
| 6 | x 5 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/samplehystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 76:82 (5%)55:61 (11%)68:74 (7%)54:60 (18%)48:54 (24%) | view | |
| 6 | x 5 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/samplehystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 73:79 (5%)52:58 (11%)65:71 (7%)51:57 (18%)45:51 (24%) | view | |
| 6 | x 5 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/samplehystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 79:85 (5%)58:64 (11%)71:77 (7%)57:63 (18%)51:57 (24%) | view | |
| 6 | x 5 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/samplehystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 80:86 (5%)59:65 (11%)72:78 (7%)58:64 (18%)52:58 (24%) | view | |
| 6 | x 5 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/samplehystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 78:84 (5%)57:63 (11%)70:76 (7%)56:62 (18%)50:56 (24%) | view | |
| 6 | x 5 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 65:75 (16%)58:68 (25%)67:77 (16%)81:91 (19%)79:89 (19%) | view | |
| 6 | x 5 | hystrix-core/src/main/ja.../netflix/hystrix/confighystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...x/hystrix/metric/samplehystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 74:80 (5%)53:59 (11%)66:72 (7%)52:58 (18%)46:52 (24%) | view | |
| 6 | x 4 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 152:158 (3%)230:236 (4%)206:212 (3%)260:266 (3%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...contrib/requests/stream | 72:81 (24%)72:81 (24%)71:80 (25%)54:63 (24%) | view | |
| 6 | x 4 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 75:80 (5%)103:108 (5%)131:136 (5%)159:164 (5%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-serialization/sr.../netflix/hystrix/serialhystrix-serialization/sr.../netflix/hystrix/serialhystrix-contrib/hystrix-...x/contrib/sample/stream | 98:103 (5%)118:123 (5%)157:162 (5%)137:142 (5%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controller | 66:74 (31%)66:75 (31%)67:76 (31%)66:75 (31%) | view | |
| 6 | x 4 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 84:89 (5%)109:114 (5%)134:139 (5%)159:164 (5%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...contrib/requests/stream | 77:86 (24%)77:86 (24%)76:85 (25%)59:68 (24%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controller | 65:73 (31%)65:74 (31%)66:75 (31%)65:74 (31%) | view | |
| 6 | x 4 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 154:159 (3%)232:237 (4%)208:213 (3%)262:267 (3%) | view | |
| 6 | x 4 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 155:161 (3%)233:239 (4%)209:215 (3%)263:269 (3%) | view | |
| 6 | x 4 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 73:78 (5%)101:106 (5%)129:134 (5%)157:162 (5%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...contrib/requests/stream | 68:77 (24%)68:77 (24%)67:76 (25%)50:59 (24%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controller | 64:71 (31%)64:71 (31%)65:72 (31%)64:71 (31%) | view | |
| 6 | x 4 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 83:88 (5%)108:113 (5%)133:138 (5%)158:163 (5%) | view | |
| 6 | x 4 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 76:81 (5%)104:109 (5%)132:137 (5%)160:165 (5%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...contrib/requests/stream | 81:88 (24%)81:88 (24%)80:87 (25%)63:70 (24%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controller | 61:70 (31%)61:70 (31%)62:71 (31%)61:70 (31%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...contrib/requests/stream | 71:78 (24%)71:78 (24%)70:77 (25%)53:60 (24%) | view | |
| 6 | x 4 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 74:79 (5%)102:107 (5%)130:135 (5%)158:163 (5%) | view | |
| 6 | x 4 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 157:165 (3%)235:243 (4%)211:219 (3%)265:273 (3%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...contrib/requests/stream | 76:83 (24%)76:83 (24%)75:82 (25%)58:65 (24%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controllerhystrix-contrib/hystrix-...trib/metrics/controller | 69:75 (31%)69:76 (31%)70:77 (31%)69:76 (31%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...contrib/requests/stream | 78:87 (24%)78:87 (24%)77:86 (25%)60:69 (24%) | view | |
| 6 | x 4 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 85:92 (17%)83:90 (17%)86:93 (16%)84:91 (16%) | view | |
| 6 | x 4 | hystrix-contrib/hystrix-...rib/metrics/eventstreamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...x/contrib/sample/streamhystrix-contrib/hystrix-...contrib/requests/stream | 73:82 (24%)73:82 (24%)72:81 (25%)55:64 (24%) | view | |
| 6 | x 4 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 77:82 (5%)105:110 (5%)133:138 (5%)161:166 (5%) | view | |
| 6 | x 4 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 158:166 (3%)236:244 (4%)212:220 (3%)266:274 (3%) | view | |
| 6 | x 4 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 1345:1352 (<1%)1380:1387 (<1%)1417:1424 (<1%)1460:1467 (<1%) | view | |
| 6 | x 4 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 156:162 (3%)234:240 (4%)210:216 (3%)264:270 (3%) | view | |
| 6 | x 3 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 82:90 (1%)70:78 (3%)70:78 (3%) | view | |
| 6 | x 3 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 86:94 (1%)74:82 (3%)74:82 (3%) | view | |
| 6 | x 3 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 93:98 (6%)118:123 (6%)143:148 (6%) | view | |
| 6 | x 3 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 159:167 (3%)237:245 (4%)213:221 (3%) | view | |
| 6 | x 3 | hystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perfhystrix-core/src/jmh/java/com/netflix/hystrix/perf | 85:92 (5%)110:117 (5%)135:142 (5%) | view | |
| 6 | x 3 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/ja...ix/strategy/concurrencyhystrix-core/src/main/java/com/netflix/hystrix | 197:202 (4%)90:95 (12%)256:261 (4%) | view | |
| 6 | x 3 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 87:95 (1%)75:83 (3%)75:83 (3%) | view | |
| 6 | x 3 | hystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumerhystrix-core/src/main/ja...hystrix/metric/consumer | 67:77 (16%)67:77 (16%)59:69 (24%) | view | |
| 6 | x 3 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 76:83 (1%)64:71 (3%)64:71 (3%) | view | |
| 6 | x 3 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 485:494 (4%)506:515 (3%)141:150 (<1%) | view | |
| 6 | x 3 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 81:89 (1%)69:77 (3%)69:77 (3%) | view | |
| 6 | x 3 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/ja...ix/strategy/concurrencyhystrix-core/src/main/java/com/netflix/hystrix | 199:204 (4%)92:97 (12%)258:263 (4%) | view | |
| 6 | x 3 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 68:76 (1%)55:64 (3%)55:64 (3%) | view |
Duplicated Units
The list of top 26 duplicated units.
| Size | # | Folders | Files | Lines | Code |
|---|---|---|---|---|---|
| 35 | x 2 | hystrix-serialization/sr.../netflix/hystrix/serialhystrix-contrib/hystrix-...x/contrib/sample/stream | 98:134 78:114 | view | |
| 31 | x 2 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 52:93 52:93 | view | |
| 14 | x 2 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 71:86 468:483 | view | |
| 14 | x 2 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 82:100 81:99 | view | |
| 13 | x 2 | hystrix-serialization/sr.../netflix/hystrix/serialhystrix-contrib/hystrix-...x/contrib/sample/stream | 150:164 130:144 | view | |
| 11 | x 2 | hystrix-serialization/sr.../netflix/hystrix/serialhystrix-contrib/hystrix-...x/contrib/sample/stream | 136:148 116:128 | view | |
| 11 | x 2 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 120:132 129:141 | view | |
| 11 | x 2 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 135:147 152:164 | view | |
| 11 | x 2 | hystrix-contrib/hystrix-...odahalemetricspublisherhystrix-contrib/hystrix-...odahalemetricspublisher | 523:535 242:254 | view | |
| 11 | x 2 | hystrix-contrib/hystrix-...odahalemetricspublisherhystrix-contrib/hystrix-...odahalemetricspublisher | 546:558 265:277 | view | |
| 11 | x 3 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 484:499 140:155 505:520 | view | |
| 10 | x 2 | hystrix-core/src/main/ja...rix/strategy/propertieshystrix-core/src/main/ja...rix/strategy/properties | 229:241 151:163 | view | |
| 9 | x 2 | hystrix-contrib/hystrix-...ontrib/javanica/commandhystrix-contrib/hystrix-...ontrib/javanica/command | 156:166 120:130 | view | |
| 8 | x 2 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 336:348 396:408 | view | |
| 8 | x 2 | hystrix-core/src/main/ja...om/netflix/hystrix/utilhystrix-core/src/main/ja...om/netflix/hystrix/util | 528:537 480:489 | view | |
| 7 | x 2 | hystrix-contrib/hystrix-...ontrib/javanica/commandhystrix-contrib/hystrix-...ontrib/javanica/command | 131:139 104:112 | view | |
| 7 | x 2 | hystrix-core/src/main/ja...om/netflix/hystrix/utilhystrix-core/src/main/ja...om/netflix/hystrix/util | 606:627 558:579 | view | |
| 7 | x 2 | hystrix-core/src/main/ja...om/netflix/hystrix/utilhystrix-core/src/main/ja...om/netflix/hystrix/util | 636:654 588:606 | view | |
| 7 | x 2 | hystrix-core/src/main/java/com/netflix/hystrixhystrix-core/src/main/java/com/netflix/hystrix | 1972:1981 240:249 | view | |
| 6 | x 2 | hystrix-serialization/sr.../netflix/hystrix/serialhystrix-contrib/hystrix-...x/contrib/sample/stream | 93:100 80:87 | view | |
| 6 | x 3 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 173:180 90:98 120:127 | view | |
| 6 | x 2 | hystrix-contrib/hystrix-.../contrib/servopublisherhystrix-contrib/hystrix-.../contrib/servopublisher | 197:204 143:150 | view | |
| 6 | x 2 | hystrix-contrib/hystrix-.../yammermetricspublisherhystrix-contrib/hystrix-.../yammermetricspublisher | 393:400 228:235 | view | |
| 6 | x 2 | hystrix-contrib/hystrix-.../yammermetricspublisherhystrix-contrib/hystrix-.../yammermetricspublisher | 427:434 251:258 | view | |
| 6 | x 2 | hystrix-contrib/hystrix-...odahalemetricspublisherhystrix-contrib/hystrix-...odahalemetricspublisher | 514:521 233:240 | view | |
| 6 | x 2 | hystrix-contrib/hystrix-...odahalemetricspublisherhystrix-contrib/hystrix-...odahalemetricspublisher | 537:544 256:263 | 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."