aws-quickstart / quickstart-illumina-dragen
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 39 units with 637 lines of code in units (26.4% of code).
    • 1 very long units (112 lines of code)
    • 1 long units (58 lines of code)
    • 7 medium size units (195 lines of code)
    • 11 small units (154 lines of code)
    • 19 very small units (118 lines of code)
17% | 9% | 30% | 24% | 18%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py17% | 9% | 30% | 24% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
app/source/dragen/src25% | 13% | 33% | 15% | 12%
app/source/dragen/src/scheduler0% | 0% | 24% | 43% | 31%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def download_inputs()
in app/source/dragen/src/dragen_qs.py
112 26 1
def parse_download_args()
in app/source/dragen/src/dragen_qs.py
58 25 1
def __init__()
in app/source/dragen/src/dragen_qs.py
40 6 2
def run_job()
in app/source/dragen/src/dragen_qs.py
36 7 1
def set_resource_limits()
in app/source/dragen/src/dragen_qs.py
29 9 1
def __init__()
in app/source/dragen/src/scheduler/logger.py
26 6 6
def copy_var_log_dragen_files()
in app/source/dragen/src/dragen_qs.py
22 6 1
def download_ref_tables()
in app/source/dragen/src/dragen_qs.py
21 6 1
def s3_download_dir()
in app/source/dragen/src/scheduler/aws_utils.py
21 12 5
def upload_job_outputs()
in app/source/dragen/src/dragen_qs.py
18 6 1
def log()
in app/source/dragen/src/scheduler/logger.py
18 9 3
def run()
in app/source/dragen/src/dragen_qs.py
17 3 1
def s3_download_file()
in app/source/dragen/src/scheduler/aws_utils.py
17 8 2
def create_output_dir()
in app/source/dragen/src/dragen_qs.py
14 6 1
def _s3_upload_files_recursively()
in app/source/dragen/src/scheduler/aws_utils.py
13 9 5
def check_create_dir()
in app/source/dragen/src/scheduler/scheduler_utils.py
12 4 1
def _s3_upload_file()
in app/source/dragen/src/scheduler/aws_utils.py
12 4 5
def get_s3_bucket_key()
in app/source/dragen/src/dragen_qs.py
11 4 1
def download_dragen_fpga()
in app/source/dragen/src/dragen_qs.py
11 2 1
def s3_delete_object()
in app/source/dragen/src/scheduler/aws_utils.py
11 1 2