openai / openai-reflect
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
  • 7% duplication:
    • 575 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 4 duplicates
system7% (44 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
cpp7% (44 lines)
Duplication per Component (primary)
main7% (44 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
12 x 2 main
main
102:114 (9%)
133:145 (9%)
view
8 x 2 main
main
75:83 (6%)
102:110 (6%)
view
8 x 2 main
main
75:83 (6%)
133:141 (6%)
view
6 x 2 main
main
109:115 (3%)
141:147 (3%)
view
Most Frequent Duplicates
The list of 3 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 3 main
main
main
77:82 (4%)
104:109 (4%)
135:140 (4%)
view
6 x 3 main
main
main
75:81 (4%)
102:108 (4%)
133:139 (4%)
view
6 x 3 main
main
main
78:83 (4%)
105:110 (4%)
136:141 (4%)
view