pytorch / ort
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 20 units with 259 lines of code in units (33.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (41 lines of code)
    • 3 simple units (62 lines of code)
    • 16 very simple units (156 lines of code)
0% | 0% | 15% | 23% | 60%
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% | 15% | 23% | 60%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
torch_ort/experimental0% | 0% | 100% | 0% | 0%
tools/ci_build0% | 0% | 0% | 41% | 58%
tools/ci_build/github/linux0% | 0% | 0% | 50% | 50%
ROOT0% | 0% | 0% | 0% | 100%
tools/python0% | 0% | 0% | 0% | 100%
tools/python/util0% | 0% | 0% | 0% | 100%
torch_ort/configure0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def set_propagate_cast_ops_optimization()
in torch_ort/experimental/graph_config.py
41 16 3
def main()
in tools/ci_build/get_docker_image.py
27 9 0
def have_compatible_glibc()
in tools/ci_build/github/linux/docker/manylinux2014_build_scripts/manylinux-check.py
18 7 2
def update_hash_with_directory()
in tools/ci_build/get_docker_image.py
17 6 2
def is_manylinux2014_compatible()
in tools/ci_build/github/linux/docker/manylinux2014_build_scripts/manylinux-check.py
18 5 0
def run()
in tools/python/util/run.py
16 4 9
def update_hash_with_file()
in tools/ci_build/get_docker_image.py
9 3 2
def container_registry_has_image()
in tools/ci_build/get_docker_image.py
8 3 2
4 2 2
def main()
in build.py
14 2 0
def upload_whl()
in tools/python/upload_python_package_to_azure_storage.py
24 2 4
3 2 1
5 1 0
3 1 2
3 1 2
def parse_args()
in tools/ci_build/get_docker_image.py
34 1 0
def file_info_str()
in tools/ci_build/get_docker_image.py
2 1 1
def make_file_info_from_path()
in tools/ci_build/get_docker_image.py
2 1 1
def generate_tag()
in tools/ci_build/get_docker_image.py
8 1 3
def main()
in torch_ort/configure/__main__.py
3 1 0