facebookresearch / unlikelihood_training
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 12 files with 1,379 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (367 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (683 lines of code)
    • 6 very small files (329 lines of code)
0% | 0% | 26% | 49% | 23%
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
py0% | 0% | 26% | 49% | 23%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
custom/gpt20% | 0% | 100% | 0% | 0%
custom0% | 0% | 0% | 67% | 32%
Longest Files (Top 12)
File# lines# units
run_gpt2.py
in custom/gpt2
367 12
metrics.py
in custom
150 8
report_metrics.py
in custom
149 8
evaluation.py
in custom
148 1
evaluate_utils.py
in custom
134 4
sequence_generator.py
in custom
102 7
candidate_penalty_ce_loss.py
in custom
83 3
sequence_penalty_loss.py
in custom
82 4
language_modeling_with_generation.py
in custom
77 8
baseline_cross_entropy.py
in custom
65 4
transformer_arch.py
in custom
16 1
__init__.py
in custom
6 -
Files With Most Units (Top 11)
File# lines# units
run_gpt2.py
in custom/gpt2
367 12
metrics.py
in custom
150 8
report_metrics.py
in custom
149 8
language_modeling_with_generation.py
in custom
77 8
sequence_generator.py
in custom
102 7
evaluate_utils.py
in custom
134 4
baseline_cross_entropy.py
in custom
65 4
sequence_penalty_loss.py
in custom
82 4
candidate_penalty_ce_loss.py
in custom
83 3
transformer_arch.py
in custom
16 1
evaluation.py
in custom
148 1
Files With Long Lines (Top 8)

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

File# lines# units# long lines
evaluation.py
in custom
148 1 8
metrics.py
in custom
150 8 7
report_metrics.py
in custom
149 8 5
run_gpt2.py
in custom/gpt2
367 12 5
evaluate_utils.py
in custom
134 4 2
sequence_generator.py
in custom
102 7 2
sequence_penalty_loss.py
in custom
82 4 1
language_modeling_with_generation.py
in custom
77 8 1