apple / vqg-multimodal-assistant
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
  • 16% duplication:
    • 1,325 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 218 duplicated lines
  • 7 duplicates
system16% (218 lines)
Duplication per Extension
py11% (148 lines)
yaml87% (70 lines)
Duplication per Component (primary)
ROOT11% (148 lines)
config87% (70 lines)
commons_pkg0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
28 x 2 config
config
inference-config.yaml
training-config.yaml
45:79 (70%)
45:79 (70%)
view
22 x 2 ROOT
ROOT
question_generation_model.py
question_generation_model.py
383:405 (3%)
545:567 (3%)
view
21 x 2 ROOT
ROOT
question_generation_model.py
question_generation_model.py
432:458 (3%)
603:629 (3%)
view
12 x 2 ROOT
ROOT
question_generation_model.py
question_generation_model.py
838:850 (2%)
886:898 (2%)
view
12 x 2 ROOT
ROOT
datasets.py
datasets.py
214:227 (4%)
245:257 (4%)
view
7 x 2 config
config
inference-config.yaml
training-config.yaml
33:42 (17%)
33:42 (17%)
view
7 x 2 ROOT
ROOT
datasets.py
datasets.py
395:401 (2%)
406:412 (2%)
view