microsoft / pxt-blockly
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 455 files with 105,458 lines of code.
    • 4 very long files (5,492 lines of code)
    • 18 long files (11,750 lines of code)
    • 185 medium size files (72,845 lines of codeclsfd_ftr_w_mp_ins)
    • 60 small files (8,546 lines of code)
    • 188 very small files (6,825 lines of code)
5% | 11% | 69% | 8% | 6%
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
js5% | 11% | 69% | 7% | 6%
py0% | 0% | 0% | 43% | 56%
ps10% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
core11% | 20% | 38% | 17% | 12%
externs98% | 0% | 0% | 0% | 1%
blocks0% | 87% | 5% | 5% | 1%
msg0% | 0% | 100% | 0% | 0%
generators0% | 0% | 65% | 17% | 17%
scripts0% | 0% | 37% | 22% | 40%
ROOT0% | 0% | 0% | 62% | 37%
closure0% | 0% | 0% | 100% | 0%
appengine0% | 0% | 0% | 0% | 100%
shim0% | 0% | 0% | 0% | 100%
gh-pages0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
svg-externs.js
in externs
1514 153
workspace_svg.js
in core
1433 111
block_svg.js
in core
1289 86
block.js
in core
1256 120
pxt_blockly_functions.js
in blocks
953 59
css.js
in core
837 2
lists.js
in blocks
767 40
text.js
in blocks
738 39
procedures.js
in blocks
726 38
xml.js
in core
678 31
scrollbar.js
in core
653 43
logic.js
in blocks
648 32
constants.js
in core/renderers/common
644 25
workspace_comment_render_svg.js
in core
641 32
bubble.js
in core
594 34
constants.js
in core/renderers/zelos
586 44
toolbox.js
in core/toolbox
580 53
field.js
in core
566 59
marker_svg.js
in core/renderers/common
550 31
flyout_base.js
in core
545 38
math.js
in blocks
528 10
gesture.js
in core
516 49
field_textinput.js
in core
475 31
info.js
in core/renderers/common
444 23
lists.js
in generators/php
442 13
messages.js
in msg
438 -
dropdowndiv.js
in core
437 25
field_dropdown.js
in core
435 25
ab.js
in msg/js
434 -
ace.js
in msg/js
434 -
af.js
in msg/js
434 -
am.js
in msg/js
434 -
ar.js
in msg/js
434 -
ast.js
in msg/js
434 -
az.js
in msg/js
434 -
ba.js
in msg/js
434 -
bcc.js
in msg/js
434 -
be-tarask.js
in msg/js
434 -
be.js
in msg/js
434 -
bg.js
in msg/js
434 -
bn.js
in msg/js
434 -
br.js
in msg/js
434 -
bs.js
in msg/js
434 -
ca.js
in msg/js
434 -
cdo.js
in msg/js
434 -
cs.js
in msg/js
434 -
da.js
in msg/js
434 -
de.js
in msg/js
434 -
diq.js
in msg/js
434 -
dty.js
in msg/js
434 -
Files With Most Units (Top 20)
File# lines# units
svg-externs.js
in externs
1514 153
block.js
in core
1256 120
workspace_svg.js
in core
1433 111
block_svg.js
in core
1289 86
pxt_blockly_functions.js
in blocks
953 59
contextmenu_items.js
in core
431 59
field.js
in core
566 59
toolbox.js
in core/toolbox
580 53
workspace.js
in core
368 53
gesture.js
in core
516 49
constants.js
in core/renderers/zelos
586 44
scrollbar.js
in core
653 43
lists.js
in blocks
767 40
text.js
in blocks
738 39
procedures.js
in blocks
726 38
flyout_base.js
in core
545 38
workspace_comment_svg.js
in core
433 36
bubble.js
in core
594 34
category.js
in core/toolbox
340 33
logic.js
in blocks
648 32
Files With Long Lines (Top 20)

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

File# lines# units# long lines
javascript_compressed.js
in root
109 - 95
dart_compressed.js
in root
109 - 91
lua_compressed.js
in root
89 2 76
el.js
in msg/js
434 - 43
de.js
in msg/js
434 - 35
kn.js
in msg/js
434 - 34
hrx.js
in msg/js
434 - 32
nl.js
in msg/js
434 - 31
shn.js
in msg/js
434 - 31
fr.js
in msg/js
434 - 30
ro.js
in msg/js
434 - 30
br.js
in msg/js
434 - 29
nb.js
in msg/js
434 - 29
sq.js
in msg/js
434 - 29
sv.js
in msg/js
434 - 29
tcy.js
in msg/js
434 - 29
az.js
in msg/js
434 - 28
ca.js
in msg/js
434 - 28
et.js
in msg/js
434 - 28
es.js
in msg/js
434 - 27