tensorflow / tfhub.dev
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 97 units with 825 lines of code in units (43.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (29 lines of code)
    • 7 simple units (149 lines of code)
    • 89 very simple units (647 lines of code)
0% | 0% | 3% | 18% | 78%
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% | 3% | 18% | 78%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tools0% | 0% | 3% | 18% | 78%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _consume_metadata()
in tools/validator.py
29 11 1
def validate_asset_path()
in tools/validator.py
24 7 5
def _check_valid_remote_asset()
in tools/validator.py
26 7 2
34 7 4
def _assert_valid_url()
in tools/tags_validator.py
16 7 2
def _is_asset_path_modified()
in tools/validator.py
17 6 1
def assert_correct_content()
in tools/validator.py
18 6 3
def _consume_description()
in tools/validator.py
14 6 1
12 5 3
def validate()
in tools/validator.py
24 5 3
def main()
in tools/tags_validator_main.py
18 5 1
def _assert_tag_value_is_url()
in tools/yaml_parser.py
12 5 2
def _validate_file_name()
in tools/validator.py
8 4 1
9 4 3
11 4 3
def __init__()
in tools/tags_validator.py
23 4 5
def _assert_valid_item_level_keys()
in tools/tags_validator.py
12 4 3
def _validate_yaml_config()
in tools/tags_validator.py
14 4 3
def from_yaml()
in tools/yaml_parser.py
13 4 3
def from_yaml()
in tools/yaml_parser.py
14 4 3