openai / openai-icpc-2025
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
  • 2% duplication:
    • 2,714 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 67 duplicated lines
  • 5 duplicates
system2% (67 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
cpp2% (67 lines)
Duplication per Component (primary)
G-Lava Moat3% (67 lines)
A-A-Skew-ed Reasoning0% (0 lines)
L-Walking on Sunshine0% (0 lines)
K-Treasure Map0% (0 lines)
B-Blackboard Game0% (0 lines)
I-Slot Machine0% (0 lines)
C-Bride of Pipe Stream0% (0 lines)
F-Herding Cats0% (0 lines)
H-Score Values0% (0 lines)
J-Stacking Cups0% (0 lines)
E-Delivery Service0% (0 lines)
D-Buggy Rover0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
9 x 2 G-Lava Moat
G-Lava Moat
71:79 (4%)
81:89 (4%)
view
8 x 2 G-Lava Moat
G-Lava Moat
162:171 (3%)
186:195 (3%)
view
7 x 2 G-Lava Moat
G-Lava Moat
153:159 (3%)
177:183 (3%)
view
6 x 2 G-Lava Moat
G-Lava Moat
33:38 (4%)
53:59 (2%)
view
6 x 2 G-Lava Moat
G-Lava Moat
71:77 (3%)
51:58 (2%)
view