facebookresearch / ActivityNet-Entities
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 14 units with 542 lines of code in units (81.7% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (222 lines of code)
    • 4 medium complex units (170 lines of code)
    • 0 simple units (0 lines of code)
    • 8 very simple units (150 lines of code)
0% | 40% | 31% | 0% | 27%
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% | 40% | 31% | 0% | 27%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 40% | 31% | 0% | 27%
Most Complex Units
Top 14 most complex units
Unit# linesMcCabe index# params
def precision_recall_util()
in scripts/eval_grd_anet_entities.py
85 35 2
def prep_all()
in scripts/attr_prep_tag_NP.py
137 32 5
def grd_eval()
in scripts/eval_grd_anet_entities.py
52 21 2
def extract_attr()
in scripts/attr_prep_tag_NP.py
32 16 2
def gt_grd_eval()
in scripts/eval_grd_anet_entities.py
44 15 1
def freq_obj_list()
in scripts/attr_prep_tag_NP.py
42 11 3
def import_ref()
in scripts/eval_grd_anet_entities.py
10 5 3
def define_split()
in scripts/attr_prep_tag_NP.py
16 5 1
def __init__()
in scripts/eval_grd_anet_entities.py
11 3 7
def main()
in scripts/eval_grd_anet_entities.py
12 3 1
def bbox_overlaps_batch()
in scripts/utils.py
62 2 3
def main()
in scripts/attr_prep_tag_NP.py
31 2 1
def import_sub()
in scripts/eval_grd_anet_entities.py
4 1 2
def get_frm_mask()
in scripts/utils.py
4 1 2