aws-samples / dicom-metadata-extractor-serverless-datalake
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 39 units with 541 lines of code in units (42.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 9 simple units (270 lines of code)
    • 30 very simple units (271 lines of code)
0% | 0% | 0% | 49% | 50%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 0% | 49% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 57% | 42%
src/utils0% | 0% | 0% | 40% | 59%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def get()
in src/s3wrapper.py
37 8 1
88 8 2
def unzip()
in src/utils/utils.py
16 8 1
def validate_vm()
in src/utils/tags.py
27 7 1
def convert_SQ()
in src/utils/tags.py
14 7 1
def transform()
in src/dicomwrapper.py
25 6 3
def inspect()
in src/app.py
25 6 2
def convert_DA()
in src/utils/tags.py
15 6 1
def convert_PN()
in src/utils/tags.py
23 6 1
def serialize_sets()
in src/utils/tags.py
6 5 1
def convert_DT()
in src/utils/tags.py
14 5 1
def tar()
in src/utils/utils.py
18 5 1
def download_file()
in src/s3wrapper.py
27 4 1
def convert_OB()
in src/utils/tags.py
11 4 1
def return_float()
in src/utils/tags.py
8 4 1
def set_file_ext()
in src/s3wrapper.py
9 3 2
def output()
in src/app.py
27 3 1
def return_integer()
in src/utils/tags.py
8 3 1
def vr_select()
in src/utils/tags.py
46 3 1
def getname()
in src/utils/utils.py
7 3 1