facebookresearch / iopath
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 144 units with 847 lines of code in units (59.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 7 simple units (141 lines of code)
    • 137 very simple units (706 lines of code)
0% | 0% | 0% | 16% | 83%
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% | 0% | 16% | 83%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
iopath/common0% | 0% | 0% | 16% | 83%
iopath/tabular0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _get_local_path()
in iopath/common/s3.py
40 10 3
def read()
in iopath/common/s3.py
25 10 2
def _join()
in iopath/common/non_blocking_io.py
18 7 2
def _ls()
in iopath/common/s3.py
24 7 3
def log_event()
in iopath/common/event_logger.py
10 6 2
def async_join()
in iopath/common/file_io.py
12 6 3
def set_cwd()
in iopath/common/file_io.py
12 6 4
def _poll_jobs()
in iopath/common/non_blocking_io.py
6 5 3
def close()
in iopath/common/non_blocking_io.py
5 5 1
def _set_cwd()
in iopath/common/file_io.py
11 5 4
def __get_open_keys()
in iopath/common/file_io.py
16 5 4
def close()
in iopath/common/non_blocking_io.py
7 4 1
def flush()
in iopath/common/non_blocking_io.py
13 4 1
def _check_kwargs()
in iopath/common/file_io.py
8 4 3
def _symlink()
in iopath/common/file_io.py
17 4 4
def _mkdirs()
in iopath/common/file_io.py
7 4 3
def get()
in iopath/common/file_io.py
10 4 2
def s3_close_and_upload()
in iopath/common/s3.py
14 4 5
def _head_object()
in iopath/common/s3.py
12 4 2
def seek()
in iopath/common/s3.py
10 4 3