facebook / jscodeshift
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 31 files with 1,939 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (747 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (640 lines of code)
    • 23 very small files (552 lines of code)
0% | 0% | 38% | 33% | 28%
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% | 38% | 33% | 28%
ts0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 56% | 23% | 20%
src/collections0% | 0% | 0% | 98% | 1%
parser0% | 0% | 0% | 0% | 100%
utils0% | 0% | 0% | 0% | 100%
src/utils0% | 0% | 0% | 0% | 100%
sample/__testfixtures__0% | 0% | 0% | 0% | 100%
sample0% | 0% | 0% | 0% | 100%
sample/__testfixtures__/typescript0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 31)
File# lines# units
Runner.js
in src
273 15
259 28
215 13
Worker.js
in src
179 12
126 11
JSXElement.js
in src/collections
120 8
VariableDeclarator.js
in src/collections
113 4
Node.js
in src/collections
102 12
core.js
in src
97 8
95 9
45 4
babylon.js
in parser
42 2
testUtils.js
in utils
35 4
33 2
tsOptions.js
in parser
32 -
21 2
flow.js
in parser
20 2
intersection.js
in src/utils
18 1
16 -
14 -
tsx.js
in parser
12 2
union.js
in src/utils
11 1
once.js
in src/utils
11 1
ts.js
in parser
10 2
10 1
reverse-identifiers.output.js
in sample/__testfixtures__
7 -
reverse-identifiers.input.js
in sample/__testfixtures__
7 -
reverse-identifiers.input.ts
in sample/__testfixtures__/typescript
5 -
reverse-identifiers.output.ts
in sample/__testfixtures__/typescript
5 -
index.js
in src/collections
5 -
index.js
in root
1 -
Files With Most Units (Top 22)
File# lines# units
259 28
Runner.js
in src
273 15
215 13
Worker.js
in src
179 12
Node.js
in src/collections
102 12
126 11
95 9
core.js
in src
97 8
JSXElement.js
in src/collections
120 8
testUtils.js
in utils
35 4
VariableDeclarator.js
in src/collections
113 4
45 4
flow.js
in parser
20 2
tsx.js
in parser
12 2
33 2
babylon.js
in parser
42 2
ts.js
in parser
10 2
21 2
10 1
intersection.js
in src/utils
18 1
union.js
in src/utils
11 1
once.js
in src/utils
11 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
259 28 1
Correlations

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

src/testUtils.js x: 20 commits (all time) y: 95 lines of code src/Runner.js x: 69 commits (all time) y: 273 lines of code src/template.js x: 16 commits (all time) y: 126 lines of code parser/tsx.js x: 8 commits (all time) y: 12 lines of code parser/babel5Compat.js x: 14 commits (all time) y: 33 lines of code sample/__testfixtures__/reverse-identifiers.input.js x: 3 commits (all time) y: 7 lines of code sample/__testfixtures__/typescript/reverse-identifiers.input.ts x: 3 commits (all time) y: 5 lines of code src/Worker.js x: 45 commits (all time) y: 179 lines of code parser/flow.js x: 10 commits (all time) y: 20 lines of code src/ignoreFiles.js x: 6 commits (all time) y: 45 lines of code index.js x: 3 commits (all time) y: 1 lines of code parser/babylon.js x: 18 commits (all time) y: 42 lines of code parser/ts.js x: 7 commits (all time) y: 10 lines of code parser/tsOptions.js x: 6 commits (all time) y: 32 lines of code sample/reverse-identifiers.js x: 6 commits (all time) y: 10 lines of code src/Collection.js x: 27 commits (all time) y: 259 lines of code src/argsParser.js x: 7 commits (all time) y: 215 lines of code src/collections/JSXElement.js x: 12 commits (all time) y: 120 lines of code src/collections/Node.js x: 25 commits (all time) y: 102 lines of code src/collections/VariableDeclarator.js x: 21 commits (all time) y: 113 lines of code src/collections/index.js x: 2 commits (all time) y: 5 lines of code src/core.js x: 21 commits (all time) y: 97 lines of code src/getParser.js x: 12 commits (all time) y: 16 lines of code src/matchNode.js x: 8 commits (all time) y: 21 lines of code src/utils/intersection.js x: 4 commits (all time) y: 18 lines of code src/utils/once.js x: 4 commits (all time) y: 11 lines of code utils/requirePackage.js x: 4 commits (all time) y: 14 lines of code utils/testUtils.js x: 7 commits (all time) y: 35 lines of code
273.0
lines of code
  min: 1.0
  average: 62.55
  25th percentile: 10.0
  median: 21.0
  75th percentile: 102.0
  max: 273.0
