apple / ARKitScenes
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:
    • 2,229 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 120 duplicated lines
  • 10 duplicates
system5% (120 lines)
Duplication per Extension
py5% (120 lines)
Duplication per Component (primary)
threedod/benchmark_scripts15% (70 lines)
depth_upsampling/models/mspf9% (34 lines)
threedod/benchmark_scripts/utils2% (16 lines)
depth_upsampling0% (0 lines)
depth_upsampling/logs0% (0 lines)
depth_upsampling/losses0% (0 lines)
depth_upsampling/models0% (0 lines)
depth_upsampling/models/msg0% (0 lines)
depth_upsampling/transfroms0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
15 x 2 threedod/benchmark_scripts
threedod/benchmark_scripts
data_prepare_offline.py
data_prepare_online.py
50:64 (19%)
19:33 (17%)
view
13 x 2 threedod/benchmark_scripts
threedod/benchmark_scripts
data_prepare_offline.py
data_prepare_online.py
70:88 (16%)
39:57 (15%)
view
11 x 2 depth_upsampling/models/mspf
depth_upsampling/models/mspf
MultiScaleDepthSR.py
MultiScaleDepthSR.py
41:51 (13%)
71:81 (13%)
view
8 x 2 threedod/benchmark_scripts/utils
threedod/benchmark_scripts/utils
taxonomy.py
tenFpsDataLoader.py
19:26 (32%)
165:172 (3%)
view
7 x 2 threedod/benchmark_scripts
threedod/benchmark_scripts
data_prepare_offline.py
data_prepare_online.py
90:99 (9%)
59:68 (8%)
view
6 x 2 depth_upsampling/models/mspf
depth_upsampling/models/mspf
MultiScaleDepthSR.py
MultiscaleConvDepthEncoder.py
75:80 (7%)
24:29 (10%)
view
6 x 2 depth_upsampling/models/mspf
depth_upsampling/models/mspf
MultiscaleConvDepthEncoder.py
MultiscaleConvDepthEncoder.py
24:29 (10%)
45:50 (10%)
view
6 x 2 depth_upsampling/models/mspf
depth_upsampling/models/mspf
MultiScaleDepthSR.py
MultiscaleConvDepthEncoder.py
45:50 (7%)
24:29 (10%)
view
6 x 2 depth_upsampling/models/mspf
depth_upsampling/models/mspf
MultiScaleDepthSR.py
MultiscaleConvDepthEncoder.py
45:50 (7%)
45:50 (10%)
view
6 x 2 depth_upsampling/models/mspf
depth_upsampling/models/mspf
MultiScaleDepthSR.py
MultiscaleConvDepthEncoder.py
75:80 (7%)
45:50 (10%)
view