facebookincubator / spark-state
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 10 files with 752 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (348 lines of code)
    • 7 very small files (404 lines of code)
0% | 0% | 0% | 46% | 53%
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
js0% | 0% | 0% | 46% | 53%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 0% | 46% | 53%
Longest Files (Top 10)
File# lines# units
133 16
110 4
105 5
96 9
85 8
script.js
in src
82 2
49 10
41 7
41 7
state.js
in src
10 -
Files With Most Units (Top 9)
File# lines# units
133 16
49 10
96 9
85 8
41 7
41 7
105 5
110 4
script.js
in src
82 2
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 6 long lines.

File# lines# units# long lines
49 10 2
41 7 1
script.js
in src
82 2 1
85 8 1
41 7 1
Correlations

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

src/global_append_only_array.js x: 3 commits (all time) y: 96 lines of code src/global_counter.js x: 3 commits (all time) y: 49 lines of code src/global_scalar.js x: 2 commits (all time) y: 41 lines of code src/global_string.js x: 3 commits (all time) y: 41 lines of code src/global_signal.js x: 3 commits (all time) y: 105 lines of code src/sorted_participant_array.js x: 1 commits (all time) y: 110 lines of code src/spark_automerge_wrapper.js x: 3 commits (all time) y: 133 lines of code src/state.js x: 3 commits (all time) y: 10 lines of code src/script.js x: 3 commits (all time) y: 82 lines of code src/global_map.js x: 1 commits (all time) y: 85 lines of code
133.0
lines of code
  min: 10.0
  average: 75.2
  25th percentile: 41.0
  median: 83.5
  75th percentile: 106.25
  max: 133.0
0 3.0
commits (all time)
min: 1.0 | average: 2.5 | 25th percentile: 1.75 | median: 3.0 | 75th percentile: 3.0 | max: 3.0

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

src/global_append_only_array.js x: 2 contributors (all time) y: 96 lines of code src/global_counter.js x: 1 contributors (all time) y: 49 lines of code src/global_scalar.js x: 2 contributors (all time) y: 41 lines of code src/global_string.js x: 1 contributors (all time) y: 41 lines of code src/global_signal.js x: 2 contributors (all time) y: 105 lines of code src/sorted_participant_array.js x: 1 contributors (all time) y: 110 lines of code src/spark_automerge_wrapper.js x: 3 contributors (all time) y: 133 lines of code src/state.js x: 3 contributors (all time) y: 10 lines of code src/script.js x: 2 contributors (all time) y: 82 lines of code src/global_map.js x: 1 contributors (all time) y: 85 lines of code
133.0
lines of code
  min: 10.0
  average: 75.2
  25th percentile: 41.0
  median: 83.5
  75th percentile: 106.25
  max: 133.0
0 3.0
contributors (all time)
min: 1.0 | average: 1.8 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.25 | max: 3.0

File Size vs. Commits (30 days): 8 points

src/global_append_only_array.js x: 3 commits (30d) y: 96 lines of code src/global_counter.js x: 1 commits (30d) y: 49 lines of code src/global_scalar.js x: 1 commits (30d) y: 41 lines of code src/global_signal.js x: 1 commits (30d) y: 105 lines of code src/sorted_participant_array.js x: 1 commits (30d) y: 110 lines of code src/spark_automerge_wrapper.js x: 1 commits (30d) y: 133 lines of code src/state.js x: 1 commits (30d) y: 10 lines of code
133.0
lines of code
  min: 10.0
  average: 73.13
  25th percentile: 41.0
  median: 72.5
  75th percentile: 108.75
  max: 133.0
0 3.0
commits (30d)
min: 1.0 | average: 1.25 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 3.0

File Size vs. Contributors (30 days): 8 points

src/global_append_only_array.js x: 2 contributors (30d) y: 96 lines of code src/global_counter.js x: 1 contributors (30d) y: 49 lines of code src/global_scalar.js x: 1 contributors (30d) y: 41 lines of code src/global_signal.js x: 1 contributors (30d) y: 105 lines of code src/sorted_participant_array.js x: 1 contributors (30d) y: 110 lines of code src/spark_automerge_wrapper.js x: 1 contributors (30d) y: 133 lines of code src/state.js x: 1 contributors (30d) y: 10 lines of code
133.0
lines of code
  min: 10.0
  average: 73.13
  25th percentile: 41.0
  median: 72.5
  75th percentile: 108.75
  max: 133.0
0 2.0
contributors (30d)
min: 1.0 | average: 1.13 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

File Size vs. Commits (90 days): 10 points

src/global_append_only_array.js x: 3 commits (90d) y: 96 lines of code src/global_counter.js x: 3 commits (90d) y: 49 lines of code src/global_scalar.js x: 2 commits (90d) y: 41 lines of code src/global_string.js x: 3 commits (90d) y: 41 lines of code src/global_signal.js x: 3 commits (90d) y: 105 lines of code src/sorted_participant_array.js x: 1 commits (90d) y: 110 lines of code src/spark_automerge_wrapper.js x: 3 commits (90d) y: 133 lines of code src/state.js x: 3 commits (90d) y: 10 lines of code src/script.js x: 3 commits (90d) y: 82 lines of code src/global_map.js x: 1 commits (90d) y: 85 lines of code
133.0
lines of code
  min: 10.0
  average: 75.2
  25th percentile: 41.0
  median: 83.5
  75th percentile: 106.25
  max: 133.0
0 3.0
commits (90d)
min: 1.0 | average: 2.5 | 25th percentile: 1.75 | median: 3.0 | 75th percentile: 3.0 | max: 3.0

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

src/global_append_only_array.js x: 2 contributors (90d) y: 96 lines of code src/global_counter.js x: 1 contributors (90d) y: 49 lines of code src/global_scalar.js x: 2 contributors (90d) y: 41 lines of code src/global_string.js x: 1 contributors (90d) y: 41 lines of code src/global_signal.js x: 2 contributors (90d) y: 105 lines of code src/sorted_participant_array.js x: 1 contributors (90d) y: 110 lines of code src/spark_automerge_wrapper.js x: 3 contributors (90d) y: 133 lines of code src/state.js x: 3 contributors (90d) y: 10 lines of code src/script.js x: 2 contributors (90d) y: 82 lines of code src/global_map.js x: 1 contributors (90d) y: 85 lines of code
133.0
lines of code
  min: 10.0
  average: 75.2
  25th percentile: 41.0
  median: 83.5
  75th percentile: 106.25
  max: 133.0
0 3.0
contributors (90d)
min: 1.0 | average: 1.8 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.25 | max: 3.0