aws / base64io-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 25 units with 135 lines of code in units (45.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (23 lines of code)
    • 4 small units (49 lines of code)
    • 20 very small units (63 lines of code)
0% | 0% | 17% | 36% | 46%
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% | 17% | 36% | 46%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/base64io0% | 0% | 19% | 42% | 37%
doc0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def read()
in src/base64io/__init__.py
23 11 2
def _passthrough_interactive_check()
in src/base64io/__init__.py
13 5 3
13 4 3
def write()
in src/base64io/__init__.py
12 7 2
def readlines()
in src/base64io/__init__.py
11 4 2
def __init__()
in src/base64io/__init__.py
8 3 2
def get_version()
in doc/conf.py
6 2 0
def close()
in src/base64io/__init__.py
5 2 1
def __next__()
in src/base64io/__init__.py
5 2 1
def _to_bytes()
in src/base64io/__init__.py
4 2 1
def __exit__()
in src/base64io/__init__.py
3 1 4
def writelines()
in src/base64io/__init__.py
3 2 2
def readme()
in setup.py
3 1 0
3 1 0
def get_release()
in doc/conf.py
3 1 0
def _py2()
in src/base64io/__init__.py
2 1 0
def __enter__()
in src/base64io/__init__.py
2 1 1
def writable()
in src/base64io/__init__.py
2 1 1
def readable()
in src/base64io/__init__.py
2 1 1
def flush()
in src/base64io/__init__.py
2 1 1