apple / GCGC
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • 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...
Duplication Overall
  • 18% duplication:
    • 1,334 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 246 duplicated lines
  • 72 duplicates
system18% (246 lines)
Duplication per Extension
py18% (246 lines)
Duplication per Component (primary)
src/graphing23% (246 lines)
src0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 72 duplicates...
Size#FoldersFilesLinesCode
13 x 2 src/graphing
src/graphing
allocation_rate.py
plotting.py
16:28 (20%)
790:802 (2%)
view
11 x 2 src/graphing
src/graphing
plotting.py
plotting.py
28:41 (1%)
66:77 (1%)
view
10 x 2 src/graphing
src/graphing
plotting.py
plotting.py
66:76 (1%)
828:840 (1%)
view
10 x 2 src/graphing
src/graphing
plotting.py
plotting.py
28:40 (1%)
828:840 (1%)
view
10 x 2 src/graphing
src/graphing
plotting.py
plotting.py
615:624 (1%)
683:692 (1%)
view
9 x 2 src/graphing
src/graphing
plotting.py
plotting.py
20:28 (1%)
92:100 (1%)
view
9 x 2 src/graphing
src/graphing
plotting.py
plotting.py
92:100 (1%)
165:173 (1%)
view
9 x 2 src/graphing
src/graphing
plotting.py
plotting.py
20:28 (1%)
127:135 (1%)
view
9 x 2 src/graphing
src/graphing
plotting.py
plotting.py
92:100 (1%)
127:135 (1%)
view
9 x 2 src/graphing
src/graphing
plotting.py
plotting.py
20:28 (1%)
165:173 (1%)
view
9 x 2 src/graphing
src/graphing
plotting.py
plotting.py
127:135 (1%)
165:173 (1%)
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
92:99 (1%)
816:823 (1%)
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
31:40 (1%)
176:184 (1%)
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
165:172 (1%)
816:823 (1%)
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
483:490 (1%)
683:690 (1%)
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
68:76 (1%)
176:184 (1%)
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
345:352 (1%)
483:490 (1%)
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
138:146 (1%)
831:840 (1%)
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
68:76 (1%)
138:146 (1%)
view
8 x 2 src/graphing
src/graphing
percentiles.py
summary.py
71:78 (18%)
106:113 (10%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/graphing
src/graphing
allocation_rate.py
plotting.py
0:0 
0:0 
view
8 x 2 src/graphing
src/graphing
plotting.py
plotting.py
0:0 
0:0 
view