aws-samples / amazon-sagemaker-feature-store-in-java
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 34 units with 448 lines of code in units (76.1% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (54 lines of code)
    • 5 medium size units (162 lines of code)
    • 10 small units (150 lines of code)
    • 18 very small units (82 lines of code)
0% | 12% | 36% | 33% | 18%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 12% | 36% | 33% | 18%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Java/src/main/java/com/example/customername0% | 12% | 36% | 33% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static void featureGroupAPIs()
in Java/src/main/java/com/example/customername/FeatureStoreAPIExample.java
54 3 9
public static long batchIngest()
in Java/src/main/java/com/example/customername/Ingest.java
46 9 5
public static void createFeatureGroups()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
36 5 9
private void putRecordsIntoFG()
in Java/src/main/java/com/example/customername/Ingest.java
30 4 1
public static void deleteFeatureGroups()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
29 6 2
public static List makeColumnDefinitions()
in Java/src/main/java/com/example/customername/FeatureGroupRecordOperations.java
21 4 4
public static void checkOfflineStore()
in Java/src/main/java/com/example/customername/FeatureStoreAPIExample.java
19 3 2
public static void deleteExistingFeatureGroups()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
19 5 2
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
private static String getDataType()
in Java/src/main/java/com/example/customername/FeatureGroupRecordOperations.java
16 4 1
private static List buildRecord()
in Java/src/main/java/com/example/customername/FeatureGroupRecordOperations.java
15 4 3
public static void main()
in Java/src/main/java/com/example/customername/FeatureStoreAPIExample.java
14 1 1
private void ingestRecords()
in Java/src/main/java/com/example/customername/Ingest.java
11 2 0
public static void describeFeatureGroup()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
11 1 2
public static void deleteRecord()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
11 1 3
public void printMetrics()
in Java/src/main/java/com/example/customername/PerfMetrics.java
10 3 0
public void run()
in Java/src/main/java/com/example/customername/Ingest.java
9 2 0
public static List getRecord()
in Java/src/main/java/com/example/customername/FeatureGroupOperations.java
8 1 3
public Ingest()
in Java/src/main/java/com/example/customername/Ingest.java
6 1 4