aws-samples / aws-autonomous-driving-data-lake-mwaa-ros-bag-image-extraction-pipeline
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 30 units with 535 lines of code in units (16.2% 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)
    • 4 simple units (178 lines of code)
    • 26 very simple units (357 lines of code)
0% | 0% | 0% | 33% | 66%
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% | 33% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
service/app0% | 0% | 0% | 41% | 58%
dags/processing0% | 0% | 0% | 30% | 69%
plugins/sensors0% | 0% | 0% | 26% | 73%
infrastructure0% | 0% | 0% | 0% | 100%
service0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def parse_bag()
in service/app/engine.py
60 8 1
def s3_sync_results()
in service/app/engine.py
21 8 3
def process_labels()
in dags/processing/processing.py
80 8 4
def get_wildcard_metadata_key()
in plugins/sensors/s3_metadata_sensor.py
17 7 6
def convert_csv_to_parquet()
in service/app/engine.py
14 5 2
def make_config_yaml()
in service/app/engine.py
28 5 2
def label_images()
in dags/processing/processing.py
13 5 1
def download_bag_file()
in service/app/engine.py
29 4 1
def upload_file()
in service/app/engine.py
12 4 3
def wait_for_extraction()
in dags/processing/processing.py
18 4 1
def draw_bounding_boxes()
in dags/processing/processing.py
9 4 1
def __init__()
in plugins/sensors/s3_metadata_sensor.py
28 4 10
def local_bags()
in service/app/engine.py
3 3 1
def absolute_file_paths()
in service/app/engine.py
4 3 1
def determine_workload()
in dags/processing/processing.py
9 3 1
def run_fargate_task()
in dags/processing/processing.py
54 3 1
def draw_bounding_box()
in dags/processing/processing.py
32 3 2
def make_dir()
in service/app/bag_to_csv.py
6 2 1
def print_files_in_path()
in service/app/engine.py
5 2 1
def check_idx()
in service/check_pngs.py
5 2 3