microsoft / pxt-adafruit
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 32 files with 39,530 lines of code.
    • 2 very long files (37,292 lines of code)
    • 1 long files (941 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (500 lines of code)
    • 26 very small files (797 lines of code)
94% | 2% | 0% | 1% | 2%
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
brd100% | 0% | 0% | 0% | 0%
sch100% | 0% | 0% | 0% | 0%
ts0% | 55% | 0% | 21% | 22%
less0% | 0% | 0% | 62% | 37%
tsx0% | 0% | 0% | 0% | 100%
jsproj0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
schematics100% | 0% | 0% | 0% | 0%
sim/visuals0% | 90% | 0% | 0% | 9%
sim0% | 0% | 0% | 100% | 0%
fieldeditors0% | 0% | 0% | 93% | 6%
theme0% | 0% | 0% | 62% | 37%
pxtwapp/pxtwapp0% | 0% | 0% | 0% | 100%
libs/circuit-playground0% | 0% | 0% | 0% | 100%
libs/light0% | 0% | 0% | 0% | 100%
editor0% | 0% | 0% | 0% | 100%
libs/cptest0% | 0% | 0% | 0% | 100%
sim/public0% | 0% | 0% | 0% | 100%
libs/servo0% | 0% | 0% | 0% | 100%
libs/accelerometer0% | 0% | 0% | 0% | 100%
libs/blocksprj0% | 0% | 0% | 0% | 100%
Longest Files (Top 32)
File# lines# units
brd
circuitplay rev G.brd
in schematics
27891 -
sch
circuitplay rev G.sch
in schematics
9401 -
board.ts
in sim/visuals
941 32
dalboard.ts
in sim
194 6
field_lights.ts
in fieldeditors
169 8
style.less
in theme
137 -
pincontrol.ts
in sim/visuals
87 5
extension.tsx
in editor
77 2
jsproj
pxtwapp.jsproj
in pxtwapp/pxtwapp
75 -
input.ts
in libs/circuit-playground
49 1
blockly-toolbox.less
in theme
48 -
main.ts
in libs/cptest
46 5
config.ts
in libs/circuit-playground
45 -
panic.cpp
in libs/circuit-playground
44 1
msapp-error.js
in pxtwapp/pxtwapp
40 3
msapp-error.css
in pxtwapp/pxtwapp
36 -
defaultstrip.ts
in libs/light
30 1
neopixeloverrides.ts
in libs/light
30 -
fieldeditors.less
in theme
27 -
simulator.html
in sim/public
26 -
msapp-error.html
in pxtwapp/pxtwapp
24 -
ns.ts
in libs/circuit-playground
21 1
create.ts
in libs/light
20 2
onboardstrip.ts
in libs/light
20 1
extension.ts
in fieldeditors
12 1
defaultlightsoverrides.ts
in libs/light
11 3
boardview.ts
in sim/visuals
10 -
blockly.less
in theme
6 -
workerConfig.js
in sim/public
5 -
targetoverrides.ts
in libs/servo
4 -
axis.h
in libs/accelerometer
3 -
main.ts
in libs/blocksprj
1 -
Files With Most Units (Top 15)
File# lines# units
board.ts
in sim/visuals
941 32
field_lights.ts
in fieldeditors
169 8
dalboard.ts
in sim
194 6
main.ts
in libs/cptest
46 5
pincontrol.ts
in sim/visuals
87 5
defaultlightsoverrides.ts
in libs/light
11 3
msapp-error.js
in pxtwapp/pxtwapp
40 3
extension.tsx
in editor
77 2
create.ts
in libs/light
20 2
extension.ts
in fieldeditors
12 1
input.ts
in libs/circuit-playground
49 1
ns.ts
in libs/circuit-playground
21 1
panic.cpp
in libs/circuit-playground
44 1
defaultstrip.ts
in libs/light
30 1
onboardstrip.ts
in libs/light
20 1
Files With Long Lines (Top 10)

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

File# lines# units# long lines
brd
circuitplay rev G.brd
in schematics
27891 - 65
field_lights.ts
in fieldeditors
169 8 25
board.ts
in sim/visuals
941 32 16
sch
circuitplay rev G.sch
in schematics
9401 - 14
jsproj
pxtwapp.jsproj
in pxtwapp/pxtwapp
75 - 4
dalboard.ts
in sim
194 6 3
extension.tsx
in editor
77 2 2
extension.ts
in fieldeditors
12 1 1
pincontrol.ts
in sim/visuals
87 5 1
blockly-toolbox.less
in theme
48 - 1