aws / aws-neuron-sdk
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 99 units with 1,875 lines of code in units (69.8% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (267 lines of code)
    • 8 medium complex units (373 lines of code)
    • 17 simple units (393 lines of code)
    • 72 very simple units (842 lines of code)
0% | 14% | 19% | 20% | 44%
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% | 14% | 19% | 20% | 44%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
_ext0% | 31% | 11% | 11% | 44%
src/helperscripts0% | 19% | 39% | 5% | 34%
src/neuron-gatherinfo0% | 0% | 11% | 36% | 51%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def hlpr_instructions()
in src/helperscripts/neuronsetuphelper.py
104 46 2
def run()
in _ext/sphinx_plotly_directive.py
163 33 6
def enumerate_release_manifest()
in src/helperscripts/neuronsetuphelper.py
70 23 2
def hlpr_build_pip_command()
in src/helperscripts/neuronsetuphelper.py
61 23 5
def hlpr_os_comp_setup_cmd()
in src/helperscripts/neuronsetuphelper.py
59 23 5
def run_code()
in _ext/sphinx_plotly_directive.py
60 17 5
def sanity_check()
in src/neuron-gatherinfo/neuron-gatherinfo.py
34 14 1
def main()
in src/neuron-gatherinfo/neuron-gatherinfo.py
44 11 0
def ZeroAllConst()
in src/neuron-gatherinfo/clear_params_tfpb.py
20 11 1
def cli_list_cmd()
in src/helperscripts/neuronsetuphelper.py
25 11 3
def print_node_type_info()
in src/neuron-gatherinfo/tf_neuron_check_model.py
34 10 1
def print_node_type_info()
in src/neuron-gatherinfo/mx_neuron_check_model.py
34 10 1
def mark_plot_labels()
in _ext/sphinx_plotly_directive.py
26 9 2
def copy_syslog()
in src/neuron-gatherinfo/neuron-gatherinfo.py
35 9 4
def load_mxnet_model()
in src/neuron-gatherinfo/tf_neuron_check_model.py
18 9 2
def load_mxnet_model()
in src/neuron-gatherinfo/mx_neuron_check_model.py
18 9 2
def hlpr_print_config()
in src/helperscripts/neuronsetuphelper.py
32 9 2
def split_code_at_show()
in _ext/sphinx_plotly_directive.py
16 7 1
def dump_compiler_info()
in src/neuron-gatherinfo/neuron-gatherinfo.py
35 7 6
def dump_miscinfo()
in src/neuron-gatherinfo/neuron-gatherinfo.py
37 7 3