boto / botostubs
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 5,750 units with 25,452 lines of code in units (34.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 29 medium size units (856 lines of code)
    • 370 small units (4,730 lines of code)
    • 5,351 very small units (19,866 lines of code)
0% | 0% | 3% | 18% | 78%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
pyi0% | 0% | 3% | 18% | 78%
py0% | 0% | 0% | 41% | 58%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
botocore-stubs/botocore-stubs0% | 0% | 3% | 18% | 78%
botogen/botogen0% | 0% | 0% | 44% | 55%
botogen0% | 0% | 0% | 0% | 100%
botocore-stubs0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
pyi
def create_db_instance()
in botocore-stubs/botocore-stubs/client.pyi
46 1 0
pyi
def restore_db_instance_from_s3()
in botocore-stubs/botocore-stubs/client.pyi
44 1 0
pyi
def create_db_instance()
in botocore-stubs/botocore-stubs/client.pyi
43 1 0
pyi
def modify_db_instance()
in botocore-stubs/botocore-stubs/client.pyi
41 1 0
pyi
def modify_db_instance()
in botocore-stubs/botocore-stubs/client.pyi
37 1 0
pyi
def copy_object()
in botocore-stubs/botocore-stubs/client.pyi
37 1 0
pyi
def run_instances()
in botocore-stubs/botocore-stubs/client.pyi
36 1 0
pyi
def restore_db_instance_to_point_in_time()
in botocore-stubs/botocore-stubs/client.pyi
32 1 0
pyi
def create_db_cluster()
in botocore-stubs/botocore-stubs/client.pyi
31 1 0
pyi
def create_cluster()
in botocore-stubs/botocore-stubs/client.pyi
31 1 0
pyi
def restore_db_cluster_from_s3()
in botocore-stubs/botocore-stubs/client.pyi
30 1 0
pyi
def put_object()
in botocore-stubs/botocore-stubs/client.pyi
30 1 0
pyi
def start_build()
in botocore-stubs/botocore-stubs/client.pyi
29 1 0
pyi
def create_replication_group()
in botocore-stubs/botocore-stubs/client.pyi
29 1 0
pyi
def create_db_instance_read_replica()
in botocore-stubs/botocore-stubs/client.pyi
29 1 0
pyi
def restore_db_instance_from_db_snapshot()
in botocore-stubs/botocore-stubs/client.pyi
29 1 0
pyi
def create_multipart_upload()
in botocore-stubs/botocore-stubs/client.pyi
27 1 0
pyi
def restore_from_cluster_snapshot()
in botocore-stubs/botocore-stubs/client.pyi
26 1 0
pyi
def create_cache_cluster()
in botocore-stubs/botocore-stubs/client.pyi
24 1 0
pyi
def run_job_flow()
in botocore-stubs/botocore-stubs/client.pyi
24 1 0