pytorch / builder
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
  • 4% duplication:
    • 3,764 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 176 duplicated lines
  • 13 duplicates
system4% (176 lines)
Duplication per Extension
yaml32% (128 lines)
ps138% (30 lines)
py<1% (18 lines)
Duplication per Component (primary)
conda/vs201792% (37 lines)
conda/vs201977% (31 lines)
windows/internal38% (30 lines)
conda/torchvision31% (20 lines)
conda/pytorch-nightly18% (20 lines)
ffmpeg/recipe27% (20 lines)
ROOT3% (18 lines)
packaging/windows0% (0 lines)
conda/nnpack0% (0 lines)
conda/nccl20% (0 lines)
conda/cpuonly0% (0 lines)
conda/pytorch-mutex0% (0 lines)
java0% (0 lines)
manywheel/build_scripts0% (0 lines)
s3_management0% (0 lines)
magma/package_files0% (0 lines)
windows0% (0 lines)
windows/templates0% (0 lines)
analytics0% (0 lines)

Duplication Between Components (50+ lines)

G conda/vs2017 conda/vs2017 conda/vs2019 conda/vs2019 conda/vs2017--conda/vs2019 62

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
20 x 2 conda/pytorch-nightly
conda/vs2017
1:24 (100%)
1:24 (100%)
view
20 x 2 conda/torchvision
conda/vs2017
1:24 (100%)
1:24 (100%)
view
20 x 2 conda/pytorch-nightly
conda/torchvision
1:24 (100%)
1:24 (100%)
view
17 x 2 conda/vs2017
conda/vs2019
4:24 (85%)
4:24 (85%)
view
14 x 2 conda/pytorch-nightly
conda/vs2019
7:24 (70%)
7:24 (70%)
view
14 x 2 conda/vs2017
conda/vs2019
7:24 (70%)
7:24 (70%)
view
14 x 2 conda/torchvision
conda/vs2019
7:24 (70%)
7:24 (70%)
view
10 x 2 ffmpeg/recipe
ffmpeg/recipe
31:40 (13%)
42:51 (13%)
view
9 x 2 windows/internal
windows/internal
2:10 (36%)
7:15 (17%)
view
6 x 2 ROOT
ROOT
293:298 (1%)
333:338 (1%)
view
6 x 2 ROOT
ROOT
293:298 (1%)
371:376 (1%)
view
6 x 2 windows/internal
windows/internal
20:26 (24%)
40:46 (11%)
view
6 x 2 ROOT
ROOT
333:338 (1%)
371:376 (1%)
view