facebookresearch / fastMRI
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
  • 27% duplication:
    • 6,845 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,882 duplicated lines
  • 195 duplicates
system27% (1,882 lines)
Duplication per Extension
py27% (1,882 lines)
Duplication per Component (primary)
banding_removal/fastmri17% (612 lines)
fastmri_examples/unet90% (554 lines)
fastmri_examples/varnet90% (434 lines)
fastmri/pl_modules11% (75 lines)
fastmri/data9% (67 lines)
banding_removal/scripts72% (62 lines)
fastmri/models11% (32 lines)
fastmri11% (28 lines)
fastmri_examples/cs4% (9 lines)
fastmri_examples/zero_filled20% (9 lines)
fastmri_examples0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G fastmri_examples/unet fastmri_examples/unet fastmri_examples/varnet fastmri_examples/varnet fastmri_examples/unet--fastmri_examples/varnet 832

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 195 duplicates...
Size#FoldersFilesLinesCode
88 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
torchvision_resnet.py
unpooled_resnet.py
16:134 (58%)
16:134 (59%)
view
54 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
resnet_r1_prev.py
resnet_r1_simple.py
49:128 (72%)
35:114 (84%)
view
48 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/unet/unet_reproduce_20201111.py
unet_knee_mc_leaderboard.py
unet_knee_sc_leaderboard.py
19:91 (37%)
19:91 (37%)
view
46 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/unet/unet_reproduce_20201111.py
unet_brain_leaderboard.py
unet_knee_sc_leaderboard.py
19:87 (36%)
19:87 (36%)
view
46 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
torchvision_resnet.py
unpooled_resnet.py
136:190 (30%)
136:190 (30%)
view
46 x 2 fastmri_examples/varnet/varnet_reproduce_20201111
fastmri_examples/varnet/varnet_reproduce_20201111
varnet_brain_leaderboard.py
varnet_knee_leaderboard.py
19:87 (36%)
19:87 (36%)
view
46 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/unet/unet_reproduce_20201111.py
unet_brain_leaderboard.py
unet_knee_mc_leaderboard.py
19:87 (36%)
19:87 (36%)
view
45 x 2 fastmri_examples/varnet/varnet_reproduce_20201111
fastmri_examples/varnet/varnet_reproduce_20201111
varnet_brain_leaderboard.py
varnet_knee_leaderboard.py
132:195 (35%)
132:195 (35%)
view
45 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/unet/unet_reproduce_20201111.py
unet_brain_leaderboard.py
unet_knee_mc_leaderboard.py
130:193 (36%)
132:195 (35%)
view
38 x 2 fastmri_examples/unet
fastmri_examples/varnet
train_unet_demo.py
train_varnet_demo.py
136:190 (31%)
142:196 (29%)
view
37 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
resnet_r1.py
resnet_r1_simple.py
80:131 (48%)
63:114 (57%)
view
37 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
resnet_r1.py
resnet_r1_prev.py
80:131 (48%)
77:128 (50%)
view
36 x 2 fastmri_examples/unet
fastmri_examples/varnet
run_pretrained_unet_inference.py
run_pretrained_varnet_inference.py
128:165 (31%)
113:150 (36%)
view
36 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/varnet/varnet_reproduce_20201111
unet_brain_leaderboard.py
varnet_brain_leaderboard.py
94:133 (28%)
96:135 (28%)
view
33 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/varnet/varnet_reproduce_20201111
unet_knee_mc_leaderboard.py
varnet_knee_leaderboard.py
146:195 (25%)
146:195 (25%)
view
33 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/varnet/varnet_reproduce_20201111
unet_brain_leaderboard.py
varnet_knee_leaderboard.py
144:193 (26%)
146:195 (25%)
view
33 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/varnet/varnet_reproduce_20201111
unet_brain_leaderboard.py
varnet_brain_leaderboard.py
144:193 (26%)
146:195 (25%)
view
33 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/varnet/varnet_reproduce_20201111
unet_knee_mc_leaderboard.py
varnet_brain_leaderboard.py
146:195 (25%)
146:195 (25%)
view
32 x 2 fastmri_examples/varnet/varnet_reproduce_20201111
fastmri_examples/varnet/varnet_reproduce_20201111
varnet_brain_leaderboard.py
varnet_knee_leaderboard.py
93:130 (25%)
93:130 (25%)
view
31 x 2 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/varnet/varnet_reproduce_20201111
unet_brain_leaderboard.py
varnet_knee_leaderboard.py
94:128 (24%)
96:130 (24%)
view
Duplicated Units
The list of top 10 duplicated units.
See data for all 10 unit duplicates...
Size#FoldersFilesLinesCode
54 x 3 fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/unet/unet_reproduce_20201111.py
fastmri_examples/unet/unet_reproduce_20201111.py
unet_brain_leaderboard.py
unet_knee_mc_leaderboard.py
unet_knee_sc_leaderboard.py
0:0 
0:0 
0:0 
view
54 x 2 fastmri_examples/varnet/varnet_reproduce_20201111
fastmri_examples/varnet/varnet_reproduce_20201111
varnet_brain_leaderboard.py
varnet_knee_leaderboard.py
0:0 
0:0 
view
20 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
torchvision_resnet.py
unpooled_resnet.py
0:0 
0:0 
view
19 x 3 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
resnet_r1.py
resnet_r1_prev.py
resnet_r1_simple.py
0:0 
0:0 
0:0 
view
16 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
torchvision_resnet.py
unpooled_resnet.py
0:0 
0:0 
view
15 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
torchvision_resnet.py
unpooled_resnet.py
0:0 
0:0 
view
14 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
torchvision_resnet.py
unpooled_resnet.py
0:0 
0:0 
view
11 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
torchvision_resnet.py
unpooled_resnet.py
0:0 
0:0 
view
10 x 2 banding_removal/fastmri/model/classifiers
banding_removal/fastmri/model/classifiers
resnet_r1_prev.py
resnet_r1_simple.py
0:0 
0:0 
view
8 x 2 fastmri
fastmri/data
math.py
transforms.py
0:0 
0:0 
view