aws-samples / amazon-sagemaker-feature-store-in-java
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 34 units with 448 lines of code in units (76.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (75 lines of code)
    • 32 very simple units (373 lines of code)
0% | 0% | 0% | 16% | 83%
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
java0% | 0% | 0% | 16% | 83%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Java/src/main/java/com/example/customername0% | 0% | 0% | 16% | 83%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static long batchIngest()
in Java/src/main/java/com/example/customername/Ingest.java
46 9 5
public static void deleteFeatureGroups()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
29 6 2
public static void createFeatureGroups()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
36 5 9
public static void deleteExistingFeatureGroups()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
19 5 2
private void putRecordsIntoFG()
in Java/src/main/java/com/example/customername/Ingest.java
30 4 1
private static List buildRecord()
in Java/src/main/java/com/example/customername/FeatureGroupRecordOperations.java
15 4 3
public static List makeColumnDefinitions()
in Java/src/main/java/com/example/customername/FeatureGroupRecordOperations.java
21 4 4
private static String getDataType()
in Java/src/main/java/com/example/customername/FeatureGroupRecordOperations.java
16 4 1
public static void runFeatureGroupGetTests()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
18 4 5
public static List readCSVIntoList()
in Java/src/main/java/com/example/customername/CsvIO.java
16 3 1
public void printMetrics()
in Java/src/main/java/com/example/customername/PerfMetrics.java
10 3 0
public static void featureGroupAPIs()
in Java/src/main/java/com/example/customername/FeatureStoreAPIExample.java
54 3 9
public static void checkOfflineStore()
in Java/src/main/java/com/example/customername/FeatureStoreAPIExample.java
19 3 2
private void ingestRecords()
in Java/src/main/java/com/example/customername/Ingest.java
11 2 0
public void run()
in Java/src/main/java/com/example/customername/Ingest.java
9 2 0
public static void describeFeatureGroups()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
5 2 2
public PerfMetrics()
in Java/src/main/java/com/example/customername/PerfMetrics.java
3 1 1
public long percentile()
in Java/src/main/java/com/example/customername/PerfMetrics.java
5 1 2
public void startTimer()
in Java/src/main/java/com/example/customername/PerfMetrics.java
3 1 0
public void endTimer()
in Java/src/main/java/com/example/customername/PerfMetrics.java
3 1 0