facebookresearch / c3dm
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 337 units with 5,656 lines of code in units (64.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 11 medium complex units (796 lines of code)
    • 19 simple units (676 lines of code)
    • 307 very simple units (4,184 lines of code)
0% | 0% | 14% | 11% | 73%
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% | 14% | 11% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
c3dm/tools0% | 0% | 16% | 6% | 77%
c3dm0% | 0% | 18% | 9% | 72%
c3dm/dataset0% | 0% | 0% | 33% | 66%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def tabulate()
in c3dm/tools/tabulate.py
59 24 2
def concatenate_cache()
in c3dm/tools/cache_preds.py
29 24 1
def _normalize_tabular_data()
in c3dm/tools/tabulate.py
101 22 3
def forward()
in c3dm/c3dpo.py
121 21 10
def plot_stats()
in c3dm/tools/stats.py
77 21 5
def cache_preds()
in c3dm/tools/cache_preds.py
48 18 8
def visualize()
in c3dm/model.py
231 17 6
def _align_column()
in c3dm/tools/tabulate.py
24 16 6
def synchronize_logged_vars()
in c3dm/tools/stats.py
39 12 3
def _format_table()
in c3dm/tools/tabulate.py
34 11 6
def update()
in c3dm/tools/stats.py
33 11 6
def visualize()
in c3dm/c3dpo.py
44 10 6
def restrict_images()
in c3dm/dataset/keypoints_dataset.py
30 10 1
def forward()
in c3dm/c3dpo.py
16 8 2
def get_epoch_averages()
in c3dm/tools/stats.py
18 8 2
def eval_depth_pcl()
in c3dm/tools/eval_functions.py
46 8 8
def hsv2rgb()
in c3dm/tools/functions.py
15 7 1
def _type()
in c3dm/tools/tabulate.py
20 7 3
def _align_column_choose_padfn()
in c3dm/tools/tabulate.py
25 7 3
def eval_p3d()
in c3dm/dataset/eval_zoo.py
76 7 5