dart-lang / dart-pad
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 121 files with 14,889 lines of code.
    • 1 very long files (2,443 lines of code)
    • 3 long files (2,409 lines of code)
    • 16 medium size files (4,605 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,895 lines of code)
    • 83 very small files (2,537 lines of code)
16% | 16% | 30% | 19% | 17%
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
dart23% | 23% | 20% | 15% | 16%
scss0% | 0% | 68% | 9% | 21%
html0% | 0% | 46% | 49% | 4%
css0% | 0% | 100% | 0% | 0%
proto0% | 0% | 0% | 100% | 0%
yaml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib/src77% | 17% | 0% | 0% | 5%
lib0% | 58% | 19% | 20% | 1%
web/styles0% | 0% | 62% | 14% | 22%
lib/sharing0% | 0% | 71% | 14% | 14%
lib/elements0% | 0% | 48% | 28% | 23%
lib/scss0% | 0% | 81% | 0% | 18%
web0% | 0% | 37% | 53% | 8%
web/example0% | 0% | 44% | 19% | 35%
lib/editing0% | 0% | 68% | 27% | 4%
lib/core0% | 0% | 73% | 0% | 26%
lib/services0% | 0% | 0% | 57% | 42%
tool0% | 0% | 0% | 100% | 0%
protos0% | 0% | 0% | 100% | 0%
lib/workshops0% | 0% | 0% | 0% | 100%
lib/inject0% | 0% | 0% | 0% | 100%
web/scripts0% | 0% | 0% | 0% | 100%
lib/util0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
lib/modules0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
dart_services.pb.dart
in lib/src/protos
2443 82
embed.dart
in lib
973 47
playground.dart
in lib
894 53
dart_services.pbjson.dart
in lib/src/protos
542 -
workshops.dart
in lib
409 29
gists.dart
in lib/sharing
374 17
styles.scss
in web/styles
348 -
embed.html
in web/example
317 -
index.html
in web
315 -
elements.dart
in lib/elements
304 32
editor_codemirror.dart
in lib/editing
304 14
workshops.scss
in web/styles
281 -
shared.scss
in lib/scss
275 -
elements.css
in lib/elements
274 -
layout_mixins.scss
in lib/scss
268 -
styles.scss
in web/styles/embed
248 -
editor_ui.dart
in lib/sharing
234 11
dialogs.dart
in lib
230 6
embed-html.html
in web
222 -
keys.dart
in lib/core
202 6
embed-flutter.html
in web
199 -
execution_iframe.dart
in lib/services
198 8
parameter_popup.dart
in lib
195 7
tab_expand_controller.dart
in lib/elements
194 10
grind.dart
in tool
192 5
embed-dart.html
in web
189 -
embed-inline.html
in web
189 -
completion.dart
in lib
186 3
workshops.html
in web
185 -
proto
dart_services.proto
in protos
175 -
documentation.dart
in lib
158 6
analysis_results_controller.dart
in lib/elements
152 8
inject.html
in web/example
137 -
mutable_gist.dart
in lib/sharing
120 8
editor.dart
in lib/editing
120 7
shared.scss
in web/styles
103 -
playground_context.dart
in lib
102 7
styles_light.scss
in web/styles/embed
101 -
styles_dark.scss
in web/styles/embed
98 -
query_params.dart
in lib/util
95 4
dialog.dart
in lib/elements
93 4
inject_embed.dart
in lib/inject
91 7
inject_parser.dart
in lib/inject
87 4
colors.scss
in lib/scss
85 -
dartservices.dart
in lib/services
82 1
picker.dart
in web/example
81 8
bind.dart
in lib/elements
80 7
hljs-dartpad-dark.scss
in web/styles
72 -
exercise_metadata.dart
in lib/sharing
65 -
sample.dart
in lib/src
65 5
Files With Most Units (Top 20)
File# lines# units
dart_services.pb.dart
in lib/src/protos
2443 82
playground.dart
in lib
894 53
embed.dart
in lib
973 47
elements.dart
in lib/elements
304 32
workshops.dart
in lib
409 29
gists.dart
in lib/sharing
374 17
editor_codemirror.dart
in lib/editing
304 14
editor_ui.dart
in lib/sharing
234 11
tab_expand_controller.dart
in lib/elements
194 10
execution_iframe.dart
in lib/services
198 8
mutable_gist.dart
in lib/sharing
120 8
analysis_results_controller.dart
in lib/elements
152 8
picker.dart
in web/example
81 8
inject_embed.dart
in lib/inject
91 7
playground_context.dart
in lib
102 7
bind.dart
in lib/elements
80 7
ga.dart
in lib/src
62 7
editor.dart
in lib/editing
120 7
parameter_popup.dart
in lib
195 7
dialogs.dart
in lib
230 6
Files With Long Lines (Top 3)

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

File# lines# units# long lines
dart_services.pbjson.dart
in lib/src/protos
542 - 17
embed.html
in web/example
317 - 10
index.html
in web
315 - 5