pytorch / hydra-torch
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:
    • 836 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 38 duplicated lines
  • 3 duplicates
system4% (38 lines)
Duplication per Extension
py5% (38 lines)
Duplication per Component (primary)
hydra-configs-torchvision/hydra_configs/torchvision/datasets33% (12 lines)
hydra-configs-torch/hydra_configs/torch/nn9% (12 lines)
hydra-configs-torchvision53% (7 lines)
hydra-configs-torch53% (7 lines)
hydra-configs-torchvision/hydra_configs/torchvision0% (0 lines)
hydra-configs-torchvision/hydra_configs/torchvision/transforms0% (0 lines)
ROOT0% (0 lines)
hydra-configs-torch/hydra_configs/torch/optim0% (0 lines)
hydra-configs-torch/hydra_configs/torch/utils0% (0 lines)
configen/conf/torch0% (0 lines)
configen/conf0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
7 x 2 hydra-configs-torch
hydra-configs-torchvision
setup.py
setup.py
11:17 (53%)
11:17 (53%)
view
6 x 2 hydra-configs-torchvisio...gs/torchvision/datasets
hydra-configs-torchvisio...gs/torchvision/datasets
mnist.py
mnist.py
17:24 (25%)
27:34 (25%)
view
6 x 2 hydra-configs-torch/hydra_configs/torch/nn/modules
hydra-configs-torch/hydra_configs/torch/nn/modules
loss.py
loss.py
124:131 (4%)
134:141 (4%)
view