aws / sagemaker-jumpstart-industry-pack
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 51 units with 297 lines of code in units (31.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (27 lines of code)
    • 6 small units (76 lines of code)
    • 44 very small units (194 lines of code)
0% | 0% | 9% | 25% | 65%
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% | 9% | 25% | 65%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/smjsindustry/finance0% | 0% | 9% | 25% | 64%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def __init__()
in src/smjsindustry/finance/nlp_score_type.py
27 11 3
def __init__()
in src/smjsindustry/finance/processor_config.py
15 4 2
def __init__()
in src/smjsindustry/finance/processor.py
13 1 0
def __init__()
in src/smjsindustry/finance/processor.py
12 1 0
def __init__()
in src/smjsindustry/finance/processor.py
12 1 0
def __init__()
in src/smjsindustry/finance/processor.py
12 1 0
def __init__()
in src/smjsindustry/finance/processor.py
12 1 0
def get_config()
in src/smjsindustry/finance/processor_config.py
10 1 1
def summarize()
in src/smjsindustry/finance/processor.py
10 1 0
def get_config()
in src/smjsindustry/finance/processor_config.py
9 1 1
def get_config()
in src/smjsindustry/finance/processor_config.py
9 1 1
def calculate()
in src/smjsindustry/finance/processor.py
9 1 0
def build_tabText()
in src/smjsindustry/finance/build_tabText.py
9 1 0
def __init__()
in src/smjsindustry/finance/processor_config.py
8 1 0
def __init__()
in src/smjsindustry/finance/processor_config.py
7 1 0
def __init__()
in src/smjsindustry/finance/processor_config.py
7 1 0
def run()
in src/smjsindustry/finance/processor.py
7 1 2
def load()
in src/smjsindustry/finance/processor.py
7 1 0
def _get_freq_label_by_week()
in src/smjsindustry/finance/utils.py
7 3 1
def _get_freq_label_by_month()
in src/smjsindustry/finance/utils.py
7 3 1