File Size Overall
  • There are 12 files with 1,001 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (581 lines of code)
    • 1 small files (104 lines of code)
    • 9 very small files (316 lines of code)
0% | 0% | 58% | 10% | 31%
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
swift0% | 0% | 58% | 10% | 30%
proto0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Sources0% | 0% | 66% | 11% | 21%
Example0% | 0% | 0% | 0% | 100%
Plugins0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 12)
File# lines# units
Generator.swift
in Sources/SwiftBuffet
375 2
Parser.swift
in Sources/SwiftBuffet
206 -
Models.swift
in Sources/SwiftBuffet
104 -
Utilities.swift
in Sources/SwiftBuffet
86 6
main.swift
in Sources/SwiftBuffet
65 1
Plugin.swift
in Plugins/SwiftBuffetPlugin
45 2
37 -
TimeInterval+String.swift
in Sources/SwiftBuffet
27 1
Package.swift
in Example
24 -
proto
example.proto
in Example/Sources
13 -
Regex.swift
in Sources/SwiftBuffet
10 -
main.swift
in Example/Sources
9 1
Large Files That Change Often (Top 1)
To change a file, an AI coding agent (or a person) has to read it: these files are read the most for the changes in the past year (lines × changes).
File# lines≈ tokens
to read
# changes
(1y)
≈ lines edited
per change
lines read per
line changed
Generator.swift
in Sources/SwiftBuffet
375 ~2k–7k 2 ~30 ~10

Tokens are lines × 7 to 14 (analysis.fileReadsForChanges). Lines edited per change are the file's lines added and deleted divided by its commits over the whole history. Agents read about 2,000 lines at a time: when a 17,000-line file was split into modules, the tokens an agent read for the same change fell by 83% (The Economic Benefit of Refactoring, 2026).

Files With Most Units (Top 6)
File# lines# units
Utilities.swift
in Sources/SwiftBuffet
86 6
Plugin.swift
in Plugins/SwiftBuffetPlugin
45 2
Generator.swift
in Sources/SwiftBuffet
375 2
main.swift
in Example/Sources
9 1
TimeInterval+String.swift
in Sources/SwiftBuffet
27 1
main.swift
in Sources/SwiftBuffet
65 1
Files With Long Lines (Top 3)

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

File# lines# units# long lines
Generator.swift
in Sources/SwiftBuffet
375 2 14
Regex.swift
in Sources/SwiftBuffet
10 - 1
Parser.swift
in Sources/SwiftBuffet
206 - 1
Correlations

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

Sources/SwiftBuffet/Generator.swift x: 17 commits (all time) y: 375 lines of code Example/Sources/example.proto x: 8 commits (all time) y: 13 lines of code Sources/SwiftBuffet/main.swift x: 3 commits (all time) y: 65 lines of code Example/Sources/main.swift x: 5 commits (all time) y: 9 lines of code Sources/SwiftBuffet/Models.swift x: 5 commits (all time) y: 104 lines of code Sources/SwiftBuffet/Parser.swift x: 3 commits (all time) y: 206 lines of code Sources/SwiftBuffet/Regex.swift x: 3 commits (all time) y: 10 lines of code Sources/SwiftBuffet/Utilities.swift x: 2 commits (all time) y: 86 lines of code Package.swift x: 2 commits (all time) y: 37 lines of code Plugins/SwiftBuffetPlugin/Plugin.swift x: 2 commits (all time) y: 45 lines of code Sources/SwiftBuffet/TimeInterval+String.swift x: 1 commits (all time) y: 27 lines of code Example/Package.swift x: 4 commits (all time) y: 24 lines of code
375.0
lines of code
  min: 9.0
  average: 83.42
  25th percentile: 15.75
  median: 41.0
  75th percentile: 99.5
  max: 375.0
0 17.0
commits (all time)
min: 1.0 | average: 4.58 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 5.0 | max: 17.0

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

Sources/SwiftBuffet/Generator.swift x: 5 contributors (all time) y: 375 lines of code Example/Sources/example.proto x: 3 contributors (all time) y: 13 lines of code Sources/SwiftBuffet/main.swift x: 3 contributors (all time) y: 65 lines of code Example/Sources/main.swift x: 3 contributors (all time) y: 9 lines of code Sources/SwiftBuffet/Models.swift x: 3 contributors (all time) y: 104 lines of code Sources/SwiftBuffet/Parser.swift x: 3 contributors (all time) y: 206 lines of code Sources/SwiftBuffet/Utilities.swift x: 1 contributors (all time) y: 86 lines of code Package.swift x: 1 contributors (all time) y: 37 lines of code Plugins/SwiftBuffetPlugin/Plugin.swift x: 1 contributors (all time) y: 45 lines of code Sources/SwiftBuffet/TimeInterval+String.swift x: 1 contributors (all time) y: 27 lines of code Example/Package.swift x: 1 contributors (all time) y: 24 lines of code
375.0
lines of code
  min: 9.0
  average: 83.42
  25th percentile: 15.75
  median: 41.0
  75th percentile: 99.5
  max: 375.0
0 5.0
contributors (all time)
min: 1.0 | average: 2.33 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 3.0 | max: 5.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): 1 points

Sources/SwiftBuffet/Generator.swift x: 2 commits (90d) y: 375 lines of code
375.0
lines of code
  min: 375.0
  average: 375.0
  25th percentile: 375.0
  median: 375.0
  75th percentile: 375.0
  max: 375.0
0 2.0
commits (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

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

Sources/SwiftBuffet/Generator.swift x: 2 contributors (90d) y: 375 lines of code
375.0
lines of code
  min: 375.0
  average: 375.0
  25th percentile: 375.0
  median: 375.0
  75th percentile: 375.0
  max: 375.0
0 2.0
contributors (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0
About This Analysis
  • 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...