facebookresearch / dino
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 12 files with 2,724 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (557 lines of code)
    • 6 medium size files (1,497 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (498 lines of code)
    • 2 very small files (172 lines of code)
0% | 20% | 54% | 18% | 6%
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
py0% | 20% | 54% | 18% | 6%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 20% | 54% | 18% | 6%
Longest Files (Top 12)
File# lines# units
utils.py
in root
557 52
main_dino.py
in root
355 8
video_generation.py
in root
305 7
eval_linear.py
in root
214 5
vision_transformer.py
in root
213 24
eval_copy_detection.py
in root
209 10
eval_video_segmentation.py
in root
201 11
eval_knn.py
in root
190 4
visualize_attention.py
in root
158 3
eval_image_retrieval.py
in root
150 5
run_with_submitit.py
in root
86 8
hubconf.py
in root
86 9
Files With Most Units (Top 12)
File# lines# units
utils.py
in root
557 52
vision_transformer.py
in root
213 24
eval_video_segmentation.py
in root
201 11
eval_copy_detection.py
in root
209 10
hubconf.py
in root
86 9
run_with_submitit.py
in root
86 8
main_dino.py
in root
355 8
video_generation.py
in root
305 7
eval_image_retrieval.py
in root
150 5
eval_linear.py
in root
214 5
eval_knn.py
in root
190 4
visualize_attention.py
in root
158 3
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 25 long lines.

File# lines# units# long lines
eval_linear.py
in root
214 5 7
eval_image_retrieval.py
in root
150 5 5
visualize_attention.py
in root
158 3 4
eval_video_segmentation.py
in root
201 11 3
hubconf.py
in root
86 9 3
eval_copy_detection.py
in root
209 10 2
vision_transformer.py
in root
213 24 1