Class MiningPostprocessing
java.lang.Object
org.variantsync.diffdetective.mining.postprocessing.MiningPostprocessing
Performs a postprocessing on mined frequent subgraphs in edits to find edit classes.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final VariationDiffRenderer
static final RenderOptions<DiffLinesLabel>
private static final LineGraphExportOptions<DiffLinesLabel>
private static final LineGraphImportOptions<DiffLinesLabel>
private static final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static List<VariationDiff<DiffLinesLabel>>
parseFrequentSubgraphsIn
(Path path) Parses all linegraph files in the given directory or file as patterns (i.e., as DiffGraphs).static void
postprocessAndInterpretResults
(List<VariationDiff<DiffLinesLabel>> frequentSubgraphs, Postprocessor<DiffLinesLabel> postprocessor, Consumer<String> printer, VariationDiffRenderer renderer, RenderOptions<? super DiffLinesLabel> renderOptions, Path outputDir)
-
Field Details
-
DefaultRenderer
-
RENDER_CANDIDATES
private static final boolean RENDER_CANDIDATES- See Also:
-
IMPORT_OPTIONS
-
EXPORT_OPTIONS
-
DefaultRenderOptions
-
-
Constructor Details
-
MiningPostprocessing
public MiningPostprocessing()
-
-
Method Details
-
main
- Throws:
IOException
-
parseFrequentSubgraphsIn
public static List<VariationDiff<DiffLinesLabel>> parseFrequentSubgraphsIn(Path path) throws IOException Parses all linegraph files in the given directory or file as patterns (i.e., as DiffGraphs). non-recursive- Parameters:
path
- A path to a linegraph file or a directory containing linegraph files.- Returns:
- The list of all diffgraphs parsed from linegraph files in the given directory.
- Throws:
IOException
- If the directory could not be accessed (Files.list(java.nio.file.Path)
).
-
postprocessAndInterpretResults
public static void postprocessAndInterpretResults(List<VariationDiff<DiffLinesLabel>> frequentSubgraphs, Postprocessor<DiffLinesLabel> postprocessor, Consumer<String> printer, VariationDiffRenderer renderer, RenderOptions<? super DiffLinesLabel> renderOptions, Path outputDir)
-