aws-samples / amazon-sagemaker-groundtruth-conversion-kit
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 18 units with 180 lines of code in units (51.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (99 lines of code)
    • 3 small units (42 lines of code)
    • 12 very small units (39 lines of code)
0% | 0% | 55% | 23% | 21%
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% | 55% | 23% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
gt_converter0% | 0% | 56% | 23% | 19%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 18 longest units
Unit# linesMcCabe index# params
def _convert_bbox_manifest()
in gt_converter/convert_coco.py
40 3 4
def convert_job()
in gt_converter/convert_coco.py
30 8 3
def _create_submask_annotation()
in gt_converter/convert_coco.py
29 6 4
def _build_category_ids()
in gt_converter/convert_coco.py
18 6 4
def _create_submasks()
in gt_converter/convert_coco.py
13 3 2
def _maybe_download_from_s3()
in gt_converter/converter.py
11 3 3
def manifest_reader()
in gt_converter/converter.py
8 3 3
def find_bucket_key()
in gt_converter/utils.py
7 2 1
def split_s3_bucket_key()
in gt_converter/utils.py
4 2 1
def __init__()
in gt_converter/converter.py
3 1 1
def __init__()
in gt_converter/convert_coco.py
3 1 1
def convert_job()
in gt_converter/converter.py
2 1 3
def tracking_manifest_reader()
in gt_converter/converter.py
2 1 0
def _annotate_single_image()
in gt_converter/convert_coco.py
2 1 0
def _convert_segmentation_manifest()
in gt_converter/convert_coco.py
2 1 0
def _convert_video_tracking_manifest()
in gt_converter/convert_coco.py
2 1 0
def read()
in setup.py
2 1 1
2 1 0