aws-samples / aws-ai-ml-workshop-kr
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 218 units with 2,298 lines of code in units (18.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (92 lines of code)
    • 8 simple units (305 lines of code)
    • 206 very simple units (1,901 lines of code)
0% | 0% | 4% | 13% | 82%
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% | 0% | 15% | 16% | 67%
py0% | 0% | 0% | 12% | 87%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
_archiving/html/AWS Korea AI ML Workshop0% | 0% | 15% | 16% | 67%
sagemaker/tf-deploy/code0% | 0% | 0% | 59% | 40%
_archiving/src/release0% | 0% | 0% | 37% | 62%
_archiving/contribution/seongshin0% | 0% | 0% | 38% | 61%
sagemaker/byoc/tensorflow_bring_your_own_kr0% | 0% | 0% | 15% | 84%
_archiving/contribution/daekeun-ml0% | 0% | 0% | 0% | 100%
_archiving/contribution/anhyobin0% | 0% | 0% | 0% | 100%
sagemaker/autogluon0% | 0% | 0% | 0% | 100%
_archiving/contribution/jihys0% | 0% | 0% | 0% | 100%
sagemaker/tf-deploy/utils0% | 0% | 0% | 0% | 100%
sagemaker/byoc/scikit_bring_your_own0% | 0% | 0% | 0% | 100%
sagemaker/byos-tensorflow/train_model0% | 0% | 0% | 0% | 100%
sagemaker/sm-pipeline/customizing_build_train_deploy_project0% | 0% | 0% | 0% | 100%
_archiving/src/work-in-progress0% | 0% | 0% | 0% | 100%
sagemaker/model-monitor0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
that.keydownHandler = function()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/auto-complete.js
27 14 1
that.keyupHandler = function()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/auto-complete.js
23 13 1
highlight: function()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/learn.js
22 11 4
that.updateSC = function()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/auto-complete.js
20 11 2
def model_fn()
in sagemaker/byoc/tensorflow_bring_your_own_kr/container/cifar10/cifar10.py
42 10 3
jQuery()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/learn.js
33 8 1
function autoComplete()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/auto-complete.js
31 8 1
def train()
in sagemaker/tf-deploy/code/train.py
62 8 1
def model_fn()
in _archiving/src/release/dev-day/mnist_hpo.py
51 7 4
def model_fn()
in _archiving/contribution/seongshin/aws-ai-ml-immersionday-kr/tensorflow_mnist/mnist.py
51 7 4
jQuery.fn.highlight = function()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/learn.js
30 6 2
addEvent()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/auto-complete.js
5 6 3
scrollIfAnchor: function()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/learn.js
15 5 2
(function()()
in _archiving/html/AWS Korea AI ML Workshop/workshop/public/js/auto-complete.js
8 5 1
def lambda_handler()
in _archiving/contribution/anhyobin/src/StreamUserLog.py
20 5 2
def cifar10_resnet_v2_generator()
in sagemaker/byoc/tensorflow_bring_your_own_kr/container/cifar10/resnet_model.py
37 5 3
def download_and_extract()
in sagemaker/byoc/tensorflow_bring_your_own_kr/utils/generate_cifar10_tfrecords.py
20 5 2
def main()
in sagemaker/byoc/tensorflow_bring_your_own_kr/utils/generate_cifar10_tfrecords.py
17 5 1
def mnist_to_numpy()
in sagemaker/tf-deploy/utils/mnist.py
17 5 2
def adjust_to_framework()
in sagemaker/tf-deploy/utils/mnist.py
12 5 2