tensorflow / tensor2tensor
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 338 files with 73,673 lines of code.
    • 6 very long files (11,300 lines of code)
    • 31 long files (20,304 lines of code)
    • 75 medium size files (23,038 lines of codeclsfd_ftr_w_mp_ins)
    • 84 small files (11,974 lines of code)
    • 142 very small files (7,057 lines of code)
15% | 27% | 31% | 16% | 9%
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
py16% | 27% | 31% | 16% | 8%
js0% | 34% | 32% | 18% | 14%
cc0% | 77% | 0% | 15% | 7%
html0% | 0% | 0% | 33% | 66%
proto0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tensor2tensor/layers58% | 12% | 24% | 3% | <1%
tensor2tensor/models12% | 40% | 34% | 8% | 3%
tensor2tensor/utils16% | 28% | 25% | 20% | 8%
tensor2tensor/data_generators0% | 19% | 33% | 28% | 17%
tensor2tensor/rl0% | 40% | 35% | 12% | 11%
tensor2tensor/insights0% | 22% | 8% | 34% | 35%
tensor2tensor/envs0% | 0% | 48% | 34% | 17%
tensor2tensor/visualization0% | 0% | 64% | 0% | 35%
tensor2tensor/serving0% | 0% | 0% | 77% | 22%
ROOT0% | 0% | 0% | 0% | 100%
tensor2tensor0% | 0% | 0% | 0% | 100%
tensor2tensor/metrics0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
common_attention.py
in tensor2tensor/layers
3314 126
common_layers.py
in tensor2tensor/layers
2320 172
transformer.py
in tensor2tensor/models
1978 129
t2t_model.py
in tensor2tensor/utils
1527 72
modalities.py
in tensor2tensor/layers
1088 70
autoencoders.py
in tensor2tensor/models/research
1073 63
discretization.py
in tensor2tensor/layers
951 29
mtf_transformer.py
in tensor2tensor/models
903 58
image_transformer.py
in tensor2tensor/models
835 82
transformer_vae_flow_prior.py
in tensor2tensor/models/research
826 67
transformer_vae.py
in tensor2tensor/models/research
826 35
text_problems.py
in tensor2tensor/data_generators
752 108
decoding.py
in tensor2tensor/utils
748 21
universal_transformer_util.py
in tensor2tensor/models/research
745 21
glow_ops.py
in tensor2tensor/models/research
713 42
image_transformer_2d.py
in tensor2tensor/models
692 51
trainer_lib.py
in tensor2tensor/utils
681 31
generator_utils.py
in tensor2tensor/data_generators
665 51
trainer_model_based_params.py
in tensor2tensor/rl
655 95
expert_utils.py
in tensor2tensor/utils
655 47
nas_model.py
in tensor2tensor/models/neural_architecture_search
644 26
rl.py
in tensor2tensor/models/research
625 55
rl_utils.py
in tensor2tensor/rl
609 49
mtf_transformer2.py
in tensor2tensor/models
607 64
gym_env.py
in tensor2tensor/data_generators
605 53
vqa_self_attention.py
in tensor2tensor/models/research
603 21
problem.py
in tensor2tensor/data_generators
593 50
evolved_transformer.py
in tensor2tensor/models
586 14
sv2p.py
in tensor2tensor/models/video
575 25
resnet.py
in tensor2tensor/models
542 32
graph-visualization.js
in tensor2tensor/insights/polymer/graph_visualization
536 23
common_image_attention.py
in tensor2tensor/layers
529 22
pack_sequences_ops.cc
in tensor2tensor/data_generators/ops
525 14
text_encoder.py
in tensor2tensor/data_generators
525 67
dopamine_connector.py
in tensor2tensor/rl
519 64
attention_lm_moe.py
in tensor2tensor/models/research
518 30
metrics.py
in tensor2tensor/utils
516 37
epva.py
in tensor2tensor/models/video
493 13
common_video.py
in tensor2tensor/layers
491 40
video_utils.py
in tensor2tensor/data_generators
487 49
mtf_image_transformer.py
in tensor2tensor/models
479 37
universal_transformer.py
in tensor2tensor/models/research
456 53
nas_layers.py
in tensor2tensor/models/neural_architecture_search
447 40
cifar.py
in tensor2tensor/data_generators
442 46
evaluator.py
in tensor2tensor/rl
433 25
latent_layers.py
in tensor2tensor/layers
416 19
ppo_learner.py
in tensor2tensor/rl
410 10
vqa_attention.py
in tensor2tensor/models/research
400 34
wikisum.py
in tensor2tensor/data_generators/wikisum
397 33
base.py
in tensor2tensor/models/video
394 25
Files With Most Units (Top 20)
File# lines# units
common_layers.py
in tensor2tensor/layers
2320 172
transformer.py
in tensor2tensor/models
1978 129
common_attention.py
in tensor2tensor/layers
3314 126
text_problems.py
in tensor2tensor/data_generators
752 108
trainer_model_based_params.py
in tensor2tensor/rl
655 95
image_transformer.py
in tensor2tensor/models
835 82
t2t_model.py
in tensor2tensor/utils
1527 72
modalities.py
in tensor2tensor/layers
1088 70
text_encoder.py
in tensor2tensor/data_generators
525 67
transformer_vae_flow_prior.py
in tensor2tensor/models/research
826 67
dopamine_connector.py
in tensor2tensor/rl
519 64
mtf_transformer2.py
in tensor2tensor/models
607 64
autoencoders.py
in tensor2tensor/models/research
1073 63
mtf_transformer.py
in tensor2tensor/models
903 58
rl.py
in tensor2tensor/models/research
625 55
imagenet.py
in tensor2tensor/data_generators
356 54
gym_env.py
in tensor2tensor/data_generators
605 53
algorithmic.py
in tensor2tensor/data_generators
278 53
universal_transformer.py
in tensor2tensor/models/research
456 53
generator_utils.py
in tensor2tensor/data_generators
665 51
Files With Long Lines (Top 4)

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

File# lines# units# long lines
language-selector-content.html
in tensor2tensor/insights/polymer/language_selector
40 - 2
translate_enet.py
in tensor2tensor/data_generators
44 4 1
translate_enes.py
in tensor2tensor/data_generators
79 11 1
neural_assistant.py
in tensor2tensor/models
333 15 1