facebookresearch / GCSAL
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
  • 6% duplication:
    • 3,383 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 205 duplicated lines
  • 16 duplicates
system6% (205 lines)
Duplication per Extension
m6% (205 lines)
Duplication per Component (primary)
ROOT6% (205 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
29 x 2 ROOT
ROOT
GCSAL_ex1.m
GCSAL_ex2.m
18:53 (15%)
15:50 (32%)
view
9 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
134:142 (<1%)
251:259 (<1%)
view
8 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
273:281 (<1%)
394:402 (<1%)
view
8 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
159:167 (<1%)
273:281 (<1%)
view
8 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
177:185 (<1%)
293:301 (<1%)
view
8 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
159:167 (<1%)
394:402 (<1%)
view
7 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
293:299 (<1%)
410:416 (<1%)
view
7 x 2 +GCSAL/+IGRA
+GCSAL/+IGRA
datafile2mat_dir.m
mat2h5_dir.m
60:67 (10%)
67:74 (8%)
view
7 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
177:183 (<1%)
410:416 (<1%)
view
7 x 2 +GCSAL/+IGRA
+GCSAL/+IGRA
Param.m
Param.m
24:30 (1%)
50:56 (1%)
view
6 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
980:986 (<1%)
1185:1190 (<1%)
view
6 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
169:175 (<1%)
403:409 (<1%)
view
6 x 2 ROOT
ROOT
GCSAL_ex1.m
GCSAL_ex2.m
1:6 (3%)
1:6 (6%)
view
6 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
169:175 (<1%)
284:290 (<1%)
view
6 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
1437:1443 (<1%)
1528:1534 (<1%)
view
6 x 2 +GCSAL
+GCSAL
GCSAL.m
GCSAL.m
284:290 (<1%)
403:409 (<1%)
view