tensorflow / ngraph-bridge
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
  • 5% duplication:
    • 8,176 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 462 duplicated lines
  • 52 duplicates
system5% (462 lines)
Duplication per Extension
cc5% (306 lines)
cmake20% (86 lines)
py4% (70 lines)
Duplication per Component (primary)
ngraph_bridge5% (283 lines)
tools10% (54 lines)
python26% (45 lines)
cmake14% (41 lines)
ROOT3% (16 lines)
ngraph_bridge/pass4% (16 lines)
ngraph_bridge/kernels2% (7 lines)
diagnostics0% (0 lines)
diagnostics/model_accuracy0% (0 lines)
diagnostics/model_test0% (0 lines)
python/ngraph_bridge0% (0 lines)
ngraph_bridge/ops0% (0 lines)

Duplication Between Components (50+ lines)

G cmake cmake python python cmake--python 56

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 52 duplicates...
Size#FoldersFilesLinesCode
30 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
929:966 (1%)
1488:1525 (1%)
view
15 x 2 cmake
python
cmake
external_gtest.cmake
CreatePipWhl.cmake
1:15 (18%)
1:15 (11%)
view
14 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
950:966 (<1%)
1039:1055 (<1%)
view
14 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
1039:1055 (<1%)
1509:1525 (<1%)
view
13 x 2 cmake
python
cmake
FindTensorFlow.cmake
CreatePipWhl.cmake
3:15 (11%)
3:15 (9%)
view
13 x 2 cmake
cmake
cmake
FindTensorFlow.cmake
external_gtest.cmake
3:15 (11%)
3:15 (16%)
view
13 x 2 cmake
cmake
cmake
external_gtest.cmake
sdl.cmake
2:14 (16%)
2:14 (23%)
view
13 x 2 cmake
python
cmake
sdl.cmake
CreatePipWhl.cmake
2:14 (23%)
2:14 (9%)
view
13 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
907:921 (<1%)
1191:1205 (<1%)
view
13 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
1162:1180 (<1%)
2325:2343 (<1%)
view
12 x 2 cmake
cmake
cmake
FindTensorFlow.cmake
sdl.cmake
3:14 (10%)
3:14 (21%)
view
12 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
906:918 (<1%)
1072:1084 (<1%)
view
12 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
712:724 (<1%)
1803:1815 (<1%)
view
11 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
1073:1084 (<1%)
1191:1202 (<1%)
view
10 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
985:995 (<1%)
1195:1205 (<1%)
view
10 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
958:970 (<1%)
1126:1138 (<1%)
view
10 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
911:921 (<1%)
985:995 (<1%)
view
9 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
1010:1020 (<1%)
1209:1219 (<1%)
view
9 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
741:750 (<1%)
1829:1838 (<1%)
view
8 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
1211:1219 (<1%)
1494:1502 (<1%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 ngraph_bridge
ngraph_bridge
ngraph_builder.cc
ngraph_builder.cc
2135:2151 
2183:2199 
view
11 x 2 ngraph_bridge
ngraph_bridge
ngraph_conversions.cc
ngraph_conversions.cc
22:33 
35:46 
view
9 x 2 ngraph_bridge
ngraph_bridge
tf_deadness_analysis.cc
tf_deadness_analysis.cc
112:121 
141:150 
view