aws / aws-greengrass-core-sdk-python
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 541 units with 4,644 lines of code in units (70.7% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (236 lines of code)
    • 82 medium size units (2,408 lines of code)
    • 36 small units (550 lines of code)
    • 419 very small units (1,450 lines of code)
0% | 5% | 51% | 11% | 31%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 5% | 51% | 11% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
greengrasssdk/stream_manager/data0% | 3% | 53% | 11% | 31%
greengrasssdk/stream_manager0% | 37% | 15% | 13% | 34%
greengrasssdk0% | 0% | 58% | 15% | 25%
greengrasssdk/utils0% | 0% | 100% | 0% | 0%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def is_invalid()
in greengrasssdk/stream_manager/utilinternal.py
83 41 1
def from_dict()
in greengrasssdk/stream_manager/data/__init__.py
51 17 1
def as_dict()
in greengrasssdk/stream_manager/data/__init__.py
51 17 1
def as_dict()
in greengrasssdk/stream_manager/data/__init__.py
51 17 1
def from_dict()
in greengrasssdk/stream_manager/data/__init__.py
49 17 1
def as_dict()
in greengrasssdk/stream_manager/data/__init__.py
49 17 1
def from_dict()
in greengrasssdk/stream_manager/data/__init__.py
49 17 1
def from_dict()
in greengrasssdk/stream_manager/data/__init__.py
45 15 1
def as_dict()
in greengrasssdk/stream_manager/data/__init__.py
45 15 1
def from_dict()
in greengrasssdk/stream_manager/data/__init__.py
44 16 1
def as_dict()
in greengrasssdk/stream_manager/data/__init__.py
44 16 1
def __repr__()
in greengrasssdk/stream_manager/data/__init__.py
43 9 1
def __repr__()
in greengrasssdk/stream_manager/data/__init__.py
41 9 1
def __repr__()
in greengrasssdk/stream_manager/data/__init__.py
41 9 1
def from_dict()
in greengrasssdk/stream_manager/data/__init__.py
39 13 1
def as_dict()
in greengrasssdk/stream_manager/data/__init__.py
39 13 1
def from_dict()
in greengrasssdk/stream_manager/data/__init__.py
39 13 1
def as_dict()
in greengrasssdk/stream_manager/data/__init__.py
39 13 1
def from_dict()
in greengrasssdk/stream_manager/data/__init__.py
39 13 1
def as_dict()
in greengrasssdk/stream_manager/data/__init__.py
39 13 1