amazon-research / panrep
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
  • 76% duplication:
    • 18,732 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 14,322 duplicated lines
  • 31,861 duplicates
system76% (14,322 lines)
Duplication per Extension
py76% (14,322 lines)
Duplication per Component (primary)
panrep76% (13,162 lines)
data_handler/imdb76% (1,014 lines)
data_handler/cancer_network100% (73 lines)
data_handler100% (73 lines)
data_handler/drugbank0% (0 lines)

Duplication Between Components (50+ lines)

G data_handler/cancer_network data_handler/cancer_network data_handler data_handler data_handler/cancer_network--data_handler 146

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 31,861 duplicates...
Size#FoldersFilesLinesCode
503 x 2 data_handler/imdb
data_handler/imdb
imbd_data_loader.py
imdb_data_loader.py
19:625 (100%)
19:625 (100%)
view
388 x 2 panrep
panrep
plot_data.py
plot_data.py
9076:9493 (3%)
9504:9921 (3%)
view
385 x 2 panrep
panrep
plot_data.py
plot_data.py
7371:7786 (3%)
7796:8211 (3%)
view
385 x 2 panrep
panrep
plot_data.py
plot_data.py
6946:7361 (3%)
7371:7786 (3%)
view
385 x 2 panrep
panrep
plot_data.py
plot_data.py
6946:7361 (3%)
7796:8211 (3%)
view
385 x 2 panrep
panrep
plot_data.py
plot_data.py
6521:6936 (3%)
6946:7361 (3%)
view
385 x 2 panrep
panrep
plot_data.py
plot_data.py
6521:6936 (3%)
7796:8211 (3%)
view
385 x 2 panrep
panrep
plot_data.py
plot_data.py
6521:6936 (3%)
7371:7786 (3%)
view
348 x 2 panrep
panrep
plot_data.py
plot_data.py
10619:10991 (3%)
11040:11412 (3%)
view
348 x 2 panrep
panrep
plot_data.py
plot_data.py
10196:10568 (3%)
10619:10991 (3%)
view
348 x 2 panrep
panrep
plot_data.py
plot_data.py
10196:10568 (3%)
11040:11412 (3%)
view
347 x 2 panrep
panrep
plot_data.py
plot_data.py
8694:9066 (3%)
9549:9921 (3%)
view
347 x 2 panrep
panrep
plot_data.py
plot_data.py
8694:9066 (3%)
9121:9493 (3%)
view
346 x 2 panrep
panrep
plot_data.py
plot_data.py
8269:8639 (3%)
8696:9066 (3%)
view
346 x 2 panrep
panrep
plot_data.py
plot_data.py
8269:8639 (3%)
9551:9921 (3%)
view
346 x 2 panrep
panrep
plot_data.py
plot_data.py
8269:8639 (3%)
9123:9493 (3%)
view
344 x 2 panrep
panrep
plot_data.py
plot_data.py
6566:6934 (3%)
8696:9064 (3%)
view
344 x 2 panrep
panrep
plot_data.py
plot_data.py
6566:6934 (3%)
8269:8637 (3%)
view
344 x 2 panrep
panrep
plot_data.py
plot_data.py
6566:6934 (3%)
9123:9491 (3%)
view
344 x 2 panrep
panrep
plot_data.py
plot_data.py
6566:6934 (3%)
9551:9919 (3%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 23 unit duplicates...
Size#FoldersFilesLinesCode
204 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
183 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
64 x 2 panrep
panrep
plot_data.py
plot_data.py
0:0 
0:0 
view
44 x 2 panrep
panrep
classifiers.py
decoders.py
0:0 
0:0 
view
41 x 2 panrep
panrep
decoders.py
decoders.py
0:0 
0:0 
view
30 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
22 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
19 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
19 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
19 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
20 x 2 panrep
panrep
classifiers.py
decoders.py
0:0 
0:0 
view
15 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
14 x 2 panrep
panrep
node_sampling_masking.py
node_sampling_masking.py
0:0 
0:0 
view
9 x 3 panrep
panrep
panrep
classifiers.py
classifiers.py
decoders.py
0:0 
0:0 
0:0 
view
11 x 2 panrep
panrep
classifiers.py
decoders.py
0:0 
0:0 
view
13 x 2 data_handler/imdb
data_handler/imdb
imdb_data_loader.py
imbd_data_loader.py
0:0 
0:0 
view
6 x 3 panrep
panrep
panrep
classifiers.py
classifiers.py
decoders.py
0:0 
0:0 
0:0 
view
9 x 3 panrep
panrep
panrep
classifiers.py
classifiers.py
decoders.py
0:0 
0:0 
0:0 
view
6 x 2 panrep
panrep
classifiers.py
decoders.py
0:0 
0:0 
view
6 x 2 panrep
panrep
classifiers.py
decoders.py
0:0 
0:0 
view