hhvm / hack-router-codegen
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 27 files with 1,354 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (468 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (359 lines of code)
    • 22 very small files (527 lines of code)
0% | 0% | 34% | 26% | 38%
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
hack0% | 0% | 34% | 26% | 38%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 49% | 38% | 12%
src/privateimpl0% | 0% | 0% | 0% | 100%
src/uriparameters/spec0% | 0% | 0% | 0% | 100%
src/uriparameters0% | 0% | 0% | 0% | 100%
src/uribuilder0% | 0% | 0% | 0% | 100%
src/interfaces0% | 0% | 0% | 0% | 100%
Longest Files (Top 27)
File# lines# units
239 10
229 9
136 5
114 3
109 8
ControllerFacts.hack
in src/privateimpl
78 4
77 5
ClassFacts.hack
in src/privateimpl
76 4
EnumParameterCodegenSpec.hack
in src/uriparameters/spec
53 5
46 4
36 2
SimpleParameterCodegenSpec.hack
in src/uriparameters/spec
36 2
UriParameterCodegenArgumentSpec.hack
in src/uriparameters/spec
35 5
RequestParameterCodegenSpec.hack
in src/uriparameters/spec
11 -
StringParameterCodegenSpec.hack
in src/uriparameters/spec
10 1
IntParameterCodegenSpec.hack
in src/uriparameters/spec
10 1
10 2
10 1
8 1
UriParameterCodegenSpec.hack
in src/uriparameters/spec
6 -
5 -
RequestParametersCodegen.hack
in src/uriparameters
4 -
UriBuilderCodegen.hack
in src/uribuilder
4 -
TestsBypassVisibility.hack
in src/privateimpl
3 -
SupportsGetRequests.hack
in src/interfaces
3 -
SupportsPostRequests.hack
in src/interfaces
3 -
IncludeInUriMap.hack
in src/interfaces
3 -
Files With Most Units (Top 18)
File# lines# units
239 10
229 9
109 8
EnumParameterCodegenSpec.hack
in src/uriparameters/spec
53 5
UriParameterCodegenArgumentSpec.hack
in src/uriparameters/spec
35 5
136 5
77 5
46 4
ClassFacts.hack
in src/privateimpl
76 4
ControllerFacts.hack
in src/privateimpl
78 4
114 3
36 2
SimpleParameterCodegenSpec.hack
in src/uriparameters/spec
36 2
10 2
StringParameterCodegenSpec.hack
in src/uriparameters/spec
10 1
IntParameterCodegenSpec.hack
in src/uriparameters/spec
10 1
8 1
10 1
Files With Long Lines (Top 0)

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

File# lines# units# long lines
Correlations

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

src/RouterCLILookupCodegenBuilder.hack x: 4 commits (all time) y: 229 lines of code src/RequestParametersCodegenBuilderBase.hack x: 3 commits (all time) y: 77 lines of code src/RequestParametersCodegenBuilder.hack x: 6 commits (all time) y: 136 lines of code src/uriparameters/RequestParameterCodegenBuilder.hack x: 4 commits (all time) y: 46 lines of code src/uriparameters/spec/StringParameterCodegenSpec.hack x: 2 commits (all time) y: 10 lines of code src/Codegen.hack x: 5 commits (all time) y: 239 lines of code src/RouterCodegenBuilder.hack x: 4 commits (all time) y: 109 lines of code src/UriBuilderCodegenBuilder.hack x: 3 commits (all time) y: 114 lines of code src/privateimpl/ClassFacts.hack x: 4 commits (all time) y: 76 lines of code src/uriparameters/spec/EnumParameterCodegenSpec.hack x: 5 commits (all time) y: 53 lines of code src/UriMapBuilder.hack x: 2 commits (all time) y: 36 lines of code src/privateimpl/ControllerFacts.hack x: 3 commits (all time) y: 78 lines of code src/interfaces/IncludeInUriMap.hack x: 1 commits (all time) y: 3 lines of code src/privateimpl/RequestParameterRequirementState.hack x: 1 commits (all time) y: 5 lines of code src/uribuilder/UriBuilderCodegen.hack x: 1 commits (all time) y: 4 lines of code src/uribuilder/UriBuilderCodegenBase.hack x: 1 commits (all time) y: 10 lines of code src/uribuilder/UriBuilderCodegenWithStandardUriBuilder.hack x: 1 commits (all time) y: 8 lines of code src/uriparameters/spec/RequestParameterCodegenSpec.hack x: 1 commits (all time) y: 11 lines of code src/uriparameters/spec/SimpleParameterCodegenSpec.hack x: 1 commits (all time) y: 36 lines of code src/uriparameters/spec/UriParameterCodegenArgumentSpec.hack x: 1 commits (all time) y: 35 lines of code src/uriparameters/spec/UriParameterCodegenSpec.hack x: 1 commits (all time) y: 6 lines of code
239.0
lines of code
  min: 3.0
  average: 50.15
  25th percentile: 5.0
  median: 11.0
  75th percentile: 77.0
  max: 239.0
0 6.0
commits (all time)
min: 1.0 | average: 2.22 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 4.0 | max: 6.0

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

src/RouterCLILookupCodegenBuilder.hack x: 2 contributors (all time) y: 229 lines of code src/RequestParametersCodegenBuilderBase.hack x: 1 contributors (all time) y: 77 lines of code src/RequestParametersCodegenBuilder.hack x: 2 contributors (all time) y: 136 lines of code src/uriparameters/RequestParameterCodegenBuilder.hack x: 1 contributors (all time) y: 46 lines of code src/uriparameters/spec/StringParameterCodegenSpec.hack x: 1 contributors (all time) y: 10 lines of code src/Codegen.hack x: 2 contributors (all time) y: 239 lines of code src/RouterCodegenBuilder.hack x: 2 contributors (all time) y: 109 lines of code src/UriBuilderCodegenBuilder.hack x: 2 contributors (all time) y: 114 lines of code src/privateimpl/ClassFacts.hack x: 1 contributors (all time) y: 76 lines of code src/uriparameters/spec/EnumParameterCodegenSpec.hack x: 2 contributors (all time) y: 53 lines of code src/UriMapBuilder.hack x: 2 contributors (all time) y: 36 lines of code src/privateimpl/ControllerFacts.hack x: 1 contributors (all time) y: 78 lines of code src/interfaces/IncludeInUriMap.hack x: 1 contributors (all time) y: 3 lines of code src/privateimpl/RequestParameterRequirementState.hack x: 1 contributors (all time) y: 5 lines of code src/uribuilder/UriBuilderCodegen.hack x: 1 contributors (all time) y: 4 lines of code src/uribuilder/UriBuilderCodegenWithStandardUriBuilder.hack x: 1 contributors (all time) y: 8 lines of code src/uriparameters/spec/RequestParameterCodegenSpec.hack x: 1 contributors (all time) y: 11 lines of code src/uriparameters/spec/SimpleParameterCodegenSpec.hack x: 1 contributors (all time) y: 36 lines of code src/uriparameters/spec/UriParameterCodegenArgumentSpec.hack x: 1 contributors (all time) y: 35 lines of code src/uriparameters/spec/UriParameterCodegenSpec.hack x: 1 contributors (all time) y: 6 lines of code
239.0
lines of code
  min: 3.0
  average: 50.15
  25th percentile: 5.0
  median: 11.0
  75th percentile: 77.0
  max: 239.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.26 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.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): 0 points

No data for "commits (90d)" vs. "lines of code".

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

No data for "contributors (90d)" vs. "lines of code".