0 69.0
commits (all time)
min: 2.0 | average: 12.84 | 25th percentile: 4.0 | median: 7.0 | 75th percentile: 18.0 | max: 69.0

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

src/testUtils.js x: 13 contributors (all time) y: 95 lines of code src/Runner.js x: 28 contributors (all time) y: 273 lines of code src/template.js x: 10 contributors (all time) y: 126 lines of code parser/tsx.js x: 7 contributors (all time) y: 12 lines of code parser/babel5Compat.js x: 9 contributors (all time) y: 33 lines of code sample/__testfixtures__/reverse-identifiers.input.js x: 3 contributors (all time) y: 7 lines of code sample/__testfixtures__/typescript/reverse-identifiers.input.ts x: 3 contributors (all time) y: 5 lines of code src/Worker.js x: 17 contributors (all time) y: 179 lines of code parser/flow.js x: 6 contributors (all time) y: 20 lines of code src/ignoreFiles.js x: 6 contributors (all time) y: 45 lines of code index.js x: 3 contributors (all time) y: 1 lines of code parser/babylon.js x: 8 contributors (all time) y: 42 lines of code parser/ts.js x: 6 contributors (all time) y: 10 lines of code parser/tsOptions.js x: 5 contributors (all time) y: 32 lines of code sample/reverse-identifiers.js x: 4 contributors (all time) y: 10 lines of code src/Collection.js x: 11 contributors (all time) y: 259 lines of code src/argsParser.js x: 4 contributors (all time) y: 215 lines of code src/collections/JSXElement.js x: 8 contributors (all time) y: 120 lines of code src/collections/Node.js x: 9 contributors (all time) y: 102 lines of code src/collections/VariableDeclarator.js x: 12 contributors (all time) y: 113 lines of code src/collections/index.js x: 2 contributors (all time) y: 5 lines of code src/core.js x: 10 contributors (all time) y: 97 lines of code src/getParser.js x: 6 contributors (all time) y: 16 lines of code src/matchNode.js x: 5 contributors (all time) y: 21 lines of code src/utils/intersection.js x: 4 contributors (all time) y: 18 lines of code src/utils/once.js x: 4 contributors (all time) y: 11 lines of code utils/requirePackage.js x: 3 contributors (all time) y: 14 lines of code utils/testUtils.js x: 4 contributors (all time) y: 35 lines of code
273.0
lines of code
  min: 1.0
  average: 62.55
  25th percentile: 10.0
  median: 21.0
  75th percentile: 102.0
  max: 273.0
0 28.0
contributors (all time)
min: 2.0 | average: 7.1 | 25th percentile: 4.0 | median: 6.0 | 75th percentile: 9.0 | max: 28.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

src/testUtils.js x: 1 commits (90d) y: 95 lines of code src/Runner.js x: 1 commits (90d) y: 273 lines of code
273.0
lines of code
  min: 95.0
  average: 184.0
  25th percentile: 95.0
  median: 184.0
  75th percentile: 273.0
  max: 273.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): 2 points

src/testUtils.js x: 1 contributors (90d) y: 95 lines of code src/Runner.js x: 1 contributors (90d) y: 273 lines of code
273.0
lines of code
  min: 95.0
  average: 184.0
  25th percentile: 95.0
  median: 184.0
  75th percentile: 273.0
  max: 273.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