microsoft / SynapseML
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 1,991 units with 21,722 lines of code in units (63.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 33 medium complex units (1,413 lines of code)
    • 110 simple units (3,158 lines of code)
    • 1,848 very simple units (17,151 lines of code)
0% | 0% | 6% | 14% | 78%
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
scala0% | 0% | 6% | 14% | 79%
py0% | 0% | 12% | 14% | 73%
js0% | 0% | 0% | 26% | 73%
sbt0% | 0% | 0% | 76% | 24%
java0% | 0% | 0% | 0% | 100%
R0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
core0% | 0% | 9% | 14% | 75%
cognitive0% | 0% | 2% | 12% | 85%
vw0% | 0% | 8% | 23% | 68%
lightgbm0% | 0% | 2% | 8% | 88%
deep-learning0% | 0% | 0% | 17% | 82%
website0% | 0% | 0% | 26% | 73%
opencv0% | 0% | 0% | 13% | 86%
ROOT0% | 0% | 0% | 76% | 24%
project0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _make_append_bias()
in core/src/main/python/synapse/ml/cyber/anomaly/collaborative_filtering.py
26 21 6
def this()
in core/src/main/scala/com/microsoft/azure/synapse/ml/train/ComputeModelStatistics.scala
80 21 0
def this()
in core/src/main/scala/com/microsoft/azure/synapse/ml/featurize/ValueIndexer.scala
57 20 0
override def transformSchema()
in vw/src/main/scala/com/microsoft/azure/synapse/ml/vw/VowpalWabbitContextualBandit.scala
48 17 1
def this()
in core/src/main/scala/com/microsoft/azure/synapse/ml/train/TrainClassifier.scala
84 16 0
def this()
in core/src/main/scala/org/apache/spark/ml/feature/FastVectorAssembler.scala
60 16 0
def trainCore()
in lightgbm/src/main/scala/com/microsoft/azure/synapse/ml/lightgbm/TrainUtils.scala
62 16 5
def this()
in vw/src/main/scala/com/microsoft/azure/synapse/ml/vw/VowpalWabbitFeaturizer.scala
47 16 0
def getModelType()
in core/src/main/scala/com/microsoft/azure/synapse/ml/automl/EvaluationUtils.scala
17 15 1
def getMetricWithOperator()
in core/src/main/scala/com/microsoft/azure/synapse/ml/automl/EvaluationUtils.scala
22 14 2
def this()
in core/src/main/scala/com/microsoft/azure/synapse/ml/featurize/DataConversion.scala
48 14 0
private[ml] def sendWithRetries()
in core/src/main/scala/com/microsoft/azure/synapse/ml/io/http/HTTPClients.scala
46 14 3
def mapText()
in core/src/main/scala/com/microsoft/azure/synapse/ml/stages/TextPreprocessor.scala
27 14 1
def read()
in core/src/main/scala/org/apache/spark/ml/param/UntypedArrayParam.scala
13 14 1
def __init__()
in core/src/main/python/synapse/ml/cyber/anomaly/collaborative_filtering.py
54 13 18
def _transform()
in core/src/main/python/synapse/ml/cyber/anomaly/complement_access.py
59 13 2
def edges_between()
in core/src/main/python/synapse/ml/cyber/dataset.py
41 13 7
def zip_with_index()
in core/src/main/python/synapse/ml/cyber/utils/spark_utils.py
29 13 7
private def sparkTypeToEdmType()
in cognitive/src/main/scala/com/microsoft/azure/synapse/ml/cognitive/AzureSearch.scala
21 12 2
def getParamInfo()
in core/src/main/scala/com/microsoft/azure/synapse/ml/codegen/Wrappable.scala
15 12 1