facebookresearch / videoalignment
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 91 units with 1,371 lines of code in units (76.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 9 medium complex units (535 lines of code)
    • 6 simple units (278 lines of code)
    • 76 very simple units (558 lines of code)
0% | 0% | 39% | 20% | 40%
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% | 39% | 20% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
videoalignment0% | 0% | 47% | 10% | 41%
ROOT0% | 0% | 11% | 51% | 36%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def read_gt()
in videoalignment/datasets.py
121 25 1
def segment_pr()
in videoalignment/eval.py
114 22 6
def map_localization()
in videoalignment/eval.py
67 19 4
def localization_errors()
in videoalignment/eval.py
64 17 4
def split_train_val()
in videoalignment/datasets.py
37 15 1
37 14 3
def split_train_val()
in videoalignment/datasets.py
35 14 1
def split_train_val()
in videoalignment/datasets.py
22 14 1
def check_data()
in videoalignment/datasets.py
38 13 1
def train_pca()
in rmac_features.py
45 9 2
def merge()
in videoalignment/circulant_temporal_encoding.py
33 8 5
def forward()
in rmac_features.py
32 7 2
def get_rmac_descriptors()
in rmac_features.py
68 7 5
def merge()
in videoalignment/temporal_match_kernel.py
79 7 4
def main()
in main.py
21 6 1
def annotate_connected_components()
in videoalignment/datasets.py
24 5 1
def get_video_feature_entire()
in videoalignment/datasets.py
18 5 2
def get_single_feature()
in videoalignment/datasets.py
11 5 3
def __getitem__()
in videoalignment/datasets.py
11 5 2
def __len__()
in videoalignment/datasets.py
11 5 1