awslabs / aws-orbit-workbench
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 855 units with 10,478 lines of code in units (17.4% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (146 lines of code)
    • 20 medium complex units (1,142 lines of code)
    • 64 simple units (1,652 lines of code)
    • 770 very simple units (7,538 lines of code)
0% | 1% | 10% | 15% | 71%
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% | 1% | 11% | 16% | 71%
tsx0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cli/aws_orbit0% | 2% | 8% | 14% | 74%
sdk/aws_orbit_sdk0% | 0% | 17% | 11% | 71%
images/orbit-controller0% | 0% | 10% | 9% | 79%
jupyterlab_orbit/jupyterlab_orbit0% | 0% | 18% | 48% | 32%
images/jupyter-user0% | 0% | 23% | 26% | 50%
scripts0% | 0% | 26% | 14% | 58%
plugins/redshift0% | 0% | 0% | 60% | 39%
plugins/emr_on_eks0% | 0% | 0% | 75% | 25%
plugins/custom_cfn0% | 0% | 0% | 20% | 80%
jupyterlab_orbit/src0% | 0% | 0% | 0% | 100%
images/utility-data0% | 0% | 0% | 0% | 100%
trial0% | 0% | 0% | 0% | 100%
plugins/team_script_launcher0% | 0% | 0% | 0% | 100%
plugins/code_commit0% | 0% | 0% | 0% | 100%
plugins/hello_world0% | 0% | 0% | 0% | 100%
plugins/lustre0% | 0% | 0% | 0% | 100%
plugins/sm-operator0% | 0% | 0% | 0% | 100%
plugins/ray0% | 0% | 0% | 0% | 100%
plugins/voila0% | 0% | 0% | 0% | 100%
plugins/overprovisioning0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def deploy_env()
in cli/aws_orbit/remote_files/eksctl.py
146 27 2
def _dump_pod()
in jupyterlab_orbit/jupyterlab_orbit/handlers/containers.py
92 22 1
def data_profile()
in sdk/aws_orbit_sdk/transformations.py
84 21 2
def fetch_toolkit_data()
in cli/aws_orbit/models/context.py
70 21 1
def list_env()
in cli/aws_orbit/commands/list.py
44 17 2
def deploy_teams()
in cli/aws_orbit/remote_files/deploy.py
92 16 2
def process_policies()
in cli/aws_orbit/remote_files/cdk/team_builders/iam.py
49 15 2
def generate_manifest()
in cli/aws_orbit/remote_files/eksctl.py
83 15 3
def prepareNotebook()
in images/jupyter-user/python-utils/notebook_runner.py
65 14 3
def delete_kubeflow_roles()
in cli/aws_orbit/cleanup.py
41 14 3
def handler()
in cli/aws_orbit/remote_files/cdk/lambda_sources/cognito_post_authentication/index.py
53 14 4
def tail_logs()
in sdk/aws_orbit_sdk/controller.py
33 13 2
def _network_interface()
in cli/aws_orbit/cleanup.py
41 13 1
def _download_demo_data()
in scripts/download_demo_data.py
30 13 3
def build_podsetting()
in sdk/aws_orbit_sdk/controller.py
35 12 4
def replication_worker()
in images/orbit-controller/src/orbit_controller/operators/imagereplication_operator.py
111 11 4
def spark_submit()
in sdk/aws_orbit_sdk/emr.py
59 11 2
def get_team_clusters()
in sdk/aws_orbit_sdk/emr.py
41 11 1
def _get_redshift_functions()
in sdk/aws_orbit_sdk/database.py
35 11 1
def _add_ssm_param_injector()
in cli/aws_orbit/models/manifest.py
39 11 1