facebookresearch / voxpopuli
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 99 units with 1,094 lines of code in units (52.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (234 lines of code)
    • 8 simple units (194 lines of code)
    • 85 very simple units (666 lines of code)
0% | 0% | 21% | 17% | 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% | 21% | 17% | 60%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
voxpopuli0% | 0% | 49% | 16% | 34%
voxpopuli/segmentation0% | 0% | 4% | 18% | 77%
voxpopuli/text0% | 0% | 0% | 18% | 81%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def digit2text()
in voxpopuli/get_lm_data.py
53 21 2
def main()
in voxpopuli/get_lm_data.py
55 15 1
def get_metadata()
in voxpopuli/get_unlabelled_data.py
32 14 2
def get()
in voxpopuli/get_s2s_data.py
55 12 1
def main()
in voxpopuli/segmentation/run_pyannote_sd.py
23 11 1
def remove_parentheses()
in voxpopuli/get_lm_data.py
16 11 1
def merge_segments()
in voxpopuli/segmentation/run_pyannote_sd.py
36 10 2
def is_id_valid()
in voxpopuli/segmentation/__init__.py
15 9 1
def get()
in voxpopuli/get_asr_data.py
37 9 1
def download()
in voxpopuli/download_audios.py
32 8 1
def get_session_ids()
in voxpopuli/segmentation/cut_with_align_files.py
14 7 3
def get_all_years_for_lang()
in voxpopuli/segmentation/__init__.py
7 6 3
def split_audio()
in voxpopuli/segmentation/get_segment_pyannote_speaker.py
33 6 2
def get_align_index_path()
in voxpopuli/text/wer_tools.py
20 6 2
def get_pyannote_segments()
in voxpopuli/segmentation/__init__.py
10 5 3
def load_segments_from_pkl()
in voxpopuli/segmentation/__init__.py
9 4 2
def to_wav2letter_format()
in voxpopuli/segmentation/__init__.py
12 4 2
def main()
in voxpopuli/segmentation/cut_from_labels.py
17 4 1
def get_all()
in voxpopuli/segmentation/get_segment_pyannote_speaker.py
24 4 1
def main()
in voxpopuli/segmentation/get_segment_pyannote_speaker.py
67 4 0