facebookresearch / FiD
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 14 files with 1,722 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (260 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,199 lines of code)
    • 5 very small files (263 lines of code)
0% | 0% | 15% | 69% | 15%
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% | 15% | 69% | 15%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 24% | 63% | 12%
ROOT0% | 0% | 0% | 80% | 19%
Longest Files (Top 14)
File# lines# units
model.py
in src
260 22
train_retriever.py
in root
196 2
util.py
in src
190 17
data.py
in src
179 17
train_reader.py
in root
173 2
passage_retrieval.py
in root
151 7
options.py
in src
104 9
preprocess.py
in src
104 2
evaluation.py
in src
102 12
slurm.py
in src
84 4
generate_passage_embeddings.py
in root
77 2
index.py
in src
54 6
evaluate_retrieved_passages.py
in root
28 2
setup.py
in root
20 -
Files With Most Units (Top 13)
File# lines# units
model.py
in src
260 22
util.py
in src
190 17
data.py
in src
179 17
evaluation.py
in src
102 12
options.py
in src
104 9
passage_retrieval.py
in root
151 7
index.py
in src
54 6
slurm.py
in src
84 4
generate_passage_embeddings.py
in root
77 2
evaluate_retrieved_passages.py
in root
28 2
train_retriever.py
in root
196 2
train_reader.py
in root
173 2
preprocess.py
in src
104 2
Files With Long Lines (Top 5)

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

File# lines# units# long lines
generate_passage_embeddings.py
in root
77 2 2
train_retriever.py
in root
196 2 2
util.py
in src
190 17 2
passage_retrieval.py
in root
151 7 1
index.py
in src
54 6 1