apple / swift-package-manager
File Change Frequency

File change frequency (churn) shows the distribution of file updates (days with at least one commit).

File Change Frequency Overall
File Change Frequency Overall
The number of recorded file updates
  • There are 588 files with 56,907 lines of code.
    • 12 files changed more than 100 times (11,416 lines of code)
    • 12 files changed 51-100 times (3,021 lines of code)
    • 42 files changed 21-50 times (14,998 lines of code)
    • 98 files changed 6-20 times (15,066 lines of code)
    • 424 files changed 1-5 times (12,406 lines of code)
20% | 5% | 26% | 26% | 21%
Legend:
101+
51-100
21-50
6-20
1-5

Detailed data...

File Change Frequency per File Extension
swift, txt, h, md, c, json, m, gitignore, yaml, plist, el, py, mm, cmake
File Change Frequency per Extension
The number of recorded file updates
101+
51-100
21-50
6-20
1-5
swift20% | 5% | 27% | 27% | 19%
c0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
mm0% | 0% | 0% | 0% | 100%
el0% | 0% | 0% | 0% | 100%
File Change Frequency per Logical Decomposition
primary
primary (file change frequency)
The number of recorded file updates
101+
51-100
21-50
6-20
1-5
Sources/Commands58% | 5% | 17% | 6% | 12%
Sources/Workspace44% | 11% | 23% | 13% | 6%
Sources/PackageLoading48% | 0% | 25% | 15% | 10%
Sources/Build43% | 0% | 10% | 46% | 0%
Sources/SourceControl63% | 36% | 0% | 0% | 0%
ROOT100% | 0% | 0% | 0% | 0%
Sources/PackageModel9% | 23% | 19% | 32% | 15%
Sources/PackageGraph3% | 0% | 59% | 23% | 13%
Sources/PackageDescription0% | 27% | 9% | 43% | 19%
Sources/swift-build0% | 100% | 0% | 0% | 0%
Sources/XCBuildSupport0% | 0% | 82% | 5% | 11%
Sources/PackageCollections0% | 0% | 53% | 23% | 23%
Sources/Xcodeproj0% | 0% | 65% | 34% | 0%
Sources/SPMBuildCore0% | 0% | 75% | 4% | 20%
Sources/SPMTestSupport0% | 0% | 30% | 49% | 19%
Sources/swiftpm-xctest-helper0% | 0% | 100% | 0% | 0%
Sources/swift-test0% | 0% | 100% | 0% | 0%
Sources/Basics0% | 0% | 0% | 58% | 41%
Sources/PackageCollectionsSigning0% | 0% | 0% | 46% | 53%
Sources/PackageRegistry0% | 0% | 0% | 68% | 31%
Sources/PackagePlugin0% | 0% | 0% | 47% | 52%
Sources/LLBuildManifest0% | 0% | 0% | 61% | 38%
Sources/PackageCollectionsModel0% | 0% | 0% | 97% | 2%
Sources/SPMPackageEditor0% | 0% | 0% | 41% | 58%
Fixtures/Miscellaneous0% | 0% | 0% | 14% | 85%
Sources/SPMLLBuild0% | 0% | 0% | 100% | 0%
Sources/swiftpm-manifest-tool0% | 0% | 0% | 100% | 0%
Fixtures/DependencyResolution0% | 0% | 0% | 16% | 83%
Fixtures/Resources0% | 0% | 0% | 22% | 77%
Sources/swift-package0% | 0% | 0% | 100% | 0%
Sources/PackageCollectionsSigningLibc0% | 0% | 0% | 0% | 100%
Sources/PackageFingerprint0% | 0% | 0% | 0% | 100%
Fixtures/CFamilyTargets0% | 0% | 0% | 0% | 100%
Utilities/Docker0% | 0% | 0% | 0% | 100%
Fixtures/ModuleMaps0% | 0% | 0% | 0% | 100%
cmake/modules0% | 0% | 0% | 0% | 100%
Utilities0% | 0% | 0% | 0% | 100%
Fixtures/ValidLayouts0% | 0% | 0% | 0% | 100%
Sources/tsan_utils0% | 0% | 0% | 0% | 100%
Utilities/Emacs0% | 0% | 0% | 0% | 100%
Sources/swift-package-collection0% | 0% | 0% | 0% | 100%
Sources/swift-package-registry0% | 0% | 0% | 0% | 100%
Sources/swift-run0% | 0% | 0% | 0% | 100%
Most Frequently Changed Files (Top 20)

See data for all files...

File# lines# unitslast modified
(days ago)
created
(days ago)
# changes
Workspace.swift
in Sources/Workspace
2994 57 3 1884 295
SwiftTool.swift
in Sources/Commands
838 38 3 2047 278
BuildPlan.swift
in Sources/Build
1453 4 6 1858 225
SwiftPackageTool.swift
in Sources/Commands
1521 39 2 2082 208
ManifestLoader.swift
in Sources/PackageLoading
836 9 6 2027 203
PackageBuilder.swift
in Sources/PackageLoading
1037 8 16 2020 199
Package.swift
in root
470 - 4 2193 184
SwiftTestTool.swift
in Sources/Commands
708 6 19 2082 174
GitRepository.swift
in Sources/SourceControl
834 23 13 2076 122
DependencyResolver.swift
in Sources/PackageGraph
140 8 89 2015 113
Options.swift
in Sources/Commands
255 2 3 2082 109
Manifest.swift
in Sources/PackageModel
330 - 25 2084 105
SwiftBuildTool.swift
in Sources/Commands
96 1 100 2082 98
Diagnostics.swift
in Sources/Workspace
153 - 20 1781 76
main.swift
in Sources/swift-build
2 - 523 2275 71
UserToolchain.swift
in Sources/Workspace
320 1 19 1253 68
RepositoryManager.swift
in Sources/SourceControl
366 14 3 1960 68
Repository.swift
in Sources/SourceControl
104 27 45 2079 64
Package.swift
in Sources/PackageModel
97 - 81 2084 60
SwiftRunTool.swift
in Sources/Commands
203 - 56 1706 60