facebookresearch / pycls
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
  • 35% duplication:
    • 6,136 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,158 duplicated lines
  • 876 duplicates
system35% (2,158 lines)
Duplication per Extension
yaml83% (1,890 lines)
py6% (268 lines)
Duplication per Component (primary)
configs/archive99% (1,064 lines)
configs/dds_baselines71% (691 lines)
pycls/models17% (222 lines)
configs/sweeps60% (135 lines)
pycls/core3% (46 lines)
tools0% (0 lines)
ROOT0% (0 lines)
dev0% (0 lines)
pycls/datasets0% (0 lines)
pycls0% (0 lines)
pycls/sweep0% (0 lines)

Duplication Between Components (50+ lines)

G configs/archive configs/archive configs/dds_baselines configs/dds_baselines configs/archive--configs/dds_baselines 126

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 876 duplicates...
Size#FoldersFilesLinesCode
36 x 2 configs/sweeps/cifar
configs/sweeps/cifar
cifar_optim.yaml
cifar_regnet.yaml
33:70 (50%)
32:69 (50%)
view
33 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
X-101-32x4d_step_2gpu.yaml
X-50-32x4d_step_2gpu.yaml
4:36 (91%)
4:36 (91%)
view
33 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
X-101-32x4d_step_8gpu.yaml
X-50-32x4d_step_8gpu.yaml
4:36 (91%)
4:36 (91%)
view
33 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
R-101-1x64d_step_8gpu.yaml
R-50-1x64d_step_8gpu.yaml
4:36 (91%)
4:36 (91%)
view
33 x 2 configs/sweeps/cifar
configs/sweeps/cifar
cifar_best.yaml
cifar_regnet.yaml
37:70 (40%)
32:65 (45%)
view
33 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
R-101-1x64d_step_1gpu.yaml
R-50-1x64d_step_1gpu.yaml
4:36 (91%)
4:36 (91%)
view
33 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
R-101-1x64d_step_2gpu.yaml
R-50-1x64d_step_2gpu.yaml
4:36 (91%)
4:36 (91%)
view
33 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
X-101-32x4d_step_1gpu.yaml
X-50-32x4d_step_1gpu.yaml
4:36 (91%)
4:36 (91%)
view
33 x 2 configs/sweeps/cifar
configs/sweeps/cifar
cifar_best.yaml
cifar_optim.yaml
37:70 (40%)
33:66 (46%)
view
31 x 2 configs/archive/imagenet/anynet
configs/archive/imagenet/anynet
X-101-32x4d_step_2gpu.yaml
X-50-32x4d_step_2gpu.yaml
9:39 (79%)
9:39 (79%)
view
31 x 2 configs/archive/imagenet/anynet
configs/archive/imagenet/anynet
R-101-1x64d_step_8gpu.yaml
R-50-1x64d_step_8gpu.yaml
9:39 (79%)
9:39 (79%)
view
31 x 2 configs/archive/imagenet/anynet
configs/archive/imagenet/anynet
X-101-32x4d_step_8gpu.yaml
X-50-32x4d_step_8gpu.yaml
9:39 (79%)
9:39 (79%)
view
31 x 2 configs/archive/imagenet/anynet
configs/archive/imagenet/anynet
X-101-32x4d_step_1gpu.yaml
X-50-32x4d_step_1gpu.yaml
9:39 (79%)
9:39 (79%)
view
31 x 2 configs/archive/imagenet/anynet
configs/archive/imagenet/anynet
R-101-1x64d_step_2gpu.yaml
R-50-1x64d_step_2gpu.yaml
9:39 (79%)
9:39 (79%)
view
31 x 2 configs/archive/imagenet/anynet
configs/archive/imagenet/anynet
R-101-1x64d_step_1gpu.yaml
R-50-1x64d_step_1gpu.yaml
9:39 (79%)
9:39 (79%)
view
29 x 2 configs/archive/cifar/resnet
configs/archive/cifar/resnet
R-110_nds_1gpu.yaml
R-56_nds_1gpu.yaml
4:32 (90%)
4:32 (90%)
view
29 x 2 configs/archive/cifar/anynet
configs/archive/cifar/anynet
R-56_nds_1gpu.yaml
V-56_nds_1gpu.yaml
8:36 (80%)
8:36 (80%)
view
28 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
R-101-1x64d_step_1gpu.yaml
X-50-32x4d_step_1gpu.yaml
9:36 (77%)
9:36 (77%)
view
28 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
R-50-1x64d_step_8gpu.yaml
X-101-32x4d_step_8gpu.yaml
9:36 (77%)
9:36 (77%)
view
28 x 2 configs/archive/imagenet/resnet
configs/archive/imagenet/resnet
R-50-1x64d_step_1gpu.yaml
X-101-32x4d_step_1gpu.yaml
9:36 (77%)
9:36 (77%)
view