tensorflow / lingvo
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 383 files with 102,541 lines of code.
    • 17 very long files (35,899 lines of code)
    • 32 long files (23,190 lines of code)
    • 82 medium size files (25,503 lines of codeclsfd_ftr_w_mp_ins)
    • 79 small files (10,971 lines of code)
    • 173 very small files (6,978 lines of code)
35% | 22% | 24% | 10% | 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
py36% | 23% | 24% | 9% | 5%
cc32% | 7% | 31% | 17% | 11%
bib0% | 100% | 0% | 0% | 0%
h0% | 0% | 22% | 37% | 40%
bzl0% | 0% | 58% | 41% | <1%
proto0% | 0% | 0% | 37% | 62%
Dockerfile0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lingvo/core51% | 25% | 14% | 5% | 3%
lingvo/core/ops34% | 7% | 22% | 17% | 17%
lingvo/tasks/car16% | 14% | 46% | 15% | 6%
lingvo/tasks/mt38% | 34% | 15% | 7% | 3%
lingvo/jax/layers30% | 13% | 32% | 16% | 7%
lingvo/jax17% | 36% | 29% | 13% | 2%
lingvo/tasks/asr33% | 0% | 43% | 15% | 7%
lingvo0% | 39% | 41% | 12% | 7%
lingvo/tasks/lm0% | 30% | 58% | 6% | 4%
ROOT0% | 100% | 0% | 0% | 0%
lingvo/jax/tasks0% | 0% | 69% | 29% | <1%
lingvo/tools0% | 0% | 26% | 15% | 58%
lingvo/tasks/image0% | 0% | 70% | 0% | 29%
lingvo/tasks/milan0% | 0% | 15% | 45% | 38%
lingvo/core/steps0% | 0% | 0% | 99% | <1%
docker0% | 0% | 0% | 99% | <1%
lingvo/tasks/punctuator0% | 0% | 0% | 38% | 61%
lingvo/jax/pip_package0% | 0% | 0% | 0% | 100%
pip_package0% | 0% | 0% | 0% | 100%
lingvo/tasks0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
batch_major_attention.py
in lingvo/core
4756 232
layers.py
in lingvo/core
4088 273
py_utils.py
in lingvo/core
3563 291
gshard_builder.py
in lingvo/core
2949 143
input_preprocessors.py
in lingvo/tasks/car
2158 186
decoder.py
in lingvo/tasks/mt
2006 69
attention.py
in lingvo/core
1945 74
transformers.py
in lingvo/jax/layers
1895 47
layers_with_attention.py
in lingvo/core
1882 79
rnn_cell.py
in lingvo/core
1839 142
gshard_layers.py
in lingvo/core
1697 66
beam_search_step_op_kernels.cc
in lingvo/core/ops
1369 28
x_ops.cc
in lingvo/core/ops
1207 2
optimizers.py
in lingvo/jax
1172 67
decoder.py
in lingvo/tasks/asr
1145 45
layers_with_gpipe.py
in lingvo/core
1119 69
base_input_generator.py
in lingvo/core
1109 71
input_generator.py
in lingvo/tasks/mt
986 35
base_model.py
in lingvo/core
962 80
builder_layers.py
in lingvo/core
953 93
runners.py
in lingvo
932 40
rnn_layers.py
in lingvo/core
892 68
recurrent.py
in lingvo/core
884 39
tpu_embedding_layers.py
in lingvo/core
875 62
conformer_layer.py
in lingvo/core
871 38
attentions.py
in lingvo/jax/layers
850 40
optimizer.py
in lingvo/core
823 76
layers.py
in lingvo/tasks/lm
811 51
encoder.py
in lingvo/tasks/mt
809 26
base_layer.py
in lingvo/jax
797 78
bib
publications.bib
in root
788 -
quant_utils.py
in lingvo/core
757 96
bn_layers.py
in lingvo/core
716 40
waymo_open_input_generator.py
in lingvo/tasks/car/waymo
708 37
hyperparams.py
in lingvo/core
668 51
program.py
in lingvo/core
668 25
datasource.py
in lingvo/core
648 60
trainer.py
in lingvo
632 26
builder_lib.py
in lingvo/tasks/car
626 68
schedule.py
in lingvo/core
622 68
model.py
in lingvo/jax
595 32
base_layer.py
in lingvo/core
568 64
pack_ops.cc
in lingvo/core/ops
557 18
eval.py
in lingvo/jax
554 15
starnet.py
in lingvo/tasks/car
554 22
conv_layers_with_time_padding.py
in lingvo/core
540 52
spectrum_augmenter.py
in lingvo/core
539 25
beam_search_helper.py
in lingvo/core
503 10
train.py
in lingvo/jax
502 7
record_yielder.cc
in lingvo/core/ops
496 21
Files With Most Units (Top 20)
File# lines# units
py_utils.py
in lingvo/core
3563 291
layers.py
in lingvo/core
4088 273
batch_major_attention.py
in lingvo/core
4756 232
input_preprocessors.py
in lingvo/tasks/car
2158 186
gshard_builder.py
in lingvo/core
2949 143
rnn_cell.py
in lingvo/core
1839 142
quant_utils.py
in lingvo/core
757 96
builder_layers.py
in lingvo/core
953 93
base_model.py
in lingvo/core
962 80
layers_with_attention.py
in lingvo/core
1882 79
base_layer.py
in lingvo/jax
797 78
optimizer.py
in lingvo/core
823 76
attention.py
in lingvo/core
1945 74
base_input_generator.py
in lingvo/core
1109 71
layers_with_gpipe.py
in lingvo/core
1119 69
decoder.py
in lingvo/tasks/mt
2006 69
schedule.py
in lingvo/core
622 68
rnn_layers.py
in lingvo/core
892 68
builder_lib.py
in lingvo/tasks/car
626 68
optimizers.py
in lingvo/jax
1172 67
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 48 long lines.

File# lines# units# long lines
bib
publications.bib
in root
788 - 40
build.Dockerfile
in pip_package
38 - 2
build.Dockerfile
in lingvo/jax/pip_package
44 - 2
x_ops.cc
in lingvo/core/ops
1207 2 2
lingvo.bzl
in lingvo
168 - 2