awslabs / athena-glue-service-logs
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 112 units with 1,102 lines of code in units (88.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)
    • 3 simple units (38 lines of code)
    • 109 very simple units (1,064 lines of code)
0% | 0% | 0% | 3% | 96%
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% | 3% | 96%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
athena_glue_service_logs/partitioners0% | 0% | 0% | 31% | 68%
athena_glue_service_logs0% | 0% | 0% | <1% | 99%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def find_recent_partitions()
in athena_glue_service_logs/partitioners/grouped_date_partitioner.py
19 10 2
def find_recent_partitions()
in athena_glue_service_logs/partitioners/date_partitioner.py
14 9 2
def create_tables_if_needed()
in athena_glue_service_logs/job.py
5 7 1
def _build_storage_descriptor()
in athena_glue_service_logs/alb.py
15 5 2
def _apply_mappings()
in athena_glue_service_logs/alb.py
17 5 2
def _build_storage_descriptor()
in athena_glue_service_logs/cloudfront.py
42 5 2
def _build_storage_descriptor()
in athena_glue_service_logs/cloudfront.py
39 5 2
def _build_storage_descriptor()
in athena_glue_service_logs/s3_access.py
40 5 2
def _build_storage_descriptor()
in athena_glue_service_logs/cloudtrail.py
100 5 2
def conversion_actions()
in athena_glue_service_logs/cloudtrail.py
10 5 2
def get_first_hivecompatible_date_in_prefix()
in athena_glue_service_logs/utils.py
7 5 3
def _build_storage_descriptor()
in athena_glue_service_logs/vpc_flow.py
17 5 2
def _build_storage_descriptor()
in athena_glue_service_logs/vpc_flow.py
15 5 2
def _build_storage_descriptor()
in athena_glue_service_logs/alb.py
17 4 2
def run()
in athena_glue_service_logs/converter.py
22 4 1
def _build_storage_descriptor()
in athena_glue_service_logs/elb_classic.py
36 4 2
def build_partitions_from_s3()
in athena_glue_service_logs/partitioners/grouped_date_partitioner.py
10 4 1
def build_partitions_from_s3()
in athena_glue_service_logs/partitioners/date_partitioner.py
11 4 1
def create_partitions()
in athena_glue_service_logs/catalog_manager.py
8 4 2
def get_partition_values()
in athena_glue_service_logs/catalog_manager.py
12 4 1