awslabs / deequ
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 622 units with 6,453 lines of code in units (78.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (105 lines of code)
    • 7 medium complex units (331 lines of code)
    • 23 simple units (826 lines of code)
    • 591 very simple units (5,191 lines of code)
0% | 1% | 5% | 12% | 80%
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% | 1% | 5% | 12% | 80%
java0% | 0% | 0% | 97% | 2%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
deequ/repository0% | 15% | 13% | 10% | 61%
deequ/profiles0% | 0% | 17% | 20% | 61%
deequ/analyzers0% | 0% | 4% | 13% | 82%
deequ/suggestions0% | 0% | 0% | 12% | 88%
deequ/anomalydetection0% | 0% | 0% | 22% | 77%
deequ/constraints0% | 0% | 0% | 12% | 87%
deequ/schema0% | 0% | 0% | 35% | 64%
deequ/metrics0% | 0% | 0% | 19% | 80%
deequ/checks0% | 0% | 0% | 0% | 100%
deequ0% | 0% | 0% | 0% | 100%
deequ/io0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
override def serialize()
in src/main/scala/com/amazon/deequ/repository/AnalysisResultSerde.scala
105 27 4
override def deserialize()
in src/main/scala/com/amazon/deequ/repository/AnalysisResultSerde.scala
91 25 3
private[this] def extractNumericStatistics()
in src/main/scala/com/amazon/deequ/profiles/ColumnProfiler.scala
69 23 1
override def persist[S <: State[_]]()
in src/main/scala/com/amazon/deequ/analyzers/StateProvider.scala
40 16 3
override def load[S <: State[_]]()
in src/main/scala/com/amazon/deequ/analyzers/StateProvider.scala
25 16 2
private[this] def extractGenericStatistics()
in src/main/scala/com/amazon/deequ/profiles/ColumnProfiler.scala
59 16 5
def generateRandomData()
in src/main/scala/com/amazon/deequ/analyzers/applicability/Applicability.scala
27 12 2
private[this] def emptySketches()
in src/main/scala/com/amazon/deequ/analyzers/runners/KLLRunner.scala
20 11 3
def count()
in src/main/scala/com/amazon/deequ/analyzers/catalyst/StatefulHyperloglogPlus.scala
38 10 1
private[deequ] def doAnalysisRun()
in src/main/scala/com/amazon/deequ/analyzers/runners/AnalysisRunner.scala
77 10 7
private[this] def runAnalyzersForParticularGrouping()
in src/main/scala/com/amazon/deequ/analyzers/runners/AnalysisRunner.scala
49 9 5
override def serialize()
in src/main/scala/com/amazon/deequ/repository/AnalysisResultSerde.scala
35 9 3
def toJson()
in src/main/scala/com/amazon/deequ/profiles/ColumnProfile.scala
86 9 1
def determineType()
in src/main/scala/com/amazon/deequ/analyzers/DataType.scala
22 8 1
def isApplicable()
in src/main/scala/com/amazon/deequ/analyzers/applicability/Applicability.scala
26 8 2
def getHistogramsForThirdPass()
in src/main/scala/com/amazon/deequ/profiles/ColumnProfiler.scala
37 8 7
override def equals()
in src/main/scala/com/amazon/deequ/metrics/KLLMetric.scala
19 8 1
def estimateBias()
in src/main/scala/com/amazon/deequ/analyzers/catalyst/StatefulHyperloglogPlus.scala
26 7 1
public static AttributeReference createSafe()
in src/main/scala/com/amazon/deequ/analyzers/catalyst/AttributeReferenceCreation.java
37 7 1
def quantiles()
in src/main/scala/com/amazon/deequ/analyzers/QuantileNonSample.scala
29 7 1