aws-samples / medical-transcription-analysis
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 192 units with 3,700 lines of code in units (23.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (748 lines of code)
    • 5 medium complex units (331 lines of code)
    • 11 simple units (334 lines of code)
    • 175 very simple units (2,287 lines of code)
0% | 20% | 8% | 9% | 61%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
js0% | 29% | 12% | 10% | 48%
py0% | 0% | 3% | 9% | 87%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 48% | 7% | 9% | 33%
src/utils0% | 0% | 53% | 0% | 46%
src/components0% | 0% | 14% | 18% | 66%
lambda/create_session0% | 0% | 58% | 0% | 41%
lambda0% | 0% | 0% | 11% | 88%
lambda/get_transcription_translation0% | 0% | 0% | 90% | 9%
lib0% | 0% | 0% | 0% | 100%
src/audio-utils0% | 0% | 0% | 0% | 100%
lambda/custom_resource_athena0% | 0% | 0% | 0% | 100%
lambda/get_credentials0% | 0% | 0% | 0% | 100%
lambda/list_sessions0% | 0% | 0% | 0% | 100%
lambda/get_session_data0% | 0% | 0% | 0% | 100%
lambda/create_health_care_professional0% | 0% | 0% | 0% | 100%
lambda/create_patient0% | 0% | 0% | 0% | 100%
lambda/list_patients0% | 0% | 0% | 0% | 100%
lambda/list_health_care_professionals0% | 0% | 0% | 0% | 100%
src/libs0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
748 49 0
def handle()
in app/lambda/create_session/lambda_function.py
24 21 3
function ResultRow()
in app/src/components/AnalysisPane.js
93 19 6
export default function generateSOAPSummary()
in app/src/utils/soapSummary.js
70 17 1
export function createPresignedURL()
in app/src/utils/sigv4.js
26 13 6
118 11 0
export default function FormInput()
in app/src/components/FormInput/FormInput.js
41 9 7
export default function useComprehension()
in app/src/useComprehension.js
52 9 2
def handle()
in app/lambda/get_transcription_translation/lambda_function.py
19 9 3
function registerValidSW()
in app/src/serviceWorker.js
33 8 2
function useAudioStream()
in app/src/home.js
33 7 2
export default function MicrophoneIcon()
in app/src/components/MicrophoneIcon.js
46 7 4
function combineSegments()
in app/src/components/TranscriptLine.js
27 7 1
async function searchSessions()
in app/src/preHome.js
28 7 0
def requestSession()
in app/lambda/models.py
10 7 4
def getFileNames()
in app/lambda/helper.py
27 7 5
def save()
in app/lambda/datastore.py
18 6 2
export function register()
in app/src/serviceWorker.js
22 5 1
export default function createPCMStream()
in app/src/audio-utils/createPCMStream.js
40 5 2
websocket.onclose = function()
in app/src/audio-utils/streamAudioToWebsocket.js
8 5 1