aws-samples / amazon-polly-async-batch
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 37 units with 312 lines of code in units (32.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (44 lines of code)
    • 11 small units (151 lines of code)
    • 24 very small units (117 lines of code)
0% | 0% | 14% | 48% | 37%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 14% | 48% | 37%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
amazon_polly_async_batch0% | 0% | 14% | 48% | 37%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def increment_counter()
in amazon_polly_async_batch/dynamo.py
23 7 3
def load_set_details()
in amazon_polly_async_batch/setcompletionwaiter.py
21 2 2
def put_new_set()
in amazon_polly_async_batch/dynamo.py
18 1 2
def put_new_task()
in amazon_polly_async_batch/dynamo.py
16 1 4
def build_item()
in amazon_polly_async_batch/config.py
16 1 3
def process_sns_message()
in amazon_polly_async_batch/responseprocessor.py
14 4 2
def process_completed_task()
in amazon_polly_async_batch/responseprocessor.py
13 1 2
def process_item()
in amazon_polly_async_batch/itemprocessor.py
13 2 1
def submit_item_to_polly()
in amazon_polly_async_batch/itemprocessor.py
13 1 1
def process_set()
in amazon_polly_async_batch/setprocessor.py
12 3 2
def process_config()
in amazon_polly_async_batch/setprocessor.py
12 3 1
def post_item()
in amazon_polly_async_batch/setprocessor.py
12 3 3
def process_sqs_message()
in amazon_polly_async_batch/itemprocessor.py
12 4 2
def process_record()
in amazon_polly_async_batch/responseprocessor.py
10 2 1
def get_set()
in amazon_polly_async_batch/dynamo.py
10 2 2
def get_task()
in amazon_polly_async_batch/dynamo.py
10 2 2
def update_task_and_set_table()
in amazon_polly_async_batch/responseprocessor.py
9 4 2
def defaults()
in amazon_polly_async_batch/config.py
9 1 1
def load_config()
in amazon_polly_async_batch/setprocessor.py
8 3 2
def notify_of_set_completion()
in amazon_polly_async_batch/setcompletionwaiter.py
8 2 2