Class StatisticsAnalysis.Result
java.lang.Object
org.variantsync.diffdetective.analysis.StatisticsAnalysis.Result
- All Implemented Interfaces:
Metadata<StatisticsAnalysis.Result>
- Enclosing class:
StatisticsAnalysis
public static final class StatisticsAnalysis.Result
extends Object
implements Metadata<StatisticsAnalysis.Result>
-
Field Summary
Modifier and TypeFieldDescriptionint
Number of commits that were not processed because they had no VariationDiffs.int
Number of commits that could not be parsed at all because of exceptions when operating JGit.static final org.variantsync.functjonal.category.InplaceSemigroup<StatisticsAnalysis.Result>
final CommitProcessTime
The commit that was processed the slowest.final CommitProcessTime
The commit that was processed the fastest.int
int
double
The total runtime in seconds (irrespective of multithreading).int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.variantsync.functjonal.category.InplaceSemigroup<StatisticsAnalysis.Result>
Metadata should be composable.void
setFromSnapshot
(LinkedHashMap<String, String> snap) snapshot()
Create a key-value store of the metadata that can be used for serialization.
-
Field Details
-
emptyCommits
public int emptyCommitsNumber of commits that were not processed because they had no VariationDiffs. A commit is empty iff at least of one of the following conditions is met for every of its patches:- the patch did not edit a C file,
- the VariationDiff became empty after transformations (this can happen if there are only whitespace changes),
- or the patch had syntax errors in its annotations, so the VariationDiff could not be parsed.
-
failedCommits
public int failedCommitsNumber of commits that could not be parsed at all because of exceptions when operating JGit. The number of commits that were filtered because they are a merge commit is thus given asfilteredCommits = totalCommits - processedCommits - emptyCommits - failedCommits
-
processedCommits
public int processedCommits -
totalPatches
public int totalPatches -
processedPatches
public int processedPatches -
runtimeInSeconds
public double runtimeInSecondsThe total runtime in seconds (irrespective of multithreading). -
min
The commit that was processed the fastest. -
max
The commit that was processed the slowest. -
ISEMIGROUP
public static final org.variantsync.functjonal.category.InplaceSemigroup<StatisticsAnalysis.Result> ISEMIGROUP
-
-
Constructor Details
-
Result
public Result() -
Result
-
-
Method Details
-
semigroup
Description copied from interface:Metadata
Metadata should be composable. Composition should be inplace to optimize performance.- Specified by:
semigroup
in interfaceMetadata<StatisticsAnalysis.Result>
-
snapshot
Description copied from interface:Metadata
Create a key-value store of the metadata that can be used for serialization.- Specified by:
snapshot
in interfaceMetadata<StatisticsAnalysis.Result>
- Returns:
- A LinkedHashMap that stores all relevant properties to export. The return type has to be a LinkedHashMap to obtain insertion-order iteration.
-
setFromSnapshot
- Specified by:
setFromSnapshot
in interfaceMetadata<StatisticsAnalysis.Result>
-