aws-samples / aws-autonomous-driving-data-lake-ros-bag-scene-detection-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 69 units with 883 lines of code in units (47.0% 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 (106 lines of code)
    • 65 very simple units (777 lines of code)
0% | 0% | 0% | 12% | 87%
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% | 12% | 87%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
infrastructure/emr_trigger/lambda_source0% | 0% | 0% | 25% | 74%
service/app0% | 0% | 0% | 34% | 65%
spark_scripts0% | 0% | 0% | 8% | 91%
infrastructure/emr_launch0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
infrastructure0% | 0% | 0% | 0% | 100%
infrastructure/emr_orchestration0% | 0% | 0% | 0% | 100%
infrastructure/emr_trigger0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def process_file()
in service/app/main.py
35 9 5
def load_and_union_data()
in spark_scripts/synchronize_topics.py
20 7 2
def handler()
in infrastructure/emr_trigger/lambda_source/trigger.py
41 7 2
def union_all()
in spark_scripts/synchronize_topics.py
10 6 1
def point_in_lane()
in spark_scripts/detect_scenes.py
12 5 3
def obj_in_lane_detection()
in spark_scripts/detect_scenes.py
19 5 1
def summarize_person_scenes()
in spark_scripts/detect_scenes.py
33 5 1
def authorize_buckets()
in infrastructure/emr_launch/cluster_definition.py
13 5 3
def create_json_payload()
in spark_scripts/synchronize_topics.py
4 4 2
def is_object_in_lane()
in spark_scripts/detect_scenes.py
23 4 2
def people_in_scenes()
in spark_scripts/detect_scenes.py
9 4 1
def parse_yaml_val()
in service/app/main.py
8 4 2
def save_metadata_to_dynamo()
in service/app/main.py
13 4 4
def parse_s3_event()
in infrastructure/emr_trigger/lambda_source/trigger.py
12 4 1
def is_safe_to_run_new_execution()
in infrastructure/emr_trigger/lambda_source/trigger.py
8 4 2
def join_topics()
in spark_scripts/synchronize_topics.py
7 3 2
def create_master_time_df()
in spark_scripts/synchronize_topics.py
35 3 2
def get_nearest_image_point()
in spark_scripts/detect_scenes.py
10 3 3
def identify_nearest_lane_point()
in spark_scripts/detect_scenes.py
9 3 3
def upload_file()
in service/app/main.py
10 3 3