aws-samples / amazon-transcribe-output-word-document
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 27 units with 994 lines of code in units (92.6% of code).
    • 2 very long units (295 lines of code)
    • 5 long units (359 lines of code)
    • 5 medium size units (214 lines of code)
    • 5 small units (74 lines of code)
    • 10 very small units (52 lines of code)
29% | 36% | 21% | 7% | 5%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py29% | 36% | 21% | 7% | 5%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
python29% | 36% | 21% | 7% | 5%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def create_turn_by_turn_segments()
in python/ts-to-word.py
152 27 2
def write()
in python/ts-to-word.py
143 20 3
def build_call_loudness_charts()
in python/ts-to-word.py
82 20 6
def generate_document()
in python/ts-to-word.py
77 20 0
def write_header_graphs()
in python/ts-to-word.py
72 10 3
def write_transcribe_text()
in python/ts-to-word.py
71 21 5
def write_comprehend_sentiment()
in python/ts-to-word.py
57 3 3
def write_analytics_sentiment()
in python/ts-to-word.py
49 9 2
def write_confidence_scores()
in python/ts-to-word.py
47 8 3
def write_detected_categories()
in python/ts-to-word.py
43 14 2
def build_single_loudness_chart()
in python/ts-to-word.py
41 17 10
34 12 2
def merge_speaker_segments()
in python/ts-to-word.py
17 6 1
def generate_sentiment()
in python/ts-to-word.py
17 7 2
def __init__()
in python/ts-to-word.py
15 1 1
def set_transcript_text_style()
in python/ts-to-word.py
14 7 4
def load_transcribe_job_status()
in python/ts-to-word.py
11 1 1
def insert_category_row()
in python/ts-to-word.py
10 2 4
8 2 1
def set_repeat_table_header()
in python/ts-to-word.py
6 1 1