anthropics / cargo-nix-plugin
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 26 files with 8,424 lines of code.
    • 1 very long files (1,118 lines of code)
    • 6 long files (4,664 lines of code)
    • 7 medium size files (1,924 lines of code)
    • 3 small files (454 lines of code)
    • 9 very small files (264 lines of code)
13% | 55% | 22% | 5% | 3%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
rs16% | 57% | 18% | 6% | <1%
nix0% | 49% | 42% | 0% | 7%
cc0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
rust22% | 60% | 10% | 6% | <1%
builder0% | 50% | 39% | 7% | 2%
lib0% | 100% | 0% | 0% | 0%
nix0% | 0% | 77% | 0% | 22%
ROOT0% | 0% | 100% | 0% | 0%
cpp0% | 0% | 0% | 0% | 100%
Longest Files (Top 26)
File# lines# units
mod.rs
in rust/src/lockfile_resolve
1118 15
configure.rs
in builder/src/build_rust_crate
990 25
registry.rs
in rust/src
857 36
manifest.rs
in rust/src/lockfile_resolve
806 18
resolve.rs
in rust/src
770 25
nix
708 -
533 17
nix
default.nix
in nix/build-rust-crate
393 -
build.rs
in builder/src/build_rust_crate
317 8
cargo_config.rs
in rust/src
314 18
config.rs
in builder/src/build_rust_crate
241 4
nix
flake.nix
in root
225 -
rustc.rs
in builder/src/build_rust_crate
218 2
ffi.rs
in rust/src
216 5
cfg_eval.rs
in rust/src
188 21
install.rs
in builder/src/build_rust_crate
147 5
lockfile.rs
in rust/src
119 5
plugin.cc
in cpp
92 5
nix
59 -
main.rs
in builder/src
38 1
nix
24 -
18 -
12 -
lib.rs
in rust/src
8 -
util.rs
in builder/src/build_rust_crate
7 -
mod.rs
in builder/src/build_rust_crate
6 -
Files With Most Units (Top 16)
File# lines# units
registry.rs
in rust/src
857 36
resolve.rs
in rust/src
770 25
configure.rs
in builder/src/build_rust_crate
990 25
cfg_eval.rs
in rust/src
188 21
cargo_config.rs
in rust/src
314 18
manifest.rs
in rust/src/lockfile_resolve
806 18
533 17
mod.rs
in rust/src/lockfile_resolve
1118 15
build.rs
in builder/src/build_rust_crate
317 8
plugin.cc
in cpp
92 5
ffi.rs
in rust/src
216 5
lockfile.rs
in rust/src
119 5
install.rs
in builder/src/build_rust_crate
147 5
config.rs
in builder/src/build_rust_crate
241 4
rustc.rs
in builder/src/build_rust_crate
218 2
main.rs
in builder/src
38 1
Files With Long Lines (Top 4)

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

File# lines# units# long lines
manifest.rs
in rust/src/lockfile_resolve
806 18 1
registry.rs
in rust/src
857 36 1
nix
59 - 1
nix
708 - 1
Correlations

File Size vs. Commits (all time): 2 points

lib/default.nix x: 8 commits (all time) y: 708 lines of code rust/src/lockfile_resolve/mod.rs x: 2 commits (all time) y: 1118 lines of code
1118.0
lines of code
  min: 708.0
  average: 913.0
  25th percentile: 708.0
  median: 913.0
  75th percentile: 1118.0
  max: 1118.0
0 8.0
commits (all time)
min: 2.0 | average: 5.0 | 25th percentile: 2.0 | median: 5.0 | 75th percentile: 8.0 | max: 8.0

File Size vs. Contributors (all time): 2 points

lib/default.nix x: 3 contributors (all time) y: 708 lines of code rust/src/lockfile_resolve/mod.rs x: 2 contributors (all time) y: 1118 lines of code
1118.0
lines of code
  min: 708.0
  average: 913.0
  25th percentile: 708.0
  median: 913.0
  75th percentile: 1118.0
  max: 1118.0
0 3.0
contributors (all time)
min: 2.0 | average: 2.5 | 25th percentile: 2.0 | median: 2.5 | 75th percentile: 3.0 | max: 3.0

File Size vs. Commits (30 days): 2 points

lib/default.nix x: 5 commits (30d) y: 708 lines of code rust/src/lockfile_resolve/mod.rs x: 2 commits (30d) y: 1118 lines of code
1118.0
lines of code
  min: 708.0
  average: 913.0
  25th percentile: 708.0
  median: 913.0
  75th percentile: 1118.0
  max: 1118.0
0 5.0
commits (30d)
min: 2.0 | average: 3.5 | 25th percentile: 2.0 | median: 3.5 | 75th percentile: 5.0 | max: 5.0

File Size vs. Contributors (30 days): 2 points

lib/default.nix x: 2 contributors (30d) y: 708 lines of code rust/src/lockfile_resolve/mod.rs x: 2 contributors (30d) y: 1118 lines of code
1118.0
lines of code
  min: 708.0
  average: 913.0
  25th percentile: 708.0
  median: 913.0
  75th percentile: 1118.0
  max: 1118.0
0 2.0
contributors (30d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

File Size vs. Commits (90 days): 2 points

lib/default.nix x: 8 commits (90d) y: 708 lines of code rust/src/lockfile_resolve/mod.rs x: 2 commits (90d) y: 1118 lines of code
1118.0
lines of code
  min: 708.0
  average: 913.0
  25th percentile: 708.0
  median: 913.0
  75th percentile: 1118.0
  max: 1118.0
0 8.0
commits (90d)
min: 2.0 | average: 5.0 | 25th percentile: 2.0 | median: 5.0 | 75th percentile: 8.0 | max: 8.0

File Size vs. Contributors (90 days): 2 points

lib/default.nix x: 3 contributors (90d) y: 708 lines of code rust/src/lockfile_resolve/mod.rs x: 2 contributors (90d) y: 1118 lines of code
1118.0
lines of code
  min: 708.0
  average: 913.0
  25th percentile: 708.0
  median: 913.0
  75th percentile: 1118.0
  max: 1118.0
0 3.0
contributors (90d)
min: 2.0 | average: 2.5 | 25th percentile: 2.0 | median: 2.5 | 75th percentile: 3.0 | max: 3.0