apple / ml-cvnets
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 160 files with 10,904 lines of code.
    • 1 very long files (1,005 lines of code)
    • 0 long files (0 lines of code)
    • 7 medium size files (1,847 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,016 lines of code)
    • 129 very small files (5,036 lines of code)
9% | 0% | 16% | 27% | 46%
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
py10% | 0% | 18% | 27% | 43%
yaml0% | 0% | 0% | 31% | 68%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
data46% | 0% | 20% | 11% | 21%
engine0% | 0% | 82% | 0% | 17%
cvnets0% | 0% | 11% | 38% | 49%
config0% | 0% | 0% | 31% | 68%
utils0% | 0% | 0% | 35% | 64%
ROOT0% | 0% | 0% | 45% | 54%
loss_fn0% | 0% | 0% | 19% | 80%
optim0% | 0% | 0% | 24% | 75%
options0% | 0% | 0% | 69% | 30%
metrics0% | 0% | 0% | 50% | 49%
common0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
image.py
in data/transforms
1005 100
eval_segmentation.py
in engine
326 11
training_engine.py
in engine
309 5
ssd.py
in cvnets/models/detection
282 9
eval_detection.py
in engine
259 5
variable_batch_sampler.py
in data/sampler
231 9
coco.py
in data/datasets/detection
222 16
conv_layer.py
in cvnets/layers
218 14
mobilevit.py
in cvnets/models/classification/config
198 1
mobilevit.py
in cvnets/models/classification
177 5
checkpoint_utils.py
in utils
174 8
main_train.py
in root
173 3
mobilevit_block.py
in cvnets/modules
165 6
base_cls.py
in cvnets/models/classification
153 12
linear_layer.py
in cvnets/layers
137 14
vanilla.py
in loss_fn/distillation_loss_fns
134 9
mobilenetv2.py
in cvnets/models/classification
128 3
aspp_block.py
in cvnets/modules
123 12
pascal_voc.py
in data/datasets/segmentation
123 8
cyclic.py
in optim/scheduler
121 5
__init__.py
in data/datasets
116 7
mobilenetv2.py
in cvnets/modules
114 8
resnet.py
in cvnets/modules
113 8
resnet.py
in cvnets/models/classification/config
111 1
__init__.py
in cvnets/models/segmentation
111 4
opts.py
in options
110 7
deeplabv3_mobilevit_small.yaml
in config/segmentation
109 -
deeplabv3_mobilevit_x_small.yaml
in config/segmentation
109 -
deeplabv3_mobilevit_xx_small.yaml
in config/segmentation
109 -
stats.py
in metrics
107 6
resnet.py
in cvnets/models/classification
101 3
main_eval.py
in root
100 5
ssd_mobilevit_small_320.yaml
in config/detection
93 -
ssd_mobilevit_x_small_320.yaml
in config/detection
93 -
ssd_mobilevit_xx_small_320.yaml
in config/detection
93 -
__init__.py
in cvnets/models/classification
91 4
mobilevit_small.yaml
in config/classification
90 -
mobilevit_x_small.yaml
in config/classification
90 -
mobilevit_xx_small.yaml
in config/classification
90 -
deeplabv3.py
in cvnets/models/segmentation/heads
90 4
normalization_layers.py
in cvnets/layers
87 6
mobilenetv2.yaml
in config/classification
85 -
base_detection.py
in cvnets/models/detection
83 7
resnet.yaml
in config/classification
82 -
multi_head_attention.py
in cvnets/layers
82 5
__init__.py
in cvnets/models/detection
81 4
ssd_multibox_loss.py
in loss_fn/detection_loss_fns
80 5
init_utils.py
in cvnets/misc
75 5
batch_sampler.py
in data/sampler
75 7
ssd.py
in cvnets/modules
74 5
Files With Most Units (Top 20)
File# lines# units
image.py
in data/transforms
1005 100
coco.py
in data/datasets/detection
222 16
conv_layer.py
in cvnets/layers
218 14
linear_layer.py
in cvnets/layers
137 14
base_sampler.py
in data/sampler
68 14
base_cls.py
in cvnets/models/classification
153 12
aspp_block.py
in cvnets/modules
123 12
eval_segmentation.py
in engine
326 11
logger.py
in utils
45 10
ssd.py
in cvnets/models/detection
282 9
dataset_base.py
in data/datasets
68 9
variable_batch_sampler.py
in data/sampler
231 9
vanilla.py
in loss_fn/distillation_loss_fns
134 9
mobilenetv2.py
in cvnets/modules
114 8
resnet.py
in cvnets/modules
113 8
pascal_voc.py
in data/datasets/segmentation
123 8
checkpoint_utils.py
in utils
174 8
base_detection.py
in cvnets/models/detection
83 7
base_seg_head.py
in cvnets/models/segmentation/heads
71 7
__init__.py
in data/datasets
116 7
Files With Long Lines (Top 20)

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

File# lines# units# long lines
vanilla.py
in loss_fn/distillation_loss_fns
134 9 5
opts.py
in options
110 7 3
base_cls.py
in cvnets/models/classification
153 12 2
mobilevit_block.py
in cvnets/modules
165 6 2
cross_entropy.py
in loss_fn/segmentation_loss_fns
63 5 2
cosine.py
in optim/scheduler
47 4 2
polynomial.py
in optim/scheduler
46 4 2
pooling.py
in cvnets/layers
30 6 1
anchor_generator.py
in cvnets/misc
71 6 1
init_utils.py
in cvnets/misc
75 5 1
__init__.py
in cvnets/models/classification
91 4 1
mobilevit.py
in cvnets/models/classification
177 5 1
ssd.py
in cvnets/models/detection
282 9 1
__init__.py
in cvnets/models/segmentation
111 4 1
enc_dec.py
in cvnets/models/segmentation
62 4 1
aspp_block.py
in cvnets/modules
123 12 1
transformer.py
in cvnets/modules
47 4 1
image.py
in data/transforms
1005 100 1
eval_detection.py
in engine
259 5 1
eval_segmentation.py
in engine
326 11 1