aws-quickstart / quickstart-cloud9-ide
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 2,698 units with 45,880 lines of code in units (62.6% of code).
    • 234 very long units (24,102 lines of code)
    • 27 long units (1,776 lines of code)
    • 204 medium size units (6,093 lines of code)
    • 404 small units (5,915 lines of code)
    • 1,829 very small units (7,994 lines of code)
52% | 3% | 13% | 12% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py52% | 3% | 13% | 12% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/c9bootstrap/idna95% | 0% | 3% | <1% | <1%
functions/source/c9InstanceProfile/idna95% | 0% | 3% | <1% | <1%
functions/source/c9DiskResize/idna95% | 0% | 3% | <1% | <1%
functions/source/c9bootstrap/requests0% | 13% | 27% | 25% | 33%
functions/source/c9InstanceProfile/requests0% | 13% | 27% | 25% | 33%
functions/source/c9DiskResize/requests0% | 13% | 27% | 25% | 33%
functions/source/c9bootstrap/urllib30% | 6% | 25% | 27% | 39%
functions/source/c9InstanceProfile/urllib30% | 6% | 25% | 27% | 39%
functions/source/c9DiskResize/urllib30% | 6% | 25% | 27% | 39%
functions/source/c9bootstrap/chardet0% | 6% | 21% | 30% | 41%
functions/source/c9InstanceProfile/chardet0% | 6% | 21% | 30% | 41%
functions/source/c9DiskResize/chardet0% | 6% | 21% | 30% | 41%
functions/source/c9bootstrap/crhelper0% | 0% | 32% | 31% | 36%
functions/source/c9InstanceProfile/crhelper0% | 0% | 32% | 31% | 36%
functions/source/c9DiskResize/crhelper0% | 0% | 32% | 31% | 36%
functions/source/c9DiskResize0% | 0% | 0% | 65% | 34%
functions/source/c9bootstrap0% | 0% | 0% | 64% | 35%
functions/source/c9InstanceProfile0% | 0% | 0% | 51% | 48%
functions/source/c9bootstrap/certifi0% | 0% | 0% | 0% | 100%
functions/source/c9InstanceProfile/certifi0% | 0% | 0% | 0% | 100%
functions/source/c9DiskResize/certifi0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def _seg_0()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_1()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_2()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_3()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_4()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_5()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_6()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_7()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_8()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_9()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_10()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_11()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_12()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_13()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_14()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_15()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_16()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_17()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_18()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0
def _seg_19()
in functions/source/c9bootstrap/idna/uts46data.py
103 1 0