facebookincubator / xar
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 34 files with 4,369 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,201 lines of code)
    • 7 medium size files (1,918 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (604 lines of code)
    • 20 very small files (646 lines of code)
0% | 27% | 43% | 13% | 14%
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
cpp0% | 34% | 31% | 19% | 13%
rs0% | 100% | 0% | 0% | 0%
py0% | 0% | 78% | 13% | 8%
h0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
xar0% | 20% | 43% | 18% | 17%
xar/clean_xar_mounts/src0% | 100% | 0% | 0% | 0%
xar/deprecated0% | 0% | 100% | 0% | 0%
xar/commands0% | 0% | 99% | 0% | <1%
ROOT0% | 0% | 0% | 0% | 100%
xar/clean_xar_mounts0% | 0% | 0% | 0% | 100%
Longest Files (Top 34)
File# lines# units
685 6
main.rs
in xar/clean_xar_mounts/src
516 16
351 8
297 36
277 13
277 21
268 27
mount_xar.py
in xar/deprecated
240 11
bdist_xar.py
in xar/commands
208 9
139 5
127 -
122 4
110 8
106 1
84 3
UnXar.cpp
in xar
77 2
60 6
52 -
50 6
47 2
setup.py
in root
45 1
Logging.h
in xar
40 -
39 3
38 4
30 7
compat.py
in xar
29 4
Cargo.toml
in xar/clean_xar_mounts
15 -
14 -
12 1
utils.py
in xar
9 1
cfg
setup.cfg
in root
2 -
in
1 -
1 -
__init__.py
in xar/commands
1 -
Files With Most Units (Top 25)
File# lines# units
297 36
268 27
277 21
main.rs
in xar/clean_xar_mounts/src
516 16
277 13
mount_xar.py
in xar/deprecated
240 11
bdist_xar.py
in xar/commands
208 9
351 8
110 8
30 7
50 6
60 6
685 6
139 5
compat.py
in xar
29 4
38 4
122 4
39 3
84 3
47 2
UnXar.cpp
in xar
77 2
12 1
utils.py
in xar
9 1
106 1
setup.py
in root
45 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
127 - 1
Correlations

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

xar/xar_util.py x: 4 commits (all time) y: 297 lines of code xar/utils.py x: 2 commits (all time) y: 9 lines of code xar/XarParser.cpp x: 10 commits (all time) y: 277 lines of code xar/XarParserTest.cpp x: 7 commits (all time) y: 685 lines of code xar/clean_xar_mounts/Cargo.toml x: 4 commits (all time) y: 15 lines of code xar/XarParser.h x: 6 commits (all time) y: 52 lines of code xar/XarHelpers.h x: 9 commits (all time) y: 84 lines of code xar/Logging.cpp x: 1 commits (all time) y: 14 lines of code xar/Logging.h x: 1 commits (all time) y: 40 lines of code xar/UnXar.cpp x: 2 commits (all time) y: 77 lines of code xar/XarExecFuse.cpp x: 10 commits (all time) y: 351 lines of code xar/XarHelpers.cpp x: 7 commits (all time) y: 122 lines of code xar/XarLinux.cpp x: 2 commits (all time) y: 60 lines of code xar/XarMacOS.cpp x: 4 commits (all time) y: 50 lines of code xar/XarParserCli.cpp x: 3 commits (all time) y: 39 lines of code xar/XarHelpersTest.cpp x: 4 commits (all time) y: 127 lines of code xar/FileUtil.cpp x: 1 commits (all time) y: 30 lines of code xar/FileUtil.h x: 1 commits (all time) y: 47 lines of code xar/FileUtilTest.cpp x: 1 commits (all time) y: 139 lines of code xar/clean_xar_mounts/src/main.rs x: 10 commits (all time) y: 516 lines of code xar/deprecated/mount_xar.py x: 3 commits (all time) y: 240 lines of code setup.py x: 11 commits (all time) y: 45 lines of code xar/py_util.py x: 7 commits (all time) y: 277 lines of code xar/commands/bdist_xar.py x: 5 commits (all time) y: 208 lines of code xar/__init__.py x: 1 commits (all time) y: 1 lines of code xar/bootstrap_py.py x: 1 commits (all time) y: 12 lines of code xar/compat.py x: 2 commits (all time) y: 29 lines of code xar/finders.py x: 2 commits (all time) y: 38 lines of code xar/make_xar.py x: 3 commits (all time) y: 106 lines of code xar/pip_installer.py x: 2 commits (all time) y: 110 lines of code xar/xar_builder.py x: 2 commits (all time) y: 268 lines of code
685.0
lines of code
  min: 1.0
  average: 132.36
  25th percentile: 29.5
  median: 60.0
  75th percentile: 224.0
  max: 685.0
0 11.0
commits (all time)
min: 1.0 | average: 3.94 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 6.5 | max: 11.0

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

xar/xar_util.py x: 4 contributors (all time) y: 297 lines of code xar/utils.py x: 2 contributors (all time) y: 9 lines of code xar/XarParser.cpp x: 5 contributors (all time) y: 277 lines of code xar/XarParserTest.cpp x: 4 contributors (all time) y: 685 lines of code xar/clean_xar_mounts/Cargo.toml x: 3 contributors (all time) y: 15 lines of code xar/XarParser.h x: 1 contributors (all time) y: 52 lines of code xar/XarHelpers.h x: 4 contributors (all time) y: 84 lines of code xar/Logging.cpp x: 1 contributors (all time) y: 14 lines of code xar/Logging.h x: 1 contributors (all time) y: 40 lines of code xar/UnXar.cpp x: 2 contributors (all time) y: 77 lines of code xar/XarExecFuse.cpp x: 5 contributors (all time) y: 351 lines of code xar/XarHelpers.cpp x: 4 contributors (all time) y: 122 lines of code xar/XarLinux.cpp x: 2 contributors (all time) y: 60 lines of code xar/XarMacOS.cpp x: 4 contributors (all time) y: 50 lines of code xar/XarHelpersTest.cpp x: 3 contributors (all time) y: 127 lines of code xar/FileUtil.cpp x: 1 contributors (all time) y: 30 lines of code xar/FileUtil.h x: 1 contributors (all time) y: 47 lines of code xar/FileUtilTest.cpp x: 1 contributors (all time) y: 139 lines of code xar/clean_xar_mounts/src/main.rs x: 8 contributors (all time) y: 516 lines of code xar/deprecated/mount_xar.py x: 3 contributors (all time) y: 240 lines of code setup.py x: 3 contributors (all time) y: 45 lines of code xar/py_util.py x: 2 contributors (all time) y: 277 lines of code xar/commands/bdist_xar.py x: 2 contributors (all time) y: 208 lines of code xar/__init__.py x: 1 contributors (all time) y: 1 lines of code xar/bootstrap_py.py x: 1 contributors (all time) y: 12 lines of code xar/compat.py x: 2 contributors (all time) y: 29 lines of code xar/finders.py x: 2 contributors (all time) y: 38 lines of code xar/make_xar.py x: 2 contributors (all time) y: 106 lines of code xar/pip_installer.py x: 2 contributors (all time) y: 110 lines of code xar/xar_builder.py x: 2 contributors (all time) y: 268 lines of code
685.0
lines of code
  min: 1.0
  average: 132.36
  25th percentile: 29.5
  median: 60.0
  75th percentile: 224.0
  max: 685.0
0 8.0
contributors (all time)
min: 1.0 | average: 2.45 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.5 | max: 8.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): 3 points

xar/xar_util.py x: 1 commits (90d) y: 297 lines of code xar/utils.py x: 1 commits (90d) y: 9 lines of code xar/XarParser.cpp x: 1 commits (90d) y: 277 lines of code
297.0
lines of code
  min: 9.0
  average: 194.33
  25th percentile: 9.0
  median: 277.0
  75th percentile: 297.0
  max: 297.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): 3 points

xar/xar_util.py x: 1 contributors (90d) y: 297 lines of code xar/utils.py x: 1 contributors (90d) y: 9 lines of code xar/XarParser.cpp x: 1 contributors (90d) y: 277 lines of code
297.0
lines of code
  min: 9.0
  average: 194.33
  25th percentile: 9.0
  median: 277.0
  75th percentile: 297.0
  max: 297.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