aws-quickstart / quickstart-ibm-icp-for-data
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 89 units with 1,482 lines of code in units (21.9% of code).
    • 3 very long units (430 lines of code)
    • 3 long units (195 lines of code)
    • 10 medium size units (314 lines of code)
    • 18 small units (259 lines of code)
    • 55 very small units (284 lines of code)
29% | 13% | 21% | 17% | 19%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py29% | 13% | 21% | 17% | 19%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts46% | 21% | 15% | 6% | 10%
scripts/yapl0% | 0% | 30% | 35% | 33%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def installOCP()
in scripts/cpd_install.py
206 18 2
def installCPD()
in scripts/cpd_install.py
115 16 2
def main()
in scripts/cpd_install.py
109 12 2
def configureOCS()
in scripts/cpd_install.py
70 10 2
def preparePXInstall()
in scripts/cpd_install.py
69 11 2
def configurePx()
in scripts/cpd_install.py
56 7 2
def _exceptionStackTTB()
in scripts/yapl/Trace.py
42 13 4
def getInputArgs()
in scripts/yapl/Utilities.py
41 15 2
def configureEFS()
in scripts/cpd_install.py
40 7 1
def _exceptionStackBTT()
in scripts/yapl/Trace.py
36 9 4
def installAssemblies()
in scripts/cpd_install.py
28 5 3
def _log()
in scripts/yapl/Trace.py
27 10 5
def __init()
in scripts/cpd_install.py
27 2 4
def updateScc()
in scripts/cpd_install.py
26 5 2
def listFilesOfType()
in scripts/yapl/Utilities.py
24 11 2
def labelNodes()
in scripts/cpd_install.py
23 4 2
def getS3Object()
in scripts/cpd_install.py
20 5 4
def exportLogs()
in scripts/yapl/LogExporter.py
19 8 2
def bucketExists()
in scripts/yapl/S3Helper.py
19 5 2
def createBucket()
in scripts/yapl/S3Helper.py
18 5 3