boto / botocore
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 1,519 units with 11,874 lines of code in units (81.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (34 lines of code)
    • 18 medium complex units (521 lines of code)
    • 113 simple units (2,399 lines of code)
    • 1,387 very simple units (8,920 lines of code)
0% | <1% | 4% | 20% | 75%
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% | 4% | 20% | 75%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
botocore0% | <1% | 4% | 20% | 75%
botocore/vendored0% | 0% | 15% | 8% | 76%
botocore/crt0% | 0% | 10% | 60% | 29%
botocore/retries0% | 0% | 0% | 3% | 96%
botocore/vendored/requests/packages/urllib30% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
botocore/vendored/requests0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def create_urllib3_context()
in botocore/httpsession.py
34 29 4
def print_()
in botocore/vendored/six.py
50 22 2
def _endpoint_for_partition()
in botocore/regions.py
37 17 7
def compute_client_args()
in botocore/args.py
65 15 8
def create_client()
in botocore/session.py
57 14 11
def _windows_shell_split()
in botocore/compat.py
39 13 1
def _partition_parameters()
in botocore/serialize.py
35 12 5
def construct_endpoint()
in botocore/regions.py
29 12 6
14 12 2
def _should_sha256_sign_payload()
in botocore/crt/auth.py
14 12 2
def _should_sha256_sign_payload()
in botocore/crt/auth.py
14 12 2
25 12 1
def _use_accelerate_endpoint()
in botocore/utils.py
15 12 1
def _send_output()
in botocore/awsrequest.py
18 12 4
def send()
in botocore/httpsession.py
52 11 2
def check_for_200_error()
in botocore/handlers.py
9 11 2
def merge_dicts()
in botocore/utils.py
14 11 3
def _generate_skeleton()
in botocore/utils.py
25 11 4
def _pick_region_values()
in botocore/client.py
9 11 4
def raw_config_parse()
in botocore/configloader.py
27 10 2