pytorch / translate
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 103 files with 21,035 lines of code.
    • 2 very long files (2,801 lines of code)
    • 10 long files (6,639 lines of code)
    • 19 medium size files (6,176 lines of codeclsfd_ftr_w_mp_ins)
    • 25 small files (3,798 lines of code)
    • 47 very small files (1,621 lines of code)
13% | 31% | 29% | 18% | 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
py13% | 31% | 29% | 18% | 7%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pytorch_translate20% | 39% | 26% | 10% | 2%
pytorch_translate/tasks0% | 38% | 30% | 17% | 13%
pytorch_translate/research0% | 20% | 25% | 37% | 16%
pytorch_translate/data0% | 0% | 58% | 14% | 26%
pytorch_translate/dual_learning0% | 0% | 52% | 47% | <1%
pytorch_translate/rescoring0% | 0% | 48% | 51% | 0%
pytorch_translate/word_prediction0% | 0% | 0% | 77% | 22%
pytorch_translate/attention0% | 0% | 0% | 0% | 100%
pytorch_translate/models0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ensemble_export.py
in pytorch_translate
1526 41
rnn.py
in pytorch_translate
1275 38
options.py
in pytorch_translate
786 10
transformer.py
in pytorch_translate
755 29
beam_decode.py
in pytorch_translate
736 25
transformer_aan.py
in pytorch_translate
725 25
multi_model.py
in pytorch_translate
672 40
generate.py
in pytorch_translate
655 10
pytorch_translate_task.py
in pytorch_translate/tasks
640 25
train.py
in pytorch_translate
614 22
deliberation_networks.py
in pytorch_translate/research/deliberation_networks
555 21
preprocess.py
in pytorch_translate
501 13
beam_search_and_decode_v2.py
in pytorch_translate
493 8
common_layers.py
in pytorch_translate
446 29
multisource_decode.py
in pytorch_translate/research/multisource
444 11
hybrid_transformer_rnn.py
in pytorch_translate
442 22
char_data.py
in pytorch_translate/data
408 24
dual_learning_task.py
in pytorch_translate/dual_learning
386 17
char_encoder.py
in pytorch_translate
355 14
char_source_model.py
in pytorch_translate
344 16
rescorer.py
in pytorch_translate/rescoring
298 12
char_source_transformer_model.py
in pytorch_translate
291 13
checkpoint.py
in pytorch_translate
290 17
semi_supervised_task.py
in pytorch_translate/tasks
285 9
char_source_hybrid.py
in pytorch_translate
281 15
evals.py
in pytorch_translate
260 8
char_aware_hybrid.py
in pytorch_translate
252 13
data.py
in pytorch_translate/data
236 18
rescoring_criterion.py
in pytorch_translate/research/rescore
227 6
denoising_autoencoder_task.py
in pytorch_translate/tasks
226 4
vocab_reduction.py
in pytorch_translate
212 6
model_scorers.py
in pytorch_translate/rescoring
200 13
dual_learning_criterion.py
in pytorch_translate/dual_learning
192 6
multilingual.py
in pytorch_translate
186 11
competing_completed.py
in pytorch_translate/research/beam_search
182 8
average_attention.py
in pytorch_translate
182 14
utils.py
in pytorch_translate
180 20
bleu_significance.py
in pytorch_translate
176 5
benchmark.py
in pytorch_translate
171 4
multilingual_task.py
in pytorch_translate/tasks
164 4
dual_learning_models.py
in pytorch_translate/dual_learning
163 6
collect_top_k_probs.py
in pytorch_translate/research/knowledge_distillation
161 4
dictionary.py
in pytorch_translate/data
161 12
semi_supervised.py
in pytorch_translate
157 4
sequence_criterions.py
in pytorch_translate
151 8
teacher_score_data.py
in pytorch_translate/research/knowledge_distillation
142 4
dual_decoder_kd_model.py
in pytorch_translate/research/knowledge_distillation
140 8
multilingual_model.py
in pytorch_translate
138 4
hybrid_dual_decoder_kd_model.py
in pytorch_translate/research/knowledge_distillation
134 8
ngram.py
in pytorch_translate
125 3
Files With Most Units (Top 20)
File# lines# units
ensemble_export.py
in pytorch_translate
1526 41
multi_model.py
in pytorch_translate
672 40
rnn.py
in pytorch_translate
1275 38
common_layers.py
in pytorch_translate
446 29
transformer.py
in pytorch_translate
755 29
transformer_aan.py
in pytorch_translate
725 25
beam_decode.py
in pytorch_translate
736 25
pytorch_translate_task.py
in pytorch_translate/tasks
640 25
char_data.py
in pytorch_translate/data
408 24
hybrid_transformer_rnn.py
in pytorch_translate
442 22
train.py
in pytorch_translate
614 22
deliberation_networks.py
in pytorch_translate/research/deliberation_networks
555 21
utils.py
in pytorch_translate
180 20
data.py
in pytorch_translate/data
236 18
checkpoint.py
in pytorch_translate
290 17
dual_learning_task.py
in pytorch_translate/dual_learning
386 17
char_source_model.py
in pytorch_translate
344 16
char_source_hybrid.py
in pytorch_translate
281 15
average_attention.py
in pytorch_translate
182 14
char_encoder.py
in pytorch_translate
355 14
Files With Long Lines (Top 0)

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

File# lines# units# long lines