aws-samples / amazon-eks-autonomous-driving-data-service
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 135 units with 1,961 lines of code in units (36.7% of code).
    • 0 very long units (0 lines of code)
    • 5 long units (310 lines of code)
    • 20 medium size units (589 lines of code)
    • 39 small units (630 lines of code)
    • 71 very small units (432 lines of code)
0% | 15% | 30% | 32% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 15% | 30% | 32% | 22%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scripts0% | 43% | 25% | 13% | 17%
a2d2/src0% | 3% | 32% | 40% | 23%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def extract_tar()
in scripts/s3-extract-tar.py
75 22 2
def main()
in scripts/s3-extract-load.py
67 12 1
def extract_bus_data()
in scripts/extract-bus-data.py
66 9 1
def run()
in a2d2/src/rosbag_consumer.py
51 10 1
def __submit_batch_jobs()
in scripts/s3-extract-tar.py
51 8 3
def __init__()
in a2d2/src/rosbag_producer.py
49 7 6
def run()
in scripts/s3-extract-tar.py
46 12 1
def run()
in a2d2/src/rosbag_producer.py
40 4 1
def run()
in a2d2/src/data_service.py
39 5 1
def __flush_bag()
in a2d2/src/rosbag_producer.py
34 11 1
def run()
in a2d2/src/manifest_consumer.py
29 5 1
def main()
in scripts/update-kafka-cluster-config.py
29 2 1
def __record_images_from_s3()
in a2d2/src/rosbag_producer.py
28 9 5
def __record_pcl_from_s3()
in a2d2/src/rosbag_producer.py
28 9 5
def main()
in scripts/glue-etl-job.py
28 6 1
def bus_msg()
in a2d2/src/ros_util.py
27 1 3
def __record_images_from_fs()
in a2d2/src/rosbag_producer.py
26 9 5
def pcl_sparse_msg()
in a2d2/src/ros_util.py
25 2 7
def __close_bag()
in a2d2/src/rosbag_producer.py
25 6 2
def __record_pcl_from_fs()
in a2d2/src/rosbag_producer.py
24 9 5