facebookresearch / XLM
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 53 files with 8,421 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,226 lines of code)
    • 13 medium size files (4,031 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (2,216 lines of code)
    • 24 very small files (948 lines of code)
0% | 14% | 47% | 26% | 11%
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% | 15% | 49% | 23% | 11%
perl0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
xlm0% | 55% | 0% | 32% | 12%
src0% | 55% | 0% | 32% | 12%
xlm/model0% | 0% | 62% | 21% | 16%
src/model0% | 0% | 62% | 21% | 16%
xlm/evaluation0% | 0% | 65% | 34% | <1%
src/evaluation0% | 0% | 65% | 34% | <1%
xlm/data0% | 0% | 73% | 25% | <1%
src/data0% | 0% | 73% | 25% | <1%
ROOT0% | 0% | 54% | 0% | 45%
tools0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
trainer.py
in xlm
613 28
trainer.py
in src
613 28
memory.py
in xlm/model/memory
446 19
memory.py
in src/model/memory
446 19
transformer.py
in xlm/model
440 22
transformer.py
in src/model
440 22
evaluator.py
in xlm/evaluation
348 16
evaluator.py
in src/evaluation
348 16
dataset.py
in xlm/data
237 21
dataset.py
in src/data
237 21
loader.py
in xlm/data
224 7
loader.py
in src/data
224 7
train.py
in root
221 2
glue.py
in xlm/evaluation
210 6
glue.py
in src/evaluation
210 6
query.py
in xlm/model/memory
186 13
query.py
in src/model/memory
186 13
utils.py
in xlm
181 14
utils.py
in src
181 14
optim.py
in xlm
173 10
optim.py
in src
173 10
dictionary.py
in xlm/data
161 11
dictionary.py
in src/data
161 11
xnli.py
in xlm/evaluation
151 6
xnli.py
in src/evaluation
151 6
multi-bleu.perl
in xlm/evaluation
139 2
multi-bleu.perl
in src/evaluation
139 2
__init__.py
in xlm/model
117 3
__init__.py
in src/model
117 3
utils.py
in xlm/model/memory
97 8
utils.py
in src/model/memory
97 8
slurm.py
in xlm
96 4
slurm.py
in src
96 4
glue-xnli.py
in root
75 -
translate.py
in root
74 2
embedder.py
in xlm/model
74 7
embedder.py
in src/model
74 7
pretrain.py
in xlm/model
57 4
pretrain.py
in src/model
57 4
logger.py
in xlm
38 3
logger.py
in src
38 3
preprocess.py
in root
28 -
lowercase_and_remove_accent.py
in tools
25 2
setup.py
in root
9 -
segment_th.py
in tools
5 -
__init__.py
in xlm
1 -
__init__.py
in xlm/model/memory
1 -
__init__.py
in xlm/evaluation
1 -
__init__.py
in xlm/data
1 -
__init__.py
in src
1 -
Files With Most Units (Top 20)
File# lines# units
trainer.py
in xlm
613 28
trainer.py
in src
613 28
transformer.py
in xlm/model
440 22
transformer.py
in src/model
440 22
dataset.py
in xlm/data
237 21
dataset.py
in src/data
237 21
memory.py
in xlm/model/memory
446 19
memory.py
in src/model/memory
446 19
evaluator.py
in xlm/evaluation
348 16
evaluator.py
in src/evaluation
348 16
utils.py
in xlm
181 14
utils.py
in src
181 14
query.py
in xlm/model/memory
186 13
query.py
in src/model/memory
186 13
dictionary.py
in xlm/data
161 11
dictionary.py
in src/data
161 11
optim.py
in xlm
173 10
optim.py
in src
173 10
utils.py
in xlm/model/memory
97 8
utils.py
in src/model/memory
97 8
Files With Long Lines (Top 20)

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

File# lines# units# long lines
evaluator.py
in xlm/evaluation
348 16 7
trainer.py
in xlm
613 28 7
evaluator.py
in src/evaluation
348 16 7
trainer.py
in src
613 28 7
__init__.py
in xlm/model
117 3 6
__init__.py
in src/model
117 3 6
memory.py
in xlm/model/memory
446 19 5
transformer.py
in xlm/model
440 22 5
glue.py
in xlm/evaluation
210 6 5
loader.py
in xlm/data
224 7 5
train.py
in root
221 2 5
memory.py
in src/model/memory
446 19 5
transformer.py
in src/model
440 22 5
glue.py
in src/evaluation
210 6 5
loader.py
in src/data
224 7 5
query.py
in xlm/model/memory
186 13 3
query.py
in src/model/memory
186 13 3
utils.py
in xlm
181 14 2
xnli.py
in xlm/evaluation
151 6 2
utils.py
in src
181 14 2