reactjs / react-rails
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 49 files with 1,799 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (587 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (219 lines of code)
    • 45 very small files (993 lines of code)
0% | 0% | 32% | 12% | 55%
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% | 53% | 16% | 30%
rb0% | 0% | 22% | 10% | 67%
gemspec0% | 0% | 0% | 0% | 100%
jsx0% | 0% | 0% | 0% | 100%
tsx0% | 0% | 0% | 0% | 100%
coffee0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib/assets/javascripts0% | 0% | 100% | 0% | 0%
lib/generators/react0% | 0% | 67% | 32% | 0%
react_ujs0% | 0% | 0% | 100% | 0%
lib/react/server_rendering0% | 0% | 0% | 0% | 100%
lib/react/rails0% | 0% | 0% | 0% | 100%
lib/react/jsx0% | 0% | 0% | 0% | 100%
react_ujs/src/events0% | 0% | 0% | 0% | 100%
lib/generators/templates0% | 0% | 0% | 0% | 100%
lib/react0% | 0% | 0% | 0% | 100%
react_ujs/src/getConstructor0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
lib0% | 0% | 0% | 0% | 100%
react_ujs/src0% | 0% | 0% | 0% | 100%
Longest Files (Top 49)
File# lines# units
react_ujs.js
in lib/assets/javascripts
368 48
component_generator.rb
in lib/generators/react
219 12
index.js
in react_ujs
115 8
install_generator.rb
in lib/generators/react
104 9
railtie.rb
in lib/react/rails
89 -
bundle_renderer.rb
in lib/react/server_rendering
83 10
webpacker_manifest_container.rb
in lib/react/server_rendering
76 11
component_mount.rb
in lib/react/rails
52 5
detect.js
in react_ujs/src/events
44 5
exec_js_renderer.rb
in lib/react/server_rendering
42 5
39 -
sprockets_strategy.rb
in lib/react/jsx
35 5
controller_lifecycle.rb
in lib/react/rails
34 4
29 4
component.js.jsx.tsx
in lib/generators/templates
28 -
timeout_polyfill.js
in lib/react/server_rendering/bundle_renderer
23 4
jsx_transformer.rb
in lib/react/jsx
23 3
controller_renderer.rb
in lib/react/rails
23 3
renderHelpers.js
in react_ujs/src
22 5
yaml_manifest_container.rb
in lib/react/server_rendering
21 4
react.rb
in lib
20 1
component.es6.jsx
in lib/generators/templates
19 -
component.js.jsx
in lib/generators/templates
19 -
babel_transformer.rb
in lib/react/jsx
19 2
fromRequireContextWithGlobalFallback.js
in react_ujs/src/getConstructor
19 1
jsx.rb
in lib/react
18 1
manifest_container.rb
in lib/react/server_rendering
17 3
asset_variant.rb
in lib/react/rails
15 1
fromRequireContext.js
in react_ujs/src/getConstructor
15 1
coffee
component.js.jsx.coffee
in lib/generators/templates
14 -
template.rb
in lib/react/jsx
13 2
native.js
in react_ujs/src/events
13 2
environment_container.rb
in lib/react/server_rendering
12 2
fromGlobal.js
in react_ujs/src/getConstructor
12 1
pjax.js
in react_ujs/src/events
12 2
view_helper.rb
in lib/react/rails
11 1
turbolinksClassicDeprecated.js
in react_ujs/src/events
11 2
turbolinksClassic.js
in react_ujs/src/events
10 2
9 -
console_replay.js
in lib/react/server_rendering/bundle_renderer
9 1
processor.rb
in lib/react/jsx
9 1
turbolinks.js
in react_ujs/src/events
8 2
rails.rb
in lib/react
7 -
console_polyfill.js
in lib/react/server_rendering/bundle_renderer
6 1
version.rb
in lib/react/rails
5 -
server_rendering_pack.js
in lib/generators/templates
3 -
console_reset.js
in lib/react/server_rendering/bundle_renderer
3 -
react_server_rendering.rb
in lib/generators/templates
1 -
server_rendering.js
in lib/generators/templates
1 -
Files With Most Units (Top 36)
File# lines# units
react_ujs.js
in lib/assets/javascripts
368 48
component_generator.rb
in lib/generators/react
219 12
webpacker_manifest_container.rb
in lib/react/server_rendering
76 11
bundle_renderer.rb
in lib/react/server_rendering
83 10
install_generator.rb
in lib/generators/react
104 9
index.js
in react_ujs
115 8
exec_js_renderer.rb
in lib/react/server_rendering
42 5
sprockets_strategy.rb
in lib/react/jsx
35 5
component_mount.rb
in lib/react/rails
52 5
renderHelpers.js
in react_ujs/src
22 5
detect.js
in react_ujs/src/events
44 5
29 4
timeout_polyfill.js
in lib/react/server_rendering/bundle_renderer
23 4
yaml_manifest_container.rb
in lib/react/server_rendering
21 4
controller_lifecycle.rb
in lib/react/rails
34 4
manifest_container.rb
in lib/react/server_rendering
17 3
jsx_transformer.rb
in lib/react/jsx
23 3
controller_renderer.rb
in lib/react/rails
23 3
environment_container.rb
in lib/react/server_rendering
12 2
babel_transformer.rb
in lib/react/jsx
19 2
template.rb
in lib/react/jsx
13 2
native.js
in react_ujs/src/events
13 2
pjax.js
in react_ujs/src/events
12 2
turbolinksClassic.js
in react_ujs/src/events
10 2
turbolinks.js
in react_ujs/src/events
8 2
turbolinksClassicDeprecated.js
in react_ujs/src/events
11 2
console_polyfill.js
in lib/react/server_rendering/bundle_renderer
6 1
console_replay.js
in lib/react/server_rendering/bundle_renderer
9 1
jsx.rb
in lib/react
18 1
processor.rb
in lib/react/jsx
9 1
asset_variant.rb
in lib/react/rails
15 1
view_helper.rb
in lib/react/rails
11 1
react.rb
in lib
20 1
fromRequireContext.js
in react_ujs/src/getConstructor
15 1
fromGlobal.js
in react_ujs/src/getConstructor
12 1
fromRequireContextWithGlobalFallback.js
in react_ujs/src/getConstructor
19 1
Files With Long Lines (Top 8)

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

File# lines# units# long lines
sprockets_strategy.rb
in lib/react/jsx
35 5 4
react_ujs.js
in lib/assets/javascripts
368 48 1
manifest_container.rb
in lib/react/server_rendering
17 3 1
timeout_polyfill.js
in lib/react/server_rendering/bundle_renderer
23 4 1
webpacker_manifest_container.rb
in lib/react/server_rendering
76 11 1
babel_transformer.rb
in lib/react/jsx
19 2 1
39 - 1
index.js
in react_ujs
115 8 1
Correlations

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

lib/react/server_rendering/webpacker_manifest_container.rb x: 34 commits (all time) y: 76 lines of code lib/assets/javascripts/react_ujs.js x: 64 commits (all time) y: 368 lines of code react_ujs/index.js x: 27 commits (all time) y: 115 lines of code react_ujs/src/renderHelpers.js x: 2 commits (all time) y: 22 lines of code react_ujs/src/events/turbolinks.js x: 15 commits (all time) y: 8 lines of code lib/react/rails/version.rb x: 70 commits (all time) y: 5 lines of code react-rails.gemspec x: 87 commits (all time) y: 39 lines of code lib/react/jsx/sprockets_strategy.rb x: 9 commits (all time) y: 35 lines of code lib/react/rails/railtie.rb x: 112 commits (all time) y: 89 lines of code lib/react/rails/component_mount.rb x: 31 commits (all time) y: 52 lines of code lib/generators/react/component_generator.rb x: 38 commits (all time) y: 219 lines of code lib/generators/templates/component.js.jsx.tsx x: 1 commits (all time) y: 28 lines of code lib/react-rails.rb x: 11 commits (all time) y: 9 lines of code lib/generators/react/install_generator.rb x: 31 commits (all time) y: 104 lines of code lib/generators/templates/server_rendering_pack.js x: 6 commits (all time) y: 3 lines of code lib/react.rb x: 4 commits (all time) y: 20 lines of code lib/react/jsx/jsx_transformer.rb x: 12 commits (all time) y: 23 lines of code lib/react/rails/controller_renderer.rb x: 14 commits (all time) y: 23 lines of code react_ujs/src/events/detect.js x: 16 commits (all time) y: 44 lines of code react_ujs/src/events/native.js x: 8 commits (all time) y: 13 lines of code lib/generators/templates/component.es6.jsx x: 7 commits (all time) y: 19 lines of code lib/generators/templates/component.js.jsx x: 14 commits (all time) y: 19 lines of code lib/generators/templates/component.js.jsx.coffee x: 14 commits (all time) y: 14 lines of code lib/react/server_rendering/exec_js_renderer.rb x: 27 commits (all time) y: 42 lines of code lib/react/rails/asset_variant.rb x: 5 commits (all time) y: 15 lines of code lib/generators/templates/react_server_rendering.rb x: 6 commits (all time) y: 1 lines of code lib/react/jsx/babel_transformer.rb x: 9 commits (all time) y: 19 lines of code lib/react/rails/controller_lifecycle.rb x: 15 commits (all time) y: 34 lines of code lib/react/server_rendering.rb x: 21 commits (all time) y: 29 lines of code lib/react/server_rendering/bundle_renderer.rb x: 11 commits (all time) y: 83 lines of code lib/react/server_rendering/manifest_container.rb x: 10 commits (all time) y: 17 lines of code lib/react/server_rendering/yaml_manifest_container.rb x: 14 commits (all time) y: 21 lines of code react_ujs/src/events/pjax.js x: 5 commits (all time) y: 12 lines of code react_ujs/src/events/turbolinksClassic.js x: 5 commits (all time) y: 10 lines of code react_ujs/src/events/turbolinksClassicDeprecated.js x: 5 commits (all time) y: 11 lines of code lib/react/jsx.rb x: 27 commits (all time) y: 18 lines of code lib/react/server_rendering/bundle_renderer/console_polyfill.js x: 3 commits (all time) y: 6 lines of code lib/react/server_rendering/bundle_renderer/console_reset.js x: 3 commits (all time) y: 3 lines of code lib/react/server_rendering/bundle_renderer/timeout_polyfill.js x: 3 commits (all time) y: 23 lines of code react_ujs/src/getConstructor/fromGlobal.js x: 7 commits (all time) y: 12 lines of code react_ujs/src/getConstructor/fromRequireContext.js x: 3 commits (all time) y: 15 lines of code lib/react/rails/view_helper.rb x: 35 commits (all time) y: 11 lines of code lib/react/jsx/processor.rb x: 4 commits (all time) y: 9 lines of code lib/react/jsx/template.rb x: 10 commits (all time) y: 13 lines of code lib/react/rails.rb x: 17 commits (all time) y: 7 lines of code lib/react/server_rendering/environment_container.rb x: 2 commits (all time) y: 12 lines of code
368.0
lines of code
  min: 1.0
  average: 36.71
  25th percentile: 10.5
  median: 19.0
  75th percentile: 34.5
  max: 368.0
0 112.0
commits (all time)
min: 1.0 | average: 18.14 | 25th percentile: 5.0 | median: 10.0 | 75th percentile: 24.0 | max: 112.0

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

lib/react/server_rendering/webpacker_manifest_container.rb x: 9 contributors (all time) y: 76 lines of code lib/assets/javascripts/react_ujs.js x: 17 contributors (all time) y: 368 lines of code react_ujs/index.js x: 6 contributors (all time) y: 115 lines of code react_ujs/src/renderHelpers.js x: 2 contributors (all time) y: 22 lines of code react_ujs/src/events/turbolinks.js x: 4 contributors (all time) y: 8 lines of code lib/react/rails/version.rb x: 9 contributors (all time) y: 5 lines of code react-rails.gemspec x: 26 contributors (all time) y: 39 lines of code lib/react/jsx/sprockets_strategy.rb x: 6 contributors (all time) y: 35 lines of code lib/react/rails/railtie.rb x: 30 contributors (all time) y: 89 lines of code lib/react/rails/component_mount.rb x: 10 contributors (all time) y: 52 lines of code lib/generators/react/component_generator.rb x: 13 contributors (all time) y: 219 lines of code lib/generators/templates/component.js.jsx.tsx x: 1 contributors (all time) y: 28 lines of code lib/react-rails.rb x: 7 contributors (all time) y: 9 lines of code lib/generators/react/install_generator.rb x: 13 contributors (all time) y: 104 lines of code lib/generators/templates/server_rendering_pack.js x: 3 contributors (all time) y: 3 lines of code lib/react.rb x: 4 contributors (all time) y: 20 lines of code lib/react/jsx/jsx_transformer.rb x: 7 contributors (all time) y: 23 lines of code react_ujs/src/events/detect.js x: 4 contributors (all time) y: 44 lines of code react_ujs/src/events/native.js x: 2 contributors (all time) y: 13 lines of code lib/generators/templates/component.es6.jsx x: 6 contributors (all time) y: 19 lines of code lib/generators/templates/component.js.jsx x: 9 contributors (all time) y: 19 lines of code lib/generators/templates/component.js.jsx.coffee x: 7 contributors (all time) y: 14 lines of code lib/react/server_rendering/exec_js_renderer.rb x: 8 contributors (all time) y: 42 lines of code lib/react/rails/asset_variant.rb x: 3 contributors (all time) y: 15 lines of code lib/generators/templates/react_server_rendering.rb x: 4 contributors (all time) y: 1 lines of code lib/react/rails/controller_lifecycle.rb x: 6 contributors (all time) y: 34 lines of code lib/react/server_rendering.rb x: 5 contributors (all time) y: 29 lines of code lib/react/server_rendering/bundle_renderer.rb x: 4 contributors (all time) y: 83 lines of code lib/react/server_rendering/manifest_container.rb x: 7 contributors (all time) y: 17 lines of code lib/react/server_rendering/yaml_manifest_container.rb x: 8 contributors (all time) y: 21 lines of code react_ujs/src/getConstructor/fromRequireContextWithGlobalFallback.js x: 2 contributors (all time) y: 19 lines of code react_ujs/src/events/pjax.js x: 1 contributors (all time) y: 12 lines of code react_ujs/src/events/turbolinksClassic.js x: 1 contributors (all time) y: 10 lines of code react_ujs/src/events/turbolinksClassicDeprecated.js x: 1 contributors (all time) y: 11 lines of code lib/generators/templates/server_rendering.js x: 1 contributors (all time) y: 1 lines of code lib/react/jsx.rb x: 9 contributors (all time) y: 18 lines of code lib/react/server_rendering/bundle_renderer/console_polyfill.js x: 1 contributors (all time) y: 6 lines of code lib/react/server_rendering/bundle_renderer/console_reset.js x: 1 contributors (all time) y: 3 lines of code lib/react/server_rendering/bundle_renderer/timeout_polyfill.js x: 1 contributors (all time) y: 23 lines of code react_ujs/src/getConstructor/fromRequireContext.js x: 1 contributors (all time) y: 15 lines of code lib/react/rails/view_helper.rb x: 13 contributors (all time) y: 11 lines of code lib/react/jsx/processor.rb x: 3 contributors (all time) y: 9 lines of code lib/react/jsx/template.rb x: 5 contributors (all time) y: 13 lines of code lib/react/rails.rb x: 7 contributors (all time) y: 7 lines of code
368.0
lines of code
  min: 1.0
  average: 36.71
  25th percentile: 10.5
  median: 19.0
  75th percentile: 34.5
  max: 368.0
0 30.0
contributors (all time)
min: 1.0 | average: 6.2 | 25th percentile: 2.0 | median: 5.0 | 75th percentile: 8.0 | max: 30.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): 1 points

lib/react/server_rendering/webpacker_manifest_container.rb x: 2 commits (90d) y: 76 lines of code
76.0
lines of code
  min: 76.0
  average: 76.0
  25th percentile: 76.0
  median: 76.0
  75th percentile: 76.0
  max: 76.0
0 2.0
commits (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

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

lib/react/server_rendering/webpacker_manifest_container.rb x: 2 contributors (90d) y: 76 lines of code
76.0
lines of code
  min: 76.0
  average: 76.0
  25th percentile: 76.0
  median: 76.0
  75th percentile: 76.0
  max: 76.0
0 2.0
contributors (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0