facebookresearch / aroma-paper-artifacts
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:
    • 1,806 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 122 duplicated lines
  • 6 duplicates
system6% (122 lines)
Duplication per Extension
g47% (52 lines)
py5% (52 lines)
java8% (18 lines)
Duplication per Component (primary)
src/main/antlr47% (52 lines)
src/main/python5% (52 lines)
src/main/java8% (18 lines)
data0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
26 x 2 reference/src/main/antlr4
reference/src/main/antlr4
g4
JavaLexer.g4
JavaParser.g4
1:28 (14%)
1:28 (5%)
view
9 x 2 reference/src/main/java
reference/src/main/java
ConvertJava.java
ConvertJava.java
103:111 (4%)
114:122 (4%)
view
8 x 2 reference/src/main/python
reference/src/main/python
similar.py
similar.py
255:262 (<1%)
271:278 (<1%)
view
6 x 2 reference/src/main/python
reference/src/main/python
similar.py
similar.py
316:321 (<1%)
333:338 (<1%)
view
6 x 2 reference/src/main/python
reference/src/main/python
similar.py
similar.py
646:651 (<1%)
654:659 (<1%)
view
6 x 2 reference/src/main/python
reference/src/main/python
similar.py
similar.py
207:212 (<1%)
221:226 (<1%)
view