awslabs / genomics-tertiary-analysis-and-machine-learning-using-amazon-sagemaker
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 47 units with 390 lines of code in units (23.5% 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 (79 lines of code)
    • 43 very simple units (311 lines of code)
0% | 0% | 0% | 20% | 79%
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% | 20% | 79%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/GenomicsLearningCode/setup/crhelper0% | 0% | 0% | 23% | 76%
source/GenomicsLearningCode/setup0% | 0% | 0% | 0% | 100%
source/GenomicsLearningCode/resources/scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __call__()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
24 10 3
def format()
in source/GenomicsLearningCode/setup/crhelper/log_helper.py
25 8 2
def _polling_init()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
13 7 2
def _remove_polling()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
17 6 1
def _cfn_response()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
8 5 2
def __init__()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
39 4 6
def _crhelper_init()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
23 4 3
def _send()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
17 4 4
def setup()
in source/GenomicsLearningCode/setup/crhelper/log_helper.py
11 4 4
def _send_response()
in source/GenomicsLearningCode/setup/crhelper/utils.py
24 4 2
def check_build_job_status()
in source/GenomicsLearningCode/setup/lambda.py
19 4 2
def list_to_dict()
in source/GenomicsLearningCode/resources/scripts/process_clinvar.py
2 3 1
def _wait_for_cwlogs()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
7 3 2
def _wrap_function()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
7 3 2
def _cleanup_response()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
4 3 1
def _log_setup()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
7 2 3
def _get_func()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
5 2 1
def _rand_string()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
2 2 1
def download_to_local()
in source/GenomicsLearningCode/resources/scripts/process_clinvar.py
4 1 1
def generate_physical_id()
in source/GenomicsLearningCode/setup/crhelper/resource_helper.py
6 1 2