amazon-research / FeatGraph
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:
    • 656 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 110 duplicated lines
  • 6 duplicates
system16% (110 lines)
Duplication per Extension
py16% (110 lines)
Duplication per Component (primary)
python/featgraph/util52% (58 lines)
benchmark20% (28 lines)
python/featgraph/module10% (24 lines)
python/featgraph0% (0 lines)
python/featgraph/op0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
23 x 2 python/featgraph/util
python/featgraph/util
adj_partitioning.py
adj_partitioning.py
105:128 (21%)
157:180 (21%)
view
8 x 2 benchmark
benchmark
bench_vanilla_sddmm.py
bench_vanilla_sddmm.py
29:36 (11%)
61:68 (11%)
view
6 x 2 python/featgraph/util
python/featgraph/util
adj_partitioning.py
adj_partitioning.py
85:90 (5%)
132:137 (5%)
view
6 x 2 benchmark
benchmark
bench_vanilla_spmm.py
bench_vanilla_spmm.py
28:33 (9%)
55:60 (9%)
view
6 x 2 python/featgraph/module
python/featgraph/module
sddmm.py
spmm.py
37:43 (6%)
33:39 (4%)
view
6 x 2 python/featgraph/module
python/featgraph/module
sddmm.py
spmm.py
159:165 (6%)
188:194 (4%)
view