aws-samples / amazon-rekognition-custom-labels-feedback-solution
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 28 units with 289 lines of code in units (88.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (162 lines of code)
    • 2 small units (25 lines of code)
    • 20 very small units (102 lines of code)
0% | 0% | 56% | 8% | 35%
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% | 56% | 8% | 35%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 56% | 8% | 35%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def mergeBBAndLabelsOutput()
in src/get-feedback.py
38 11 4
def getFileNames()
in src/get-feedback.py
30 7 5
def run()
in src/get-feedback.py
29 4 2
def processJobResults()
in src/get-feedback.py
23 4 2
def generateOutput()
in src/get-feedback.py
21 3 3
def processJobResults()
in src/get-feedback.py
21 5 2
def processJobFile()
in src/get-feedback.py
14 1 1
def checkJobStatus()
in src/get-feedback.py
11 3 2
def getResource()
in src/get-feedback.py
10 2 3
def checkJobStatus()
in src/get-feedback.py
10 2 2
def getImageSize()
in src/get-feedback.py
8 1 2
def validateInput()
in src/get-feedback.py
8 3 2
def getClient()
in src/get-feedback.py
7 1 3
def generatePresignedUrl()
in src/get-feedback.py
6 1 3
def generateOutput()
in src/get-feedback.py
6 2 2
def readFromS3Uri()
in src/get-feedback.py
5 1 2
def parseBucketAndDocumentName()
in src/get-feedback.py
5 1 2
def getS3BucketRegion()
in src/get-feedback.py
5 1 1
def writeToS3()
in src/get-feedback.py
4 1 4
def readFromS3()
in src/get-feedback.py
4 1 3