aws-samples / aws-deepcomposer-got-talent
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 19 units with 288 lines of code in units (57.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (139 lines of code)
    • 5 small units (74 lines of code)
    • 10 very small units (75 lines of code)
0% | 0% | 48% | 25% | 26%
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% | 46% | 25% | 28%
js0% | 0% | 60% | 26% | 12%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lambda-connector0% | 0% | 82% | 0% | 17%
ai-judge0% | 0% | 28% | 37% | 33%
static-scoreboard/js0% | 0% | 60% | 26% | 12%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
def main()
in ai-judge/inference.py
48 11 0
def lambda_handler()
in lambda-connector/DC-got-talent-final-scores.py
33 2 2
def lambda_handler()
in lambda-connector/DC-got-talent-preliminary-scores.py
33 2 2
$()
in static-scoreboard/js/index.js
25 2 1
def load_midi_folder()
in ai-judge/inference.py
19 4 1
def sample_midi()
in ai-judge/inference.py
17 3 6
def load_midi()
in ai-judge/inference.py
14 3 1
def __init__()
in ai-judge/model.py
13 1 1
createdRow: function()
in static-scoreboard/js/index.js
11 4 3
def parse_args()
in ai-judge/inference.py
10 3 0
def get_ks_dist()
in ai-judge/inference.py
9 2 2
def forward()
in ai-judge/model.py
9 1 2
def load_model()
in ai-judge/inference.py
8 2 1
def get_class_score()
in ai-judge/inference.py
7 1 2
def combine_score()
in ai-judge/inference.py
7 2 3
def process_data()
in lambda-connector/DC-got-talent-final-scores.py
7 2 1
def process_data()
in lambda-connector/DC-got-talent-preliminary-scores.py
7 2 1
def pch()
in ai-judge/inference.py
6 2 1
"": function()
in static-scoreboard/js/index.js
5 3 1