aws-cloudformation / aws-cloudformation-resource-providers-frauddetector
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 501 units with 3,931 lines of code in units (54.7% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (69 lines of code)
    • 37 medium size units (1,014 lines of code)
    • 75 small units (1,112 lines of code)
    • 388 very small units (1,736 lines of code)
0% | 1% | 25% | 28% | 44%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 1% | 25% | 28% | 44%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-frauddetector-detector/src0% | 5% | 27% | 23% | 44%
aws-frauddetector-eventtype/src0% | 0% | 33% | 25% | 41%
common/helpers0% | 0% | 32% | 33% | 33%
aws-frauddetector-entitytype/src0% | 0% | 20% | 32% | 47%
aws-frauddetector-label/src0% | 0% | 20% | 29% | 50%
aws-frauddetector-variable/src0% | 0% | 13% | 35% | 51%
aws-frauddetector-outcome/src0% | 0% | 17% | 40% | 41%
common0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def get_model_for_detector()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
69 8 3
def get_outcomes_model_for_given_outcome_names()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
43 7 3
def _get_event_variables_model_for_given_variables()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
43 6 3
def _get_event_variables_model_for_given_variables()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/helpers/model_helpers.py
43 6 3
def _get_labels_and_return_labels_model()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
40 7 3
def _get_labels_and_return_labels_model()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/helpers/model_helpers.py
40 7 3
def get_model_for_inline_event_type()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
35 4 3
def list_detector_models()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/list_worker_helpers.py
34 5 1
def get_model_for_event_type()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/helpers/model_helpers.py
34 4 3
def _validate_inline_event_variable_for_event_type_update()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/update_worker_helpers.py
33 12 3
def _validate_inline_event_variable_for_update()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/helpers/update_worker_helpers.py
33 12 3
def check_variable_entries_are_valid()
in aws-frauddetector-entitytype/src/aws_frauddetector_entitytype/helpers/validation_helpers.py
28 4 1
def check_variable_entries_are_valid()
in common/helpers/validation_helpers.py
28 4 1
def check_variable_entries_are_valid()
in aws-frauddetector-label/src/aws_frauddetector_label/helpers/validation_helpers.py
28 4 1
def execute_create_detector_handler_work()
in aws-frauddetector-detector/src/aws_frauddetector_detector/handler_workers.py
25 12 3
def put_outcome_and_return_progress()
in common/helpers/common_helpers.py
25 3 3
def put_entity_type_and_return_progress()
in common/helpers/common_helpers.py
25 3 3
def create_variable_and_return_progress()
in common/helpers/common_helpers.py
25 3 3
def put_entity_type_and_return_progress()
in aws-frauddetector-entitytype/src/aws_frauddetector_entitytype/helpers/common_helpers.py
24 3 3
def put_outcome_and_return_progress()
in aws-frauddetector-outcome/src/aws_frauddetector_outcome/helpers/common_helpers.py
24 3 3