microsoft / pxt-chibitronics
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 67 files with 3,687 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (632 lines of code)
    • 2 medium size files (562 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (974 lines of code)
    • 56 very small files (1,519 lines of code)
0% | 17% | 15% | 26% | 41%
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
ts0% | 29% | 25% | 22% | 22%
cpp0% | 0% | 0% | 43% | 56%
h0% | 0% | 0% | 32% | 67%
less0% | 0% | 0% | 0% | 100%
jsproj0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
sim/visuals0% | 66% | 22% | 0% | 11%
editor0% | 0% | 100% | 0% | 0%
libs/core0% | 0% | 0% | 40% | 59%
sim/state0% | 0% | 0% | 55% | 44%
sim0% | 0% | 0% | 100% | 0%
windowsapp0% | 0% | 0% | 0% | 100%
theme0% | 0% | 0% | 0% | 100%
sim/public0% | 0% | 0% | 0% | 100%
libs/scope0% | 0% | 0% | 0% | 100%
cmds0% | 0% | 0% | 0% | 100%
libs/blocksprj0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ltc.ts
in sim/visuals
632 19
extension.ts
in editor
349 18
neopixel.ts
in sim/visuals
213 11
RefCollection.cpp
in libs/core
159 11
ltcboard.ts
in sim
128 7
buttonpairsim.ts
in sim/state
126 5
misc.ts
in sim/state
125 38
pxt.h
in libs/core
118 -
core.cpp
in libs/core
109 17
lights.ts
in libs/core
106 13
input.cpp
in libs/core
103 5
scopesvg.ts
in sim/visuals
99 -
pxt.cpp
in libs/core
90 9
rgb.ts
in libs/core
82 10
jsproj
app.jsproj
in windowsapp
75 -
edgeconnectorsim.ts
in sim/state
70 8
string.cpp
in libs/core
62 4
style.less
in theme
53 -
array.cpp
in libs/core
51 10
modulator.less
in theme
50 -
edgeconnector.ts
in sim/state
47 7
RefObject.h
in libs/core
42 3
RefRecord.cpp
in libs/core
42 6
RefCollection.h
in libs/core
39 5
pins.ts
in libs/core
37 3
RefAction.h
in libs/core
35 2
RefCounted.cpp
in libs/core
34 5
pins.h
in libs/core
31 -
variant.cpp
in libs/core
30 2
RefMap.cpp
in libs/core
27 3
msapp-error.html
in windowsapp
26 -
basic.cpp
in libs/core
25 3
simulator.html
in sim/public
25 -
ns.ts
in libs/core
24 3
serial.cpp
in libs/scope
24 4
RefRecord.h
in libs/core
22 -
pins.cpp
in libs/core
22 6
rgb.cpp
in libs/core
21 1
blockly-toolbox.less
in theme
20 -
RefRefLocal.h
in libs/core
19 -
control.ts
in libs/core
19 5
msapp-error.js
in windowsapp
19 2
RefLocal.h
in libs/core
18 -
RefMap.h
in libs/core
18 -
RefAction.cpp
in libs/core
17 2
buttonpair.ts
in sim/state
16 2
thermometer.ts
in sim/state
16 1
RefCounted.h
in libs/core
15 -
RefLocal.cpp
in libs/core
15 2
sensing.ts
in libs/core
15 2
Files With Most Units (Top 20)
File# lines# units
misc.ts
in sim/state
125 38
ltc.ts
in sim/visuals
632 19
extension.ts
in editor
349 18
core.cpp
in libs/core
109 17
lights.ts
in libs/core
106 13
RefCollection.cpp
in libs/core
159 11
neopixel.ts
in sim/visuals
213 11
array.cpp
in libs/core
51 10
rgb.ts
in libs/core
82 10
pxt.cpp
in libs/core
90 9
edgeconnectorsim.ts
in sim/state
70 8
ltcboard.ts
in sim
128 7
edgeconnector.ts
in sim/state
47 7
RefRecord.cpp
in libs/core
42 6
pins.cpp
in libs/core
22 6
RefCollection.h
in libs/core
39 5
RefCounted.cpp
in libs/core
34 5
control.ts
in libs/core
19 5
input.cpp
in libs/core
103 5
buttonpairsim.ts
in sim/state
126 5
Files With Long Lines (Top 6)

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

File# lines# units# long lines
scopesvg.ts
in sim/visuals
99 - 14
ltc.ts
in sim/visuals
632 19 10
neopixel.ts
in sim/visuals
213 11 8
jsproj
app.jsproj
in windowsapp
75 - 4
extension.ts
in editor
349 18 2
buttonpairsim.ts
in sim/state
126 5 1