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
FieldsModifier and TypeFieldDescriptionintNumber of commits that were not processed because they had no VariationDiffs.intNumber 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 CommitProcessTimeThe commit that was processed the slowest.final CommitProcessTimeThe commit that was processed the fastest.intintdoubleThe total runtime in seconds (irrespective of multithreading).int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.variantsync.functjonal.category.InplaceSemigroup<StatisticsAnalysis.Result> Metadata should be composable.voidsetFromSnapshot(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:MetadataMetadata should be composable. Composition should be inplace to optimize performance.- Specified by:
semigroupin interfaceMetadata<StatisticsAnalysis.Result>
-
snapshot
Description copied from interface:MetadataCreate a key-value store of the metadata that can be used for serialization.- Specified by:
snapshotin 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:
setFromSnapshotin interfaceMetadata<StatisticsAnalysis.Result>
-