aws-samples / amazon-eks-autonomous-driving-data-service
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 135 units with 1,961 lines of code in units (36.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (241 lines of code)
    • 15 simple units (455 lines of code)
    • 115 very simple units (1,265 lines of code)
0% | 0% | 12% | 23% | 64%
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% | 12% | 23% | 64%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 0% | 31% | 26% | 42%
a2d2/src0% | 0% | 3% | 21% | 74%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def extract_tar()
in scripts/s3-extract-tar.py
75 22 2
def __record_ros_msg()
in a2d2/src/rosbag_producer.py
19 12 5
def run()
in scripts/s3-extract-tar.py
46 12 1
def main()
in scripts/s3-extract-load.py
67 12 1
def __flush_bag()
in a2d2/src/rosbag_producer.py
34 11 1
def run()
in a2d2/src/rosbag_consumer.py
51 10 1
def __record_images_from_fs()
in a2d2/src/rosbag_producer.py
26 9 5
def __record_images_from_s3()
in a2d2/src/rosbag_producer.py
28 9 5
def __record_pcl_from_s3()
in a2d2/src/rosbag_producer.py
28 9 5
def __record_pcl_from_fs()
in a2d2/src/rosbag_producer.py
24 9 5
def extract_bus_data()
in scripts/extract-bus-data.py
66 9 1
def __next_round_robin_topic()
in a2d2/src/rosbag_producer.py
18 8 4
def __record_bus()
in a2d2/src/rosbag_producer.py
21 8 4
def __submit_batch_jobs()
in scripts/s3-extract-tar.py
51 8 3
def __init__()
in a2d2/src/rosbag_producer.py
49 7 6
18 7 1
def __close_bag()
in a2d2/src/rosbag_producer.py
25 6 2
def __write_ros_msg_to_bag()
in a2d2/src/rosbag_producer.py
10 6 6
def main()
in scripts/glue-etl-job.py
28 6 1
def s3_bucket_keys()
in scripts/extract-bus-data.py
12 6 4