facebookresearch / decodable_information_bottleneck
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
  • 12% duplication:
    • 8,313 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,052 duplicated lines
  • 442 duplicates
system12% (1,052 lines)
Duplication per Extension
yaml35% (725 lines)
py5% (327 lines)
Duplication per Component (primary)
conf/model62% (623 lines)
dib/transformers12% (104 lines)
conf/encoder28% (58 lines)
utils5% (54 lines)
utils/data6% (42 lines)
dib/utils3% (40 lines)
ROOT2% (32 lines)
dib/predefined3% (23 lines)
dib/training8% (18 lines)
conf6% (18 lines)
conf/datasize8% (14 lines)
utils/visualize6% (14 lines)
conf/clfs6% (12 lines)
dib0% (0 lines)
dib/classifiers0% (0 lines)
conf/dataset0% (0 lines)
conf/additional0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 442 duplicates...
Size#FoldersFilesLinesCode
16 x 2 dib/transformers/ib
dib/transformers/ib
dib.py
dib.py
734:754 (2%)
789:809 (2%)
view
14 x 2 conf/model
conf/model
simplevcdib.yaml
warm1.yaml
3:19 (82%)
3:19 (87%)
view
13 x 2 conf/model
conf/model
cdibbatchnormhigher.yaml
perminvcdib.yaml
3:17 (86%)
3:17 (86%)
view
13 x 2 conf/model
conf/model
cdibhigher01.yaml
vcdibhigher01.yaml
1:15 (100%)
1:15 (92%)
view
13 x 2 conf/model
conf/model
warm3.yaml
warm5.yaml
3:18 (81%)
3:18 (81%)
view
13 x 2 conf/model
conf/model
cdibbatchnormhigher01.yaml
perminvcdib01.yaml
3:17 (86%)
3:17 (86%)
view
13 x 2 conf/model
conf/model
simplevcdib.yaml
warm3.yaml
3:18 (76%)
3:18 (81%)
view
13 x 2 conf/model
conf/model
warm0.yaml
warm1.yaml
3:18 (81%)
3:18 (81%)
view
13 x 2 conf/model
conf/model
simplevcdib.yaml
warm0.yaml
3:18 (76%)
3:18 (81%)
view
13 x 2 conf/model
conf/model
warm0.yaml
warm3.yaml
3:18 (81%)
3:18 (81%)
view
13 x 2 conf/model
conf/model
warm1.yaml
warm5.yaml
3:18 (81%)
3:18 (81%)
view
13 x 2 conf/model
conf/model
simplevcdib.yaml
warm5.yaml
3:18 (76%)
3:18 (81%)
view
13 x 2 conf/model
conf/model
cdibsklearn1.yaml
cdibsklearn10.yaml
3:18 (86%)
3:18 (86%)
view
13 x 2 conf/model
conf/model
warm1.yaml
warm3.yaml
3:18 (81%)
3:18 (81%)
view
13 x 2 conf/model
conf/model
warm0.yaml
warm5.yaml
3:18 (81%)
3:18 (81%)
view
12 x 2 conf/model
conf/model
cdibXS.yaml
cdibbatchnorm.yaml
3:16 (85%)
3:16 (85%)
view
12 x 2 conf/model
conf/model
cdibbatchnorm.yaml
perminvcdib.yaml
3:16 (85%)
3:16 (80%)
view
12 x 2 conf/model
conf/model
cdibXL.yaml
cdibXS.yaml
3:16 (85%)
3:16 (85%)
view
12 x 2 conf/model
conf/model
cdib.yaml
cdibbatchnormhigher01.yaml
3:16 (85%)
3:16 (80%)
view
12 x 2 conf/model
conf/model
cdibXL.yaml
cdibbatchnormhigher.yaml
3:16 (85%)
3:16 (80%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
16 x 2 dib/training
dib/training
trainer.py
trainer.py
0:0 
0:0 
view