microsoft / azure-spark-java-sdk
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 394 units with 2,143 lines of code in units (59.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (17 lines of code)
    • 4 simple units (118 lines of code)
    • 389 very simple units (2,008 lines of code)
0% | 0% | <1% | 5% | 93%
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% | <1% | 5% | 93%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/main/java/com/microsoft/azure/spark/tools/job0% | 0% | 2% | 8% | 89%
src/main/java/com/microsoft/azure/spark/tools/restapi0% | 0% | 0% | 10% | 89%
src/main/java/com/microsoft/azure/spark/tools/http0% | 0% | 0% | 4% | 95%
src/main/java/com/microsoft/azure/spark/tools/processes0% | 0% | 0% | 0% | 100%
src/main/java/com/microsoft/azure/spark/tools/utils0% | 0% | 0% | 0% | 100%
src/main/java/com/microsoft/azure/spark/tools/clusters0% | 0% | 0% | 0% | 100%
src/main/java/com/microsoft/azure/spark/tools/errors0% | 0% | 0% | 0% | 100%
src/main/java/com/microsoft/azure/spark/tools/events0% | 0% | 0% | 0% | 100%
src/main/java/com/microsoft/azure/spark/tools/ux0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public boolean isDone()
in src/main/java/com/microsoft/azure/spark/tools/job/LivySparkBatch.java
17 11 1
Map parseLogsFromHtml()
in src/main/java/com/microsoft/azure/spark/tools/job/YarnContainerLogFetcher.java
37 10 2
private boolean isYarnAppLogAggregationDone()
in src/main/java/com/microsoft/azure/spark/tools/job/YarnContainerLogFetcher.java
14 8 0
public static HttpErrorStatus classifyHttpError()
in src/main/java/com/microsoft/azure/spark/tools/http/status/HttpErrorStatus.java
22 7 1
protected PostBatches()
in src/main/java/com/microsoft/azure/spark/tools/restapi/livy/batches/api/PostBatches.java
45 7 16
public Observable request()
in src/main/java/com/microsoft/azure/spark/tools/http/HttpObservable.java
22 5 4
public Observable awaitStarted()
in src/main/java/com/microsoft/azure/spark/tools/job/LivySparkBatch.java
19 5 0
public static WasbUri parse()
in src/main/java/com/microsoft/azure/spark/tools/utils/WasbUri.java
21 5 1
public static ArcadiaComputeDetail parseFromLivyUrl()
in src/main/java/com/microsoft/azure/spark/tools/clusters/ArcadiaComputeDetail.java
10 4 1
public static Observable toStringOnlyOkResponse()
in src/main/java/com/microsoft/azure/spark/tools/http/HttpObservable.java
24 4 1
protected List getOAuthDefaultHeaders()
in src/main/java/com/microsoft/azure/spark/tools/http/OAuthTokenHttpObservable.java
17 4 0
public UserAgentEntity()
in src/main/java/com/microsoft/azure/spark/tools/http/UserAgentEntity.java
18 4 3
boolean isNoMoreLivyLogs()
in src/main/java/com/microsoft/azure/spark/tools/job/LivySparkBatch.java
5 4 2
private Observable convertToPublicLogUri()
in src/main/java/com/microsoft/azure/spark/tools/job/YarnContainerLogFetcher.java
22 4 1
private boolean isYarnAppStop()
in src/main/java/com/microsoft/azure/spark/tools/job/YarnContainerLogFetcher.java
10 4 0
public Observable getDriverHost()
in src/main/java/com/microsoft/azure/spark/tools/job/YarnContainerLogFetcher.java
16 4 0
private Observable getContentFromYarnLogDom()
in src/main/java/com/microsoft/azure/spark/tools/job/YarnContainerLogFetcher.java
25 4 4
public synchronized void destroy()
in src/main/java/com/microsoft/azure/spark/tools/processes/SparkBatchJobRemoteProcess.java
19 4 0
public void start()
in src/main/java/com/microsoft/azure/spark/tools/processes/SparkBatchJobRemoteProcess.java
34 4 0
protected Observable prepareArtifact()
in src/main/java/com/microsoft/azure/spark/tools/processes/SparkBatchJobRemoteProcess.java
16 4 0