openai / softnet
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,033 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (233 lines of code)
    • 2 small files (343 lines of code)
    • 11 very small files (457 lines of code)
0% | 0% | 22% | 33% | 44%
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
rs0% | 0% | 22% | 33% | 44%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib0% | 0% | 28% | 17% | 54%
src0% | 0% | 0% | 100% | 0%
.cargo0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 14)
File# lines# units
mod.rs
in lib/proxy
233 6
main.rs
in src
197 4
host.rs
in lib
146 2
vm.rs
in lib/proxy
94 2
83 -
poller.rs
in lib
80 2
port_forwarder.rs
in lib/proxy
76 2
exposed_port.rs
in lib/proxy
41 2
host.rs
in lib/proxy
29 -
vm.rs
in lib
24 1
20 4
mod.rs
in lib
6 -
config.toml
in .cargo
2 -
2 -
Files With Most Units (Top 9)
File# lines# units
mod.rs
in lib/proxy
233 6
main.rs
in src
197 4
20 4
host.rs
in lib
146 2
poller.rs
in lib
80 2
exposed_port.rs
in lib/proxy
41 2
vm.rs
in lib/proxy
94 2
port_forwarder.rs
in lib/proxy
76 2
vm.rs
in lib
24 1
Files With Long Lines (Top 0)

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

File# lines# units# long lines
Correlations

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

lib/proxy/mod.rs x: 12 commits (all time) y: 233 lines of code src/main.rs x: 15 commits (all time) y: 197 lines of code lib/dhcp_snooper.rs x: 3 commits (all time) y: 83 lines of code lib/poller.rs x: 7 commits (all time) y: 80 lines of code lib/host.rs x: 10 commits (all time) y: 146 lines of code .cargo/config.toml x: 1 commits (all time) y: 2 lines of code lib/proxy/exposed_port.rs x: 3 commits (all time) y: 41 lines of code lib/proxy/host.rs x: 6 commits (all time) y: 29 lines of code lib/proxy/vm.rs x: 5 commits (all time) y: 94 lines of code lib/proxy/port_forwarder.rs x: 1 commits (all time) y: 76 lines of code lib/mod.rs x: 2 commits (all time) y: 6 lines of code lib/vm.rs x: 1 commits (all time) y: 24 lines of code
233.0
lines of code
  min: 2.0
  average: 77.92
  25th percentile: 15.0
  median: 76.0
  75th percentile: 120.0
  max: 233.0
0 15.0
commits (all time)
min: 1.0 | average: 5.15 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 8.5 | max: 15.0

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

lib/proxy/mod.rs x: 2 contributors (all time) y: 233 lines of code src/main.rs x: 3 contributors (all time) y: 197 lines of code lib/dhcp_snooper.rs x: 1 contributors (all time) y: 83 lines of code lib/poller.rs x: 1 contributors (all time) y: 80 lines of code lib/host.rs x: 2 contributors (all time) y: 146 lines of code .cargo/config.toml x: 1 contributors (all time) y: 2 lines of code lib/proxy/exposed_port.rs x: 2 contributors (all time) y: 41 lines of code lib/proxy/host.rs x: 1 contributors (all time) y: 29 lines of code lib/proxy/vm.rs x: 1 contributors (all time) y: 94 lines of code lib/proxy/port_forwarder.rs x: 1 contributors (all time) y: 76 lines of code lib/mod.rs x: 2 contributors (all time) y: 6 lines of code lib/vm.rs x: 1 contributors (all time) y: 24 lines of code
233.0
lines of code
  min: 2.0
  average: 77.92
  25th percentile: 15.0
  median: 76.0
  75th percentile: 120.0
  max: 233.0
0 3.0
contributors (all time)
min: 1.0 | average: 1.46 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 3.0

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

No data for "commits (30d)" vs. "lines of code".

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

No data for "contributors (30d)" vs. "lines of code".


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

lib/proxy/mod.rs x: 1 commits (90d) y: 233 lines of code src/main.rs x: 1 commits (90d) y: 197 lines of code
233.0
lines of code
  min: 197.0
  average: 215.0
  25th percentile: 197.0
  median: 215.0
  75th percentile: 233.0
  max: 233.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

lib/proxy/mod.rs x: 1 contributors (90d) y: 233 lines of code src/main.rs x: 1 contributors (90d) y: 197 lines of code
233.0
lines of code
  min: 197.0
  average: 215.0
  25th percentile: 197.0
  median: 215.0
  75th percentile: 233.0
  max: 233.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0