facebookresearch / DLRM-FlexFlow
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 194 files with 44,759 lines of code.
    • 9 very long files (12,960 lines of code)
    • 16 long files (10,873 lines of code)
    • 44 medium size files (15,228 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,304 lines of code)
    • 108 very small files (3,394 lines of code)
28% | 24% | 34% | 5% | 7%
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
cc64% | 18% | 11% | 3% | 2%
cu11% | 45% | 40% | 2% | 0%
py19% | 0% | 49% | 9% | 21%
h35% | 13% | 29% | 10% | 10%
cmake0% | 0% | 0% | 0% | 100%
inc0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src28% | 35% | 34% | 2% | <1%
python30% | 16% | 29% | 10% | 13%
include55% | 0% | 21% | 8% | 14%
scripts72% | 0% | 27% | 0% | 0%
flexflow19% | 0% | 50% | 9% | 19%
nmt0% | 54% | 38% | 3% | 3%
cmake0% | 0% | 0% | 0% | 100%
bootcamp_demo0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
conda0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cc
model.cc
in src/runtime
2768 63
model.h
in include
1734 22
cc
flexflow_c.cc
in python
1720 5
cc
simulator.cc
in scripts
1314 59
cc
mapper.cc
in src/mapper
1305 66
cu
linear.cu
in src/ops
1065 -
flexflow_cffi.py
in python/flexflow/core
1026 172
flexflow_cffi.py
in flexflow/core
1026 172
cu
conv_2d.cu
in src/ops
1002 -
cu
fused.cu
in src/ops
973 -
cu
element_binary.cu
in src/ops
840 -
cc
flexflow_dataloader.cc
in python
810 19
cc
machine_model.cc
in src/runtime
748 22
cu
attention.cu
in src/ops
723 -
cu
element_unary.cu
in src/ops
713 -
cu
topk.cu
in src/ops
688 -
cu
rnn.cu
in nmt
680 -
flexflow_c.h
in python
674 -
cu
batch_norm.cu
in src/ops
648 -
cu
batch_matmul.cu
in src/ops
633 -
cu
aggregate.cu
in src/ops
574 -
cu
aggregate_spec.cu
in src/ops
565 -
cu
lstm.cu
in nmt
554 -
cc
simulator.cc
in src/runtime
534 11
cu
linear.cu
in nmt
516 -
cnn.h
in scripts
493 10
cu
concat.cu
in src/ops
478 -
cu
pool_2d.cu
in src/ops
472 -
cu
model.cu
in src/runtime
444 -
cu
group_by.cu
in src/ops
437 -
cu
embedding.cu
in src/ops
424 -
cu
softmax.cu
in src/ops
424 -
fx.py
in python/flexflow/torch
420 43
fx.py
in flexflow/torch
420 43
cu
transpose.cu
in src/ops
415 -
cc
embedding.cc
in src/ops
411 6
base_model.py
in python/flexflow/keras/models
398 23
base_model.py
in flexflow/keras/models
398 23
cu
dropout.cu
in src/ops
386 -
cu
cache.cu
in src/ops
364 -
cu
softmax_data_parallel.cu
in nmt
361 -
data_utils.py
in python/flexflow/keras/utils
359 31
data_utils.py
in flexflow/keras/utils
359 31
model.py
in python/flexflow/keras_exp/models
351 16
model.py
in flexflow/keras_exp/models
351 16
cu
embed.cu
in nmt
349 -
mapper.h
in include
347 1
cu
optimizer_kernel.cu
in src/runtime
342 -
simulator.h
in include
339 7
generic_utils.py
in python/flexflow/keras/utils
335 21
Files With Most Units (Top 20)
File# lines# units
flexflow_cffi.py
in python/flexflow/core
1026 172
flexflow_cffi.py
in flexflow/core
1026 172
cc
mapper.cc
in src/mapper
1305 66
cc
model.cc
in src/runtime
2768 63
cc
simulator.cc
in scripts
1314 59
core.py
in python/flexflow/keras/layers
227 44
core.py
in flexflow/keras/layers
227 44
fx.py
in python/flexflow/torch
420 43
fx.py
in flexflow/torch
420 43
model.py
in python/flexflow/onnx
292 32
model.py
in flexflow/onnx
292 32
data_utils.py
in python/flexflow/keras/utils
359 31
data_utils.py
in flexflow/keras/utils
359 31
base_model.py
in python/flexflow/keras/models
398 23
base_model.py
in flexflow/keras/models
398 23
model.h
in include
1734 22
cc
machine_model.cc
in src/runtime
748 22
generic_utils.py
in python/flexflow/keras/utils
335 21
generic_utils.py
in flexflow/keras/utils
335 21
cc
flexflow_dataloader.cc
in python
810 19
Files With Long Lines (Top 20)

There are 60 files with lines longer than 120 characters. In total, there are 275 long lines.

File# lines# units# long lines
cc
machine_model.cc
in src/runtime
748 22 19
flexflow_cffi.py
in python/flexflow/core
1026 172 18
flexflow_cffi.py
in flexflow/core
1026 172 18
cc
flexflow_c.cc
in python
1720 5 17
cc
model.cc
in src/runtime
2768 63 15
model.py
in python/flexflow/keras_exp/models
351 16 13
model.py
in flexflow/keras_exp/models
351 16 13
cc
flexflow_dataloader.cc
in python
810 19 11
model.py
in python/flexflow/onnx
292 32 10
model.py
in flexflow/onnx
292 32 10
base_model.py
in python/flexflow/keras/models
398 23 9
base_model.py
in flexflow/keras/models
398 23 9
cc
bindings.cc
in python
193 3 8
core.py
in python/flexflow/keras/layers
227 44 8
core.py
in flexflow/keras/layers
227 44 8
cnn.h
in scripts
493 10 6
pool.py
in python/flexflow/keras/layers
86 9 4
pool.py
in flexflow/keras/layers
86 9 4
cu
embedding.cu
in src/ops
424 - 4
cu
flexflow_dataloader.cu
in python
144 - 3