awslabs / quantum-ready-solution-for-drug-discovery
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 172 units with 3,476 lines of code in units (80.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 10 medium complex units (476 lines of code)
    • 8 simple units (253 lines of code)
    • 154 very simple units (2,747 lines of code)
0% | 0% | 13% | 7% | 79%
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
py0% | 0% | 22% | 15% | 62%
ts0% | 0% | 5% | 0% | 94%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/molecule-unfolding/lambda/TaskParametersLambda0% | 0% | 75% | 15% | 8%
src/molecule-unfolding/utility0% | 0% | 16% | 20% | 63%
src/molecule-unfolding/cdk/utils0% | 0% | 11% | 0% | 88%
src/molecule-unfolding/lambda/DeviceAvailableCheckLambda0% | 0% | 0% | 30% | 69%
src/molecule-unfolding/cdk0% | 0% | 0% | 0% | 100%
src/molecule-unfolding/batch-images/qa-optimizer0% | 0% | 0% | 0% | 100%
src/molecule-unfolding/lambda/AthenaTabeLambda0% | 0% | 0% | 0% | 100%
src/molecule-unfolding/batch-images/sa-optimizer0% | 0% | 0% | 0% | 100%
src/molecule-unfolding/batch-images/create-model0% | 0% | 0% | 0% | 100%
src/molecule-unfolding/lambda/WaitForTokenLambda0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def validate_modelParams()
in source/src/molecule-unfolding/lambda/TaskParametersLambda/app.py
45 20 2
def validate_optParams()
in source/src/molecule-unfolding/lambda/TaskParametersLambda/app.py
34 19 2
def handler()
in source/src/molecule-unfolding/lambda/TaskParametersLambda/app.py
116 19 2
def _build_qubo_pre_calc()
in source/src/molecule-unfolding/utility/QMUQUBO.py
45 16 9
def build_ris_data()
in source/src/molecule-unfolding/utility/GraphModel.py
40 15 2
def build_rb_data()
in source/src/molecule-unfolding/utility/GraphModel.py
48 14 1
def validate_input()
in source/src/molecule-unfolding/lambda/TaskParametersLambda/app.py
34 14 1
public visit()
in source/src/molecule-unfolding/cdk/utils/aspect-batch-job-definition.ts
36 12 1
public getECRImage()
in source/src/molecule-unfolding/cdk/utils/utils-images.ts
62 11 1
def validate_hpcResources()
in source/src/molecule-unfolding/lambda/TaskParametersLambda/app.py
16 11 2
def mol_distance_func()
in source/src/molecule-unfolding/utility/MolGeoCalc.py
27 9 3
def _build_pre_calc_model()
in source/src/molecule-unfolding/utility/QMUQUBO.py
39 9 2
def atom_distance_func()
in source/src/molecule-unfolding/utility/MolGeoCalc.py
61 8 5
def __init__()
in source/src/molecule-unfolding/utility/QMUQUBO.py
23 8 4
def read_config()
in source/src/molecule-unfolding/lambda/TaskParametersLambda/app.py
28 7 2
def get_all_param_list()
in source/src/molecule-unfolding/lambda/TaskParametersLambda/app.py
23 7 1
def getNextAvailable()
in source/src/molecule-unfolding/lambda/DeviceAvailableCheckLambda/app.py
30 7 1
def build_graph()
in source/src/molecule-unfolding/utility/GraphModel.py
22 6 1
def save_mol_file()
in source/src/molecule-unfolding/utility/ResultProcess.py
40 5 2
def describe_model()
in source/src/molecule-unfolding/utility/QMUQUBO.py
9 5 1