facebook / chisel
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 37 files with 5,185 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,749 lines of code)
    • 3 medium size files (932 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,659 lines of code)
    • 21 very small files (845 lines of code)
0% | 33% | 17% | 31% | 16%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 36% | 19% | 29% | 14%
mm0% | 0% | 0% | 100% | 0%
h0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
commands0% | 43% | 23% | 20% | 11%
ROOT0% | 0% | 0% | 71% | 28%
Chisel/Chisel0% | 0% | 0% | 66% | 33%
Chisel/ChiselTests0% | 0% | 0% | 0% | 100%
Chisel/Chisel-macOS0% | 0% | 0% | 0% | 100%
Longest Files (Top 37)
File# lines# units
969 112
780 85
394 42
292 47
FBClassDump.py
in commands
246 29
199 21
194 13
173 11
164 8
146 21
143 8
fblldb.py
in root
143 8
142 17
128 17
CHLObjcInstances.mm
in Chisel/Chisel
115 5
112 12
98 13
93 13
92 5
91 9
89 12
76 19
63 17
CHLPredicateTools.m
in Chisel/Chisel
39 1
FBDelay.py
in commands
34 6
zone_allocator.h
in Chisel/Chisel
32 1
CHLAllocations.c
in Chisel/Chisel
30 3
26 5
ChiselTests.m
in Chisel/ChiselTests
17 -
17 4
CHLAllocations.h
in Chisel/Chisel
9 -
CHLObjcInstances.h
in Chisel/Chisel
9 -
8 -
CHLPredicateTools.h
in Chisel/Chisel
8 -
8 2
Chisel_macOS.h
in Chisel/Chisel-macOS
3 -
Chisel.h
in Chisel/Chisel
3 -
Files With Most Units (Top 30)
File# lines# units
969 112
780 85
292 47
394 42
FBClassDump.py
in commands
246 29
146 21
199 21
76 19
142 17
63 17
128 17
98 13
93 13
194 13
112 12
89 12
173 11
91 9
143 8
164 8
fblldb.py
in root
143 8
FBDelay.py
in commands
34 6
26 5
92 5
CHLObjcInstances.mm
in Chisel/Chisel
115 5
17 4
CHLAllocations.c
in Chisel/Chisel
30 3
8 2
CHLPredicateTools.m
in Chisel/Chisel
39 1
zone_allocator.h
in Chisel/Chisel
32 1
Files With Long Lines (Top 11)

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

File# lines# units# long lines
394 42 5
780 85 4
92 5 3
CHLAllocations.c
in Chisel/Chisel
30 3 3
199 21 3
292 47 3
98 13 2
142 17 1
128 17 1
194 13 1
173 11 1
Correlations

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

commands/FBClassDump.py x: 45 commits (all time) y: 246 lines of code commands/FBDebugCommands.py x: 72 commits (all time) y: 394 lines of code commands/FBTextInputCommands.py x: 12 commits (all time) y: 76 lines of code commands/FBFindCommands.py x: 46 commits (all time) y: 142 lines of code commands/FBCopyCommands.py x: 3 commits (all time) y: 91 lines of code commands/FBCounterCommands.py x: 2 commits (all time) y: 63 lines of code commands/FBFlickerCommands.py x: 32 commits (all time) y: 128 lines of code commands/FBImportCommands.py x: 6 commits (all time) y: 17 lines of code commands/FBInvocationCommands.py x: 25 commits (all time) y: 173 lines of code commands/FBPrintCommands.py x: 109 commits (all time) y: 780 lines of code commands/FBVisualizationCommands.py x: 67 commits (all time) y: 194 lines of code commands/FBXCTestCommands.py x: 12 commits (all time) y: 969 lines of code fbchisellldbbase.py x: 3 commits (all time) y: 146 lines of code commands/FBAccessibilityCommands.py x: 37 commits (all time) y: 199 lines of code commands/FBAutoLayoutCommands.py x: 29 commits (all time) y: 93 lines of code commands/FBComponentCommands.py x: 32 commits (all time) y: 98 lines of code commands/FBDisplayCommands.py x: 42 commits (all time) y: 292 lines of code fbchisellldbobjcruntimehelpers.py x: 2 commits (all time) y: 89 lines of code fbchisellldbviewcontrollerhelpers.py x: 2 commits (all time) y: 92 lines of code fbchisellldbviewhelpers.py x: 2 commits (all time) y: 112 lines of code commands/FBDelay.py x: 7 commits (all time) y: 34 lines of code fbchisellldb.py x: 1 commits (all time) y: 143 lines of code fbchisellldbinputhelpers.py x: 1 commits (all time) y: 26 lines of code fbchisellldbobjecthelpers.py x: 1 commits (all time) y: 8 lines of code fblldb.py x: 29 commits (all time) y: 143 lines of code Chisel/Chisel-macOS/Chisel_macOS.h x: 4 commits (all time) y: 3 lines of code Chisel/Chisel/CHLAllocations.c x: 4 commits (all time) y: 30 lines of code Chisel/Chisel/CHLAllocations.h x: 4 commits (all time) y: 9 lines of code Chisel/Chisel/CHLObjcInstanceCommands.mm x: 9 commits (all time) y: 164 lines of code Chisel/Chisel/CHLObjcInstances.mm x: 4 commits (all time) y: 115 lines of code Chisel/Chisel/CHLPredicateTools.m x: 4 commits (all time) y: 39 lines of code Chisel/Chisel/zone_allocator.h x: 4 commits (all time) y: 32 lines of code Chisel/ChiselTests/ChiselTests.m x: 4 commits (all time) y: 17 lines of code
969.0
lines of code
  min: 3.0
  average: 140.14
  25th percentile: 21.5
  median: 92.0
  75th percentile: 155.0
  max: 969.0
0 109.0
commits (all time)
min: 1.0 | average: 18.16 | 25th percentile: 3.5 | median: 4.0 | 75th percentile: 30.5 | max: 109.0

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

commands/FBClassDump.py x: 9 contributors (all time) y: 246 lines of code commands/FBDebugCommands.py x: 19 contributors (all time) y: 394 lines of code commands/FBTextInputCommands.py x: 6 contributors (all time) y: 76 lines of code commands/FBFindCommands.py x: 23 contributors (all time) y: 142 lines of code commands/FBCopyCommands.py x: 3 contributors (all time) y: 91 lines of code commands/FBCounterCommands.py x: 2 contributors (all time) y: 63 lines of code commands/FBFlickerCommands.py x: 14 contributors (all time) y: 128 lines of code commands/FBImportCommands.py x: 4 contributors (all time) y: 17 lines of code commands/FBInvocationCommands.py x: 15 contributors (all time) y: 173 lines of code commands/FBPrintCommands.py x: 27 contributors (all time) y: 780 lines of code commands/FBVisualizationCommands.py x: 21 contributors (all time) y: 194 lines of code commands/FBXCTestCommands.py x: 7 contributors (all time) y: 969 lines of code fbchisellldbbase.py x: 2 contributors (all time) y: 146 lines of code commands/FBAccessibilityCommands.py x: 20 contributors (all time) y: 199 lines of code commands/FBAutoLayoutCommands.py x: 16 contributors (all time) y: 93 lines of code commands/FBComponentCommands.py x: 17 contributors (all time) y: 98 lines of code commands/FBDisplayCommands.py x: 19 contributors (all time) y: 292 lines of code fbchisellldbobjcruntimehelpers.py x: 2 contributors (all time) y: 89 lines of code fbchisellldbviewcontrollerhelpers.py x: 2 contributors (all time) y: 92 lines of code fbchisellldbviewhelpers.py x: 2 contributors (all time) y: 112 lines of code commands/FBDelay.py x: 4 contributors (all time) y: 34 lines of code fbchisellldb.py x: 1 contributors (all time) y: 143 lines of code fbchisellldbinputhelpers.py x: 1 contributors (all time) y: 26 lines of code fbchisellldbobjecthelpers.py x: 1 contributors (all time) y: 8 lines of code fblldb.py x: 10 contributors (all time) y: 143 lines of code Chisel/Chisel-macOS/Chisel_macOS.h x: 2 contributors (all time) y: 3 lines of code Chisel/Chisel/CHLAllocations.c x: 3 contributors (all time) y: 30 lines of code Chisel/Chisel/CHLAllocations.h x: 3 contributors (all time) y: 9 lines of code Chisel/Chisel/CHLObjcInstanceCommands.mm x: 4 contributors (all time) y: 164 lines of code Chisel/Chisel/CHLObjcInstances.mm x: 3 contributors (all time) y: 115 lines of code Chisel/Chisel/CHLPredicateTools.m x: 3 contributors (all time) y: 39 lines of code Chisel/Chisel/Chisel.h x: 3 contributors (all time) y: 3 lines of code Chisel/Chisel/zone_allocator.h x: 3 contributors (all time) y: 32 lines of code Chisel/ChiselTests/ChiselTests.m x: 3 contributors (all time) y: 17 lines of code
969.0
lines of code
  min: 3.0
  average: 140.14
  25th percentile: 21.5
  median: 92.0
  75th percentile: 155.0
  max: 969.0
0 27.0
contributors (all time)
min: 1.0 | average: 7.65 | 25th percentile: 2.5 | median: 3.0 | 75th percentile: 14.5 | max: 27.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

commands/FBClassDump.py x: 2 commits (90d) y: 246 lines of code commands/FBDebugCommands.py x: 1 commits (90d) y: 394 lines of code
394.0
lines of code
  min: 246.0
  average: 320.0
  25th percentile: 246.0
  median: 320.0
  75th percentile: 394.0
  max: 394.0
0 2.0
commits (90d)
min: 1.0 | average: 1.5 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.0 | max: 2.0

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

commands/FBClassDump.py x: 2 contributors (90d) y: 246 lines of code commands/FBDebugCommands.py x: 1 contributors (90d) y: 394 lines of code
394.0
lines of code
  min: 246.0
  average: 320.0
  25th percentile: 246.0
  median: 320.0
  75th percentile: 394.0
  max: 394.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.5 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.0 | max: 2.0