microsoft / DirectML
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 143 files with 25,177 lines of code.
    • 4 very long files (11,654 lines of code)
    • 3 long files (1,796 lines of code)
    • 17 medium size files (5,059 lines of codeclsfd_ftr_w_mp_ins)
    • 24 small files (3,165 lines of code)
    • 95 very small files (3,503 lines of code)
46% | 7% | 20% | 12% | 13%
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
h84% | 0% | 0% | 6% | 9%
cpp68% | 13% | 11% | 2% | 4%
py0% | 8% | 41% | 27% | 22%
ps10% | 0% | 100% | 0% | 0%
cmake0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
hlsl0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
DxDispatch/src72% | 0% | 12% | 3% | 11%
Python/src65% | 21% | 0% | 7% | 4%
Libraries100% | 0% | 0% | 0% | 0%
PyTorch/yolov30% | 17% | 58% | 14% | 9%
TensorFlow/squeezenet0% | 0% | 28% | 41% | 29%
TensorFlow/yolov30% | 0% | 36% | 28% | 35%
DxDispatch/tools0% | 0% | 100% | 0% | 0%
PyTorch/classification0% | 0% | 0% | 71% | 28%
Python0% | 0% | 0% | 98% | 1%
TensorFlow/VisionTransformer0% | 0% | 0% | 32% | 67%
DxDispatch/cmake0% | 0% | 0% | 0% | 100%
PyTorch/torchvision_classification0% | 0% | 0% | 0% | 100%
PyTorch/resnet500% | 0% | 0% | 0% | 100%
PyTorch/squeezenet0% | 0% | 0% | 0% | 100%
DxDispatch/models0% | 0% | 0% | 0% | 100%
PyTorch/data0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
JsonParsersGenerated.cpp
in DxDispatch/src/model
4295 202
d3dx12.h
in Python/src
3126 249
DirectMLX.h
in Libraries
3095 188
JsonParsers.cpp
in DxDispatch/src/model
1138 76
datasets.py
in PyTorch/yolov3/utils
753 43
module.cpp
in Python/src
536 1
device.cpp
in Python/src
507 13
general.py
in PyTorch/yolov3/utils
484 41
train.py
in PyTorch/yolov3
478 1
HlslDispatchable.cpp
in DxDispatch/src/dxdispatch
366 9
plots.py
in PyTorch/yolov3/utils
328 19
GenerateParsingHelpers.ps1
in DxDispatch/tools
308 -
model_deploy.py
in TensorFlow/squeezenet/src/models/research/slim/deployment
302 22
build_imagenet_data.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
295 20
Device.cpp
in DxDispatch/src/dxdispatch
293 12
common.py
in PyTorch/yolov3/models
287 43
test.py
in PyTorch/yolov3
274 1
wandb_utils.py
in PyTorch/yolov3/utils/wandb_logging
270 18
Executor.cpp
in DxDispatch/src/dxdispatch
268 6
models.py
in TensorFlow/yolov3/yolov3_tf2
239 13
yolo.py
in PyTorch/yolov3/models
237 15
train.py
in TensorFlow/yolov3
222 1
torch_utils.py
in PyTorch/yolov3/utils
205 22
inputs.py
in TensorFlow/squeezenet/src/squeezenet
203 13
DmlDispatchable.cpp
in DxDispatch/src/dxdispatch
196 4
util.h
in Python/src
185 11
train_squeezenet.py
in TensorFlow/squeezenet/src
171 5
typeconvert.h
in Python/src
161 8
download_and_convert_visualwakewords_lib.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
161 6
squeezenet.py
in TensorFlow/squeezenet/src/squeezenet/networks
152 13
loss.py
in PyTorch/yolov3/utils
146 10
detect.py
in PyTorch/yolov3
142 1
train_classification.py
in PyTorch/classification
136 3
metrics.py
in PyTorch/yolov3/utils
136 10
arg_parsing.py
in TensorFlow/squeezenet/src/squeezenet
136 3
utils.py
in TensorFlow/yolov3/yolov3_tf2
134 6
process_bounding_boxes.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
122 4
detect_video.py
in TensorFlow/yolov3
119 1
setup.py
in Python
112 5
generate_cifar_tfrecords.py
in TensorFlow/squeezenet/src
111 6
download_and_convert_mnist.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
111 7
export.py
in PyTorch/yolov3/models
109 -
model.py
in TensorFlow/VisionTransformer
106 10
download_and_convert_flowers.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
106 9
autoanchor.py
in PyTorch/yolov3/utils
104 3
detect.py
in TensorFlow/yolov3
104 1
Model.h
in DxDispatch/src/model
103 3
imagenet.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
102 2
download_and_convert_cifar10.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
99 5
experimental.py
in PyTorch/yolov3/models
98 13
Files With Most Units (Top 20)
File# lines# units
d3dx12.h
in Python/src
3126 249
JsonParsersGenerated.cpp
in DxDispatch/src/model
4295 202
DirectMLX.h
in Libraries
3095 188
JsonParsers.cpp
in DxDispatch/src/model
1138 76
common.py
in PyTorch/yolov3/models
287 43
datasets.py
in PyTorch/yolov3/utils
753 43
general.py
in PyTorch/yolov3/utils
484 41
torch_utils.py
in PyTorch/yolov3/utils
205 22
model_deploy.py
in TensorFlow/squeezenet/src/models/research/slim/deployment
302 22
build_imagenet_data.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
295 20
plots.py
in PyTorch/yolov3/utils
328 19
wandb_utils.py
in PyTorch/yolov3/utils/wandb_logging
270 18
yolo.py
in PyTorch/yolov3/models
237 15
experimental.py
in PyTorch/yolov3/models
98 13
device.cpp
in Python/src
507 13
dataset_utils.py
in TensorFlow/squeezenet/src/models/research/slim/datasets
91 13
inputs.py
in TensorFlow/squeezenet/src/squeezenet
203 13
squeezenet.py
in TensorFlow/squeezenet/src/squeezenet/networks
152 13
models.py
in TensorFlow/yolov3/yolov3_tf2
239 13
Device.cpp
in DxDispatch/src/dxdispatch
293 12
Files With Long Lines (Top 20)

There are 31 files with lines longer than 120 characters. In total, there are 1113 long lines.

File# lines# units# long lines
JsonParsersGenerated.cpp
in DxDispatch/src/model
4295 202 691
JsonParsers.cpp
in DxDispatch/src/model
1138 76 135
DirectMLX.h
in Libraries
3095 188 79
d3dx12.h
in Python/src
3126 249 70
JsonParsers.h
in DxDispatch/src/model
73 6 31
GenerateParsingHelpers.ps1
in DxDispatch/tools
308 - 24
module.cpp
in Python/src
536 1 19
device.cpp
in Python/src
507 13 15
HlslDispatchable.cpp
in DxDispatch/src/dxdispatch
366 9 7
Executor.cpp
in DxDispatch/src/dxdispatch
268 6 6
train_cifar10.py
in TensorFlow/VisionTransformer
78 2 4
train_cifar100.py
in TensorFlow/VisionTransformer
78 2 4
Model.cpp
in DxDispatch/src/model
79 - 3
device.h
in Python/src
76 1 3
util.cpp
in Python/src
41 2 3
DmlDispatchable.cpp
in DxDispatch/src/dxdispatch
196 4 2
Model.h
in DxDispatch/src/model
103 3 2
setup.py
in Python
112 5 2
cmake
directmlx.cmake
in DxDispatch/cmake
15 - 1
cmake
gtest.cmake
in DxDispatch/cmake
8 - 1