apple / swift
File Age

File age measurements show the distribution of file ages (days since the first commit) and the recency of file updates (days since the latest commit).

Summary
  • Number of files: 9830
  • Daily file updates (only one update per file and date counted): 37297
  • First update: 2010-07-18
  • Latest update: 2022-01-29
  • Days between first and latest update: 4214 (602 weeks, estimated 3010 working days)
  • Active days (at least one file change): 3699
  • Data:
File Change History Overall
File Age Distribution Overall
Days since first update
  • There are 9,797 files with 1,144,484 lines of code in files.
    • 9,291 files that are 366+ days old (1,015,061 lines of code)
    • 252 files that are 181-365 days old (46,022 lines of code)
    • 129 files that are 91-180 days old (15,542 lines of code)
    • 94 files that are 31-90 days old (63,993 lines of code)
    • 31 files that are 1-30 days old (3,866 lines of code)
88% | 4% | 1% | 5% | <1%
Legend:
366+
181-365
91-180
31-90
1-30
Latest Change Distribution Overall
Days since last update
  • There are 9,797 files with 1,144,484 lines of code in files.
    • 7,611 files have been last changed 366+ days ago (178,959 lines of code)
    • 505 files have been last changed 181-365 days ago (78,807 lines of code)
    • 38 files have been last changed 91-180 days ago (5,342 lines of code)
    • 1,018 files have been last changed 31-90 days ago (292,957 lines of code)
    • 625 files have been last changed 1-30 days ago (588,419 lines of code)
15% | 6% | <1% | 25% | 51%
Legend:
366+
181-365
91-180
31-90
1-30
File Change History per File Extension
swift, h, cpp, txt, py, json, md, rst, m, cmake, yaml, cfg, in, c, mm, ll, sh, inc, vim, plist, gitignore, el, html, d, css, bat, cmd, sed, tex, clang-format, rb, pod, js, gitattributes, TXT, arc, ini, bib, bash
File Age Distribution per Extension
Days since first update
366+
181-365
91-180
31-90
1-30
cpp95% | 2% | 1% | <1% | <1%
swift84% | 11% | 1% | 2% | <1%
h74% | 1% | 1% | 22% | <1%
py92% | 4% | 2% | 0% | <1%
cmake91% | 2% | 2% | 3% | 0%
yaml93% | 6% | 0% | 0% | 0%
mm98% | 1% | 0% | 0% | 0%
in100% | 0% | 0% | 0% | 0%
c89% | 0% | 10% | 0% | 0%
el100% | 0% | 0% | 0% | 0%
inc62% | 0% | 15% | 22% | 0%
bash100% | 0% | 0% | 0% | 0%
m21% | 0% | 78% | 0% | 0%
d100% | 0% | 0% | 0% | 0%
rb100% | 0% | 0% | 0% | 0%
TXT100% | 0% | 0% | 0% | 0%
cfg100% | 0% | 0% | 0% | 0%
cmd100% | 0% | 0% | 0% | 0%
Latest Change Distribution per Extension
Days since last update
366+
181-365
91-180
31-90
1-30
swift44% | 5% | <1% | 44% | 5%
h14% | 9% | <1% | 19% | 56%
cpp4% | 6% | <1% | 21% | 67%
py39% | 12% | <1% | 26% | 21%
yaml93% | 6% | 0% | 0% | 0%
mm35% | 21% | 0% | 2% | 40%
in83% | <1% | 0% | <1% | 15%
inc62% | 0% | 0% | 37% | 0%
cmake7% | 5% | 0% | 21% | 64%
el65% | 0% | 0% | 34% | 0%
m21% | 0% | 73% | 5% | 0%
d100% | 0% | 0% | 0% | 0%
rb100% | 0% | 0% | 0% | 0%
c8% | 0% | 0% | 17% | 74%
cfg50% | 0% | 0% | 50% | 0%
cmd100% | 0% | 0% | 0% | 0%
bash0% | 100% | 0% | 0% | 0%
TXT0% | 0% | 0% | 0% | 100%
File Change History per Logical Decomposition
primary
primary (file age distribution)
Days since first update
366+
181-365
91-180
31-90
1-30
lib95% | 2% | 1% | <1% | <1%
stdlib67% | 2% | <1% | 29% | <1%
include96% | 2% | <1% | <1% | <1%
validation-test79% | 18% | 1% | <1% | <1%
tools96% | <1% | 2% | <1% | 0%
benchmark95% | 2% | 1% | 0% | 0%
utils84% | 3% | 5% | 4% | <1%
unittests96% | 2% | <1% | <1% | 0%
cmake84% | 6% | 5% | 4% | 0%
ROOT100% | 0% | 0% | 0% | 0%
SwiftCompilerSources0% | 0% | 41% | 42% | 16%
primary (latest change distribution)
Days since last update
366+
181-365
91-180
31-90
1-30
validation-test66% | 6% | <1% | 23% | 2%
stdlib15% | 4% | <1% | 36% | 43%
lib4% | 5% | <1% | 20% | 68%
include15% | 13% | <1% | 18% | 52%
utils34% | 10% | <1% | 35% | 18%
unittests40% | 32% | 0% | 14% | 12%
tools8% | 5% | 0% | 31% | 54%
benchmark3% | 0% | <1% | 94% | 1%
cmake15% | 12% | 0% | 29% | 42%
SwiftCompilerSources0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Oldest Files (Top 20)
File# lines# unitslast modified
(days ago)
created
(days ago)
# changes
Lexer.cpp
in lib/Parse
2192 71 11 4215 521
Parser.cpp
in lib/Parse
1158 58 18 4215 635
Parser.h
in include/swift/Parse
1066 57 11 4215 869
Lexer.h
in include/swift/Parse
333 24 42 4215 248
Token.h
in include/swift/Parse
194 41 270 4215 183
Decl.cpp
in lib/AST
6938 408 3 4214 1623
Type.cpp
in lib/AST
4630 187 5 4214 1116
ASTContext.cpp
in lib/AST
4254 136 3 4214 1241
Decl.h
in include/swift/AST
4191 535 3 4214 1509
Expr.h
in include/swift/AST
3669 619 26 4214 964
Expr.cpp
in lib/AST
1862 88 27 4214 751
ASTContext.h
in include/swift/AST
614 13 3 4214 760
Type.h
in include/swift/AST
386 43 11 4214 318
Identifier.h
in include/swift/AST
654 105 44 4210 197
Identifier.cpp
in lib/AST
222 16 353 4210 95
Types.h
in include/swift/AST
3680 446 5 3954 1079
Stmt.h
in include/swift/AST
907 174 44 3837 272
Stmt.cpp
in lib/AST
420 37 44 3837 188
ASTVisitor.h
in include/swift/AST
141 8 654 3837 50
ParseDecl.cpp
in lib/Parse
6341 79 3 3824 1430
Files Not Recently Changed (Top 20)
File# lines# unitslast modified
(days ago)
created
(days ago)
# changes
CodeCompletionToken.cpp
in unittests/IDE
64 1 3104 3127 4
main.cpp
in utils/test-successor-map
62 1 2894 2894 1
in
Info.plist.in
in stdlib
16 - 2845 2845 1
ModuleAPIDiff.h
in tools/swift-ide-test
9 - 2604 2604 1
cfg
lit.local.cfg
in validation-test/compiler_crashers
4 - 2491 2498 2
serialization_loops_helper2.swift
in validation-test/Serialization/Inputs
7 - 2351 2351 1
serialization_loops.h
in validation-test/Serialization/Inputs
9 1 2351 2351 1
main.cpp
in utils/test-prefix-map
120 8 2309 2309 1
r17963339.swift
in validation-test/radar
27 4 2281 2691 5
cmake
config.h.cmake
in tools/SourceKit/include/SourceKit/Config
6 - 2279 2279 1
in
XPCServiceInfo.plist.in
in tools/SourceKit/cmake
25 - 2279 2279 1
in
FlatFrameworkInfo.plist.in
in tools/SourceKit/cmake
26 - 2279 2279 1
in
MacOSXFrameworkInfo.plist.in
in tools/SourceKit/cmake
28 - 2279 2279 1
main.swift
in validation-test/stdlib/MicroStdlib/Inputs
1 - 1541 2096 4
28855-swift-genericsignaturebuilder-addrequirement-swift-requirementrepr-const-swift-g.swift
in validation-test/compiler_crashers_fixed
1 - 1541 1571 4
28817-swift-typebase-getdesugaredtype.swift
in validation-test/compiler_crashers_fixed
1 - 1541 1662 3
28813-swift-genericsignature-enumeratepairedrequirements-llvm-function-ref-bool-swift-.swift
in validation-test/compiler_crashers_fixed
1 - 1541 1595 4
28794-swift-type-transformrec-llvm-function-ref-llvm-optional-swift-type-swift-typebas.swift
in validation-test/compiler_crashers_fixed
1 - 1541 1678 2
28791-formprotocolrelativetype-swift-protocoldecl-swift-genericsignaturebuilder-potent.swift
in validation-test/compiler_crashers_fixed
1 - 1541 1678 2
28789-swift-genericsignaturebuilder-addrequirement-swift-requirementrepr-const-swift-g.swift
in validation-test/compiler_crashers_fixed
1 - 1541 1585 3
Most Recently Created Files (Top 20)
File# lines# unitslast modified
(days ago)
created
(days ago)
# changes
DictionaryKeyValueTypesObjC.swift
in validation-test/stdlib/Inputs
844 52
SwiftObjectNSObject.m
in validation-test/stdlib/Inputs/SwiftObjectNSObject
597 5
DictionaryKeyValueTypes.swift
in validation-test/stdlib/Inputs
327 26
KeyPathMultiModule_b.swift
in validation-test/stdlib/Inputs
266 -
FoundationBridge.m
in validation-test/stdlib/Inputs/FoundationBridge
211 2
PrintTestTypes.swift
in validation-test/stdlib/Inputs
151 -
SwiftNativeNSBase.m
in validation-test/stdlib/Inputs/SwiftNativeNSBase
74 2
FoundationBridge.h
in validation-test/stdlib/Inputs/FoundationBridge
65 2
ArrayBridge.m
in validation-test/stdlib/Inputs/ArrayBridge
52 3
CommandLineStressTest.swift
in validation-test/stdlib/Inputs/CommandLineStressTest
43 4
NSSlowString.m
in validation-test/stdlib/Inputs/NSSlowString
33 -
SlurpFastEnumeration.m
in validation-test/stdlib/Inputs/SlurpFastEnumeration
18 2
KeyPathMultiFile_b.swift
in validation-test/stdlib/Inputs
16 2
CodableMultifileOther.swift
in validation-test/stdlib/Inputs
15 -
Mirror.mm
in validation-test/stdlib/Inputs/Mirror
14 -
Mirror.h
in validation-test/stdlib/Inputs/Mirror
12 -
ErrorBridgedStaticImpl.m
in validation-test/stdlib/Inputs
11 -
variadicBool.c
in validation-test/stdlib/Inputs/VariadicBool
11 1
ArrayBridge.h
in validation-test/stdlib/Inputs/ArrayBridge
8 -
MirrorOther.swift
in validation-test/stdlib/Inputs/Mirror
6 -
Most Recently Changed Files (Top 20)
File# lines# unitslast modified
(days ago)
created
(days ago)
# changes
DictionaryKeyValueTypesObjC.swift
in validation-test/stdlib/Inputs
844 52
SwiftObjectNSObject.m
in validation-test/stdlib/Inputs/SwiftObjectNSObject
597 5
DictionaryKeyValueTypes.swift
in validation-test/stdlib/Inputs
327 26
KeyPathMultiModule_b.swift
in validation-test/stdlib/Inputs
266 -
FoundationBridge.m
in validation-test/stdlib/Inputs/FoundationBridge
211 2
PrintTestTypes.swift
in validation-test/stdlib/Inputs
151 -
SwiftNativeNSBase.m
in validation-test/stdlib/Inputs/SwiftNativeNSBase
74 2
FoundationBridge.h
in validation-test/stdlib/Inputs/FoundationBridge
65 2
ArrayBridge.m
in validation-test/stdlib/Inputs/ArrayBridge
52 3
CommandLineStressTest.swift
in validation-test/stdlib/Inputs/CommandLineStressTest
43 4
NSSlowString.m
in validation-test/stdlib/Inputs/NSSlowString
33 -
SlurpFastEnumeration.m
in validation-test/stdlib/Inputs/SlurpFastEnumeration
18 2
KeyPathMultiFile_b.swift
in validation-test/stdlib/Inputs
16 2
CodableMultifileOther.swift
in validation-test/stdlib/Inputs
15 -
Mirror.mm
in validation-test/stdlib/Inputs/Mirror
14 -
Mirror.h
in validation-test/stdlib/Inputs/Mirror
12 -
ErrorBridgedStaticImpl.m
in validation-test/stdlib/Inputs
11 -
variadicBool.c
in validation-test/stdlib/Inputs/VariadicBool
11 1
ArrayBridge.h
in validation-test/stdlib/Inputs/ArrayBridge
8 -
MirrorOther.swift
in validation-test/stdlib/Inputs/Mirror
6 -