aws-samples / aws-cdk-healthlake-knowledge-analyzer
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,211 units with 21,390 lines of code in units (76.0% of code).
    • 6 very long units (812 lines of code)
    • 55 long units (3,508 lines of code)
    • 183 medium size units (5,626 lines of code)
    • 292 small units (4,307 lines of code)
    • 1,675 very small units (7,137 lines of code)
3% | 16% | 26% | 20% | 33%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py3% | 16% | 26% | 20% | 33%
js0% | 0% | 62% | 8% | 28%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
assets/lambda_helper_neptune/python/rdflib4% | 17% | 25% | 19% | 33%
assets/ka-server-webapp37% | 12% | 19% | 10% | 20%
assets/lambda_helper_neptune/python0% | 10% | 26% | 22% | 39%
assets/lambda_helper_neptune/python/isodate0% | 16% | 38% | 23% | 21%
knowledge_analyzer0% | 25% | 56% | 8% | 9%
assets/lambda_helper/python0% | 11% | 18% | 35% | 35%
assets/ka-webapp/src0% | 0% | 87% | 12% | 0%
assets/lambda0% | 0% | 97% | 0% | 2%
ROOT0% | 0% | 0% | 100% | 0%
assets/ka-webapp/src/store0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def node()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/notation3.py
158 43 5
def processURI()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/pyRdfa/__init__.py
150 27 3
def fetchDocNode()
in assets/ka-server-webapp/controller.py
147 1 1
def _parse_1_1()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/pyRdfa/parse.py
130 35 5
def __init__()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/pyRdfa/termorcurie.py
120 27 4
def property_element_start()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/rdfxml.py
107 11 4
def __init__()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/pyRdfa/state.py
100 21 7
def manchesterSyntax()
in assets/lambda_helper_neptune/python/rdflib/extras/infixowl.py
99 30 4
def graph_from_source()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/pyRdfa/__init__.py
96 7 5
def convert()
in assets/lambda_helper_neptune/python/rdflib/tools/csv2rdf.py
87 31 2
def open()
in assets/lambda_helper_neptune/python/rdflib/plugins/sleepycat.py
85 14 3
def directive()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/notation3.py
82 24 3
def strconst()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/notation3.py
82 9 4
def processURI()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/pyMicrodata/__init__.py
79 13 3
def main()
in assets/lambda_helper_neptune/python/rdflib/tools/csv2rdf.py
78 38 0
def generateVoID()
in assets/lambda_helper_neptune/python/rdflib/void.py
77 16 4
def _parseNoCache()
in assets/lambda_helper_neptune/python/pyparsing.py
76 36 5
def _parse_1_0()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/pyRdfa/parse.py
74 19 5
def uri_ref2()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/notation3.py
73 22 4
def node_element_start()
in assets/lambda_helper_neptune/python/rdflib/plugins/parsers/rdfxml.py
73 25 4