microsoft / lain
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 29 files with 5,848 lines of code.
    • 0 very long files (0 lines of code)
    • 4 long files (2,517 lines of code)
    • 6 medium size files (2,077 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (691 lines of code)
    • 14 very small files (563 lines of code)
0% | 43% | 35% | 11% | 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
rs0% | 43% | 35% | 11% | 8%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lain/src0% | 51% | 25% | 12% | 9%
testsuite/src0% | 100% | 0% | 0% | 0%
lain_derive/src0% | 30% | 58% | 9% | 1%
lain_derive/src/internals0% | 0% | 61% | 29% | 9%
testsuite/benches0% | 0% | 0% | 0% | 100%
lain0% | 0% | 0% | 0% | 100%
testsuite0% | 0% | 0% | 0% | 100%
lain_derive0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 29)
File# lines# units
lib.rs
in testsuite/src
760 37
new_fuzzed.rs
in lain/src
684 13
mutatable.rs
in lain/src
558 19
serialize.rs
in lain_derive/src
515 19
mutations.rs
in lain_derive/src
489 20
attr.rs
in lain_derive/src/internals
469 13
buffer.rs
in lain/src
361 41
new_fuzzed_old.rs
in lain_derive/src
269 3
mutator.rs
in lain/src
262 4
fuzzerobject.rs
in lain_derive/src
227 2
driver.rs
in lain/src
190 1
lib.rs
in lain_derive/src
153 3
utils.rs
in lain_derive/src/internals
126 -
types.rs
in lain/src
121 3
ast.rs
in lain_derive/src/internals
101 2
benchmark_generating_fuzzed_struct.rs
in testsuite/benches
93 3
benchmark_serialization_throughput.rs
in testsuite/benches
78 1
dangerous_numbers.rs
in lain/src
75 3
traits.rs
in lain/src
75 12
lib.rs
in lain/src
55 -
ctxt.rs
in lain_derive/src/internals
37 1
Cargo.toml
in lain
28 -
dummy.rs
in lain_derive/src
24 -
symbol.rs
in lain_derive/src/internals
24 1
Cargo.toml
in testsuite
20 -
prelude.rs
in lain/src
19 -
Cargo.toml
in lain_derive
19 -
mod.rs
in lain_derive/src/internals
10 -
Cargo.toml
in root
6 -
Files With Most Units (Top 20)
File# lines# units
buffer.rs
in lain/src
361 41
lib.rs
in testsuite/src
760 37
mutations.rs
in lain_derive/src
489 20
mutatable.rs
in lain/src
558 19
serialize.rs
in lain_derive/src
515 19
new_fuzzed.rs
in lain/src
684 13
attr.rs
in lain_derive/src/internals
469 13
traits.rs
in lain/src
75 12
mutator.rs
in lain/src
262 4
dangerous_numbers.rs
in lain/src
75 3
types.rs
in lain/src
121 3
lib.rs
in lain_derive/src
153 3
new_fuzzed_old.rs
in lain_derive/src
269 3
benchmark_generating_fuzzed_struct.rs
in testsuite/benches
93 3
fuzzerobject.rs
in lain_derive/src
227 2
ast.rs
in lain_derive/src/internals
101 2
driver.rs
in lain/src
190 1
ctxt.rs
in lain_derive/src/internals
37 1
symbol.rs
in lain_derive/src/internals
24 1
benchmark_serialization_throughput.rs
in testsuite/benches
78 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
serialize.rs
in lain_derive/src
515 19 8
new_fuzzed.rs
in lain/src
684 13 5
mutations.rs
in lain_derive/src
489 20 4
new_fuzzed_old.rs
in lain_derive/src
269 3 4
mutatable.rs
in lain/src
558 19 2
types.rs
in lain/src
121 3 1
fuzzerobject.rs
in lain_derive/src
227 2 1