Duplication Overall
  • 2% duplication:
    • 20,279 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 464 duplicated lines
  • 33 duplicates
system2% (464 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
go2% (322 lines)
py3% (142 lines)
Duplication per Component (primary)
internal2% (284 lines)
scripts4% (142 lines)
pkg<1% (38 lines)
cmd0% (0 lines)
ROOT0% (0 lines)
.github0% (0 lines)
Longest Duplicates
The list of 33 longest duplicates.
See data for all 33 duplicates...
Size#FoldersFilesLinesCode
37 x 2 internal/requestflag
internal/requestflag
147:192 (22%)
482:529 (6%)
view
14 x 2 scripts
scripts
47:62 (3%)
67:82 (4%)
view
12 x 2 internal/imagefont
internal/imagefont
155:170 (5%)
33:48 (10%)
view
11 x 2 internal/autocomplete
internal/imageprefs
788:801 (2%)
25:38 (22%)
view
8 x 2 scripts/castiron
scripts/castiron
803:810 (<1%)
851:858 (<1%)
view
8 x 2 internal/jsonview
internal/jsonview
733:742 (1%)
773:782 (1%)
view
8 x 2 scripts
scripts
44:51 (7%)
23:30 (7%)
view
8 x 2 internal/autocomplete
internal/autocomplete
27:37 (21%)
41:51 (11%)
view
8 x 2 scripts
scripts
27:36 (4%)
22:31 (7%)
view
7 x 2 scripts/castiron
scripts/castiron
237:243 (<1%)
472:478 (<1%)
view
7 x 2 scripts
scripts
427:435 (1%)
348:356 (2%)
view
7 x 2 internal/autocomplete
internal/imageprefs
828:836 (1%)
69:77 (14%)
view
7 x 2 internal/imageprefs
pkg/custom
139:147 (5%)
175:183 (3%)
view
7 x 2 internal/imageprefs
pkg/custom
152:159 (5%)
188:195 (3%)
view
7 x 2 scripts
scripts
130:136 (3%)
156:163 (4%)
view
7 x 2 internal/autocomplete
internal/autocomplete
16:24 (14%)
19:27 (11%)
view
6 x 2 internal/jsonview
internal/jsonview
737:742 (<1%)
812:817 (<1%)
view
6 x 2 internal/jsonview
internal/jsonview
777:782 (<1%)
812:817 (<1%)
view
6 x 2 pkg/custom
pkg/custom
235:241 (2%)
243:249 (2%)
view
6 x 2 pkg/custom
pkg/custom
91:98 (8%)
107:114 (8%)
view
6 x 2 scripts
scripts
101:106 (1%)
152:157 (1%)
view
6 x 2 scripts
scripts
101:106 (1%)
208:213 (1%)
view
6 x 2 scripts
scripts
101:106 (1%)
250:255 (1%)
view
6 x 2 scripts
scripts
152:157 (1%)
208:213 (1%)
view
6 x 2 scripts
scripts
152:157 (1%)
250:255 (1%)
view
6 x 2 scripts
scripts
208:213 (1%)
250:255 (1%)
view
6 x 2 internal/requestflag
internal/requestflag
15:20 (3%)
62:67 (1%)
view
6 x 2 internal/imagefont
internal/imagefont
188:195 (2%)
73:80 (5%)
view
6 x 2 internal/imagefont
internal/imagefont
219:224 (2%)
91:96 (5%)
view
6 x 2 internal/autocomplete
internal/imageprefs
814:820 (1%)
51:57 (12%)
view
6 x 2 internal/autocomplete
internal/autocomplete
43:49 (16%)
57:63 (8%)
view
6 x 2 internal/imageoutput
internal/terminalimage
203:210 (4%)
106:113 (10%)
view
6 x 2 internal/autocomplete
internal/autocomplete
130:137 (1%)
15:22 (8%)
view
Most Frequent Duplicates
The list of 2 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 4 scripts
scripts
scripts
scripts
101:106 (1%)
152:157 (1%)
208:213 (1%)
250:255 (1%)
view
6 x 3 internal/jsonview
internal/jsonview
internal/jsonview
737:742 (<1%)
777:782 (<1%)
812:817 (<1%)
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...