aws / aws-jupyter-proxy
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 168 lines of code in units (50.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (41 lines of code)
    • 4 small units (66 lines of code)
    • 14 very small units (61 lines of code)
0% | 0% | 24% | 39% | 36%
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% | 24% | 39% | 36%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws_jupyter_proxy0% | 0% | 24% | 39% | 36%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
def _sigv4_auth_header()
in aws_jupyter_proxy/awsproxy.py
41 1 2
def _get_canonical_querystring()
in aws_jupyter_proxy/awsproxy.py
20 6 1
def _get_signed_canonical_headers()
in aws_jupyter_proxy/awsproxy.py
19 4 1
def _compute_downstream_headers()
in aws_jupyter_proxy/awsproxy.py
15 4 2
def _compute_downstream_url()
in aws_jupyter_proxy/awsproxy.py
12 1 2
def setup_handlers()
in aws_jupyter_proxy/handlers.py
9 2 1
def _is_blacklisted_response_header()
in aws_jupyter_proxy/awsproxy.py
7 5 2
def _get_downstream_signing_region()
in aws_jupyter_proxy/awsproxy.py
7 3 1
def _finish_response()
in aws_jupyter_proxy/awsproxy.py
6 4 2
def get_signature_key()
in aws_jupyter_proxy/awsproxy.py
6 1 4
def __init__()
in aws_jupyter_proxy/awsproxy.py
5 1 0
def _build_upstream_auth_info()
in aws_jupyter_proxy/awsproxy.py
5 1 1
def initialize()
in aws_jupyter_proxy/awsproxy.py
3 1 3
def _get_aws_region()
in aws_jupyter_proxy/awsconfig.py
3 2 1
def _jupyter_server_extension_paths()
in aws_jupyter_proxy/__init__.py
2 1 0
def load_jupyter_server_extension()
in aws_jupyter_proxy/__init__.py
2 1 1
def get_service_info()
in aws_jupyter_proxy/awsproxy.py
2 1 0
def create_endpoint_resolver()
in aws_jupyter_proxy/awsproxy.py
2 1 0
def sign()
in aws_jupyter_proxy/awsproxy.py
2 1 2