Class MiningResultAccumulator
java.lang.Object
org.variantsync.diffdetective.tablegen.MiningResultAccumulator
Accumulates multiple
AnalysisResults of several datasets.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnalysisResultComputes a totalAnalysisResultfrom multiple metadata outputs.static Map<String, AnalysisResult> getAllTotalResultsIn(Path folderPath) Finds allAnalysisResults infolderPathrecursively.static voidCreates summary tables of mined data.
-
Constructor Details
-
MiningResultAccumulator
public MiningResultAccumulator()
-
-
Method Details
-
getAllTotalResultsIn
Finds allAnalysisResults infolderPathrecursively. All files having aAnalysis.TOTAL_RESULTS_FILE_NAMEfilename ending are parsed and associated with their filename.- Parameters:
folderPath- the folder which is scanned for analysis results recursively- Returns:
- an association between the parsed filenames and their parsed content
- Throws:
IOException
-
computeTotalMetadataResult
Computes a totalAnalysisResultfrom multiple metadata outputs.- Parameters:
results- analysis results to be accumulated- Returns:
- the total
AnalysisResultof allresults
-
main
Creates summary tables of mined data.Expected runtime parameters:
- Data directory. This directory should containing the raw data (analysis results and computation times) for all analysed datasets. The ultimate accumulation will also be placed here.
- Output directory for latex tables. All LaTex tables generated by this function will be saves into this directory.
The following data will be saved into appropriate files:
- An ultimate result containing the accumulation of all analysed datasets.
- Eight variants of a LaTex table containing accumulated analysis results and computation times for each dataset.
- Whether the results are filtered to only include the biggest datasets.
- Whether the amount of each edit type is given in absolute or relative numbers.
- Whether the edit count of each edit class or only the share of edit classes editing the variability is included.
- Throws:
IOExceptionParseException- See Also:
-