Class MiningResultAccumulator
java.lang.Object
org.variantsync.diffdetective.tablegen.MiningResultAccumulator
Accumulates multiple
AnalysisResult
s of several datasets.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnalysisResult
Computes a totalAnalysisResult
from multiple metadata outputs.static Map<String,
AnalysisResult> getAllTotalResultsIn
(Path folderPath) Finds allAnalysisResult
s infolderPath
recursively.static void
Creates summary tables of mined data.
-
Constructor Details
-
MiningResultAccumulator
public MiningResultAccumulator()
-
-
Method Details
-
getAllTotalResultsIn
Finds allAnalysisResult
s infolderPath
recursively. All files having aAnalysis.TOTAL_RESULTS_FILE_NAME
filename 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 totalAnalysisResult
from multiple metadata outputs.- Parameters:
results
- analysis results to be accumulated- Returns:
- the total
AnalysisResult
of 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.
-