facebookresearch / DomainBed
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 20 files with 3,629 lines of code.
    • 1 very long files (1,102 lines of code)
    • 1 long files (586 lines of code)
    • 2 medium size files (473 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,130 lines of code)
    • 8 very small files (338 lines of code)
30% | 16% | 13% | 31% | 9%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py36% | 0% | 15% | 37% | 11%
tex0% | 100% | 0% | 0% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
domainbed61% | 0% | 14% | 15% | 7%
domainbed/results/2020_10_06_7df6f060% | 100% | 0% | 0% | 0%
domainbed/scripts0% | 0% | 25% | 69% | 5%
domainbed/lib0% | 0% | 0% | 64% | 35%
Longest Files (Top 20)
File# lines# units
algorithms.py
in domainbed
1102 80
tex
results.tex
in domainbed/results/2020_10_06_7df6f06
586 -
datasets.py
in domainbed
265 26
train.py
in domainbed/scripts
208 1
sweep.py
in domainbed/scripts
166 7
networks.py
in domainbed
164 18
misc.py
in domainbed/lib
161 24
collect_results.py
in domainbed/scripts
146 3
download.py
in domainbed/scripts
134 9
query.py
in domainbed/lib
126 28
list_top_hparams.py
in domainbed/scripts
119 1
hparams_registry.py
in domainbed
114 4
model_selection.py
in domainbed
100 10
wide_resnet.py
in domainbed/lib
76 7
fast_data_loader.py
in domainbed/lib
53 8
save_images.py
in domainbed/scripts
42 -
command_launchers.py
in domainbed
36 3
reporting.py
in domainbed/lib
29 2
__init__.py
in domainbed
1 -
__init__.py
in domainbed/scripts
1 -
Files With Most Units (Top 16)
File# lines# units
algorithms.py
in domainbed
1102 80
query.py
in domainbed/lib
126 28
datasets.py
in domainbed
265 26
misc.py
in domainbed/lib
161 24
networks.py
in domainbed
164 18
model_selection.py
in domainbed
100 10
download.py
in domainbed/scripts
134 9
fast_data_loader.py
in domainbed/lib
53 8
sweep.py
in domainbed/scripts
166 7
wide_resnet.py
in domainbed/lib
76 7
hparams_registry.py
in domainbed
114 4
collect_results.py
in domainbed/scripts
146 3
command_launchers.py
in domainbed
36 3
reporting.py
in domainbed/lib
29 2
train.py
in domainbed/scripts
208 1
list_top_hparams.py
in domainbed/scripts
119 1
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 316 long lines.

File# lines# units# long lines
tex
results.tex
in domainbed/results/2020_10_06_7df6f06
586 - 315
algorithms.py
in domainbed
1102 80 1