Uses of Class
org.variantsync.diffdetective.variation.DiffLinesLabel
Package
Description
-
Uses of DiffLinesLabel in org.variantsync.diffdetective.analysis
Modifier and TypeFieldDescriptionprotected VariationDiff<DiffLinesLabel>
Analysis.currentVariationDiff
private final LineGraphExportOptions<? super DiffLinesLabel>
LineGraphExportAnalysis.exportOptions
private final List<VariationDiffTransformer<DiffLinesLabel>>
PreprocessingAnalysis.preprocessors
private ExplainedFilter<VariationDiff<? extends DiffLinesLabel>>
FilterAnalysis.treeFilter
Modifier and TypeMethodDescriptionAnalysis.getCurrentVariationDiff()
The currently processed patch.ModifierConstructorDescriptionFilterAnalysis
(ExplainedFilter<VariationDiff<? extends DiffLinesLabel>> treeFilter) LineGraphExportAnalysis
(AnalysisStrategy analysisStrategy, LineGraphExportOptions<? super DiffLinesLabel> exportOptions) PreprocessingAnalysis
(List<VariationDiffTransformer<DiffLinesLabel>> preprocessors) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.diff.git
Modifier and TypeFieldDescriptionprivate final VariationDiff<DiffLinesLabel>
PatchDiff.variationDiff
Modifier and TypeMethodDescriptionPatchDiff.getVariationDiff()
Returns the VariationDiff for this patch.ModifierConstructorDescriptionPatchDiff
(CommitDiff commitDiff, org.eclipse.jgit.diff.DiffEntry diffEntry, String fullDiff, VariationDiff<DiffLinesLabel> variationDiff) Creates a new PatchDiff. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.examplesearch
Modifier and TypeFieldDescriptionstatic final RenderOptions<DiffLinesLabel>
ExampleFinder.ExportOptions
Default render options for exporting example candidates.private final ExplainedFilter<VariationDiff<? extends DiffLinesLabel>>
ExampleFinder.isGoodExample
Modifier and TypeMethodDescriptionprivate static final ExplainedFilter<VariationDiff<? extends DiffLinesLabel>>
Main.EXAMPLE_CRITERIONS()
Modify this list to your requirements on a suitable example.Modifier and TypeMethodDescriptionprivate void
ExampleFinder.exportExample
(Analysis analysis, String tdiff, VariationDiff<DiffLinesLabel> vdiff, Path outputDir) ModifierConstructorDescriptionExampleFinder
(ExplainedFilter<VariationDiff<? extends DiffLinesLabel>> isGoodExample, VariationDiffRenderer renderer) Creates a new ExampleFinder. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.experiments.esecfse22
Modifier and TypeMethodDescriptionprivate static EdgeLabelFormat<DiffLinesLabel>
EditClassValidation.EdgeFormat
(MiningNodeFormat nodeFormat) Returns the edge format that should be used for IO of edges in VariationDiffs.static LineGraphExportOptions<DiffLinesLabel>
EditClassValidation.ValidationExportOptions
(Repository repository) Creates new export options for running the validation on the given repository. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.experiments.thesis_bm
Modifier and TypeMethodDescriptionprivate VariationDiff<DiffLinesLabel>
ConstructionValidation.parseVariationTree
(Analysis analysis, org.eclipse.jgit.revwalk.RevCommit commit) Modifier and TypeMethodDescriptionprivate void
ConstructionValidation.counts
(VariationDiff<DiffLinesLabel> tree, ConstructionValidation.VariationDiffStatistics statistics) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.experiments.views
Modifier and TypeMethodDescriptionViewAnalysis.generateRandomRelevances
(VariationDiff<DiffLinesLabel> d) Generates random relevance predicates for creating random views on the given variation diff d, as explained in Section 6.1 in our paper.private void
ViewAnalysis.runRelevanceExperiment
(Analysis analysis, VariationDiff<DiffLinesLabel> d, Relevance rho) Benchmark for view generation on the given variation diff with the given relevance. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.internal
Modifier and TypeFieldDescriptionprivate static final Format<DiffLinesLabel>
TextDiffToTikz.format
Format used for the test export.private static final RenderOptions<DiffLinesLabel>
SimpleRenderer.RENDER_OPTIONS_TO_USE
private static final RenderOptions<DiffLinesLabel>
SimpleRenderer.renderCompositePatterns
private static final RenderOptions<DiffLinesLabel>
SimpleRenderer.renderExampleOptions
private static final RenderOptions<DiffLinesLabel>
SimpleRenderer.renderOptions
private static final RenderOptions<DiffLinesLabel>
SimpleRenderer.vulkanRenderOptions
Modifier and TypeMethodDescriptionstatic String
TextDiffToTikz.exportAsTikz
(VariationDiff<DiffLinesLabel> variationDiff, GraphvizExporter.LayoutAlgorithm layout) static String
TextDiffToTikz.tikzNodeLabel
(DiffNode<? extends DiffLinesLabel> node) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.mining
Modifier and TypeMethodDescriptionstatic EdgeLabelFormat<DiffLinesLabel>
VariationDiffMiner.EdgeFormat()
private static EdgeLabelFormat<DiffLinesLabel>
VariationDiffMiner.EdgeFormat
(MiningNodeFormat nodeFormat) static LineGraphExportOptions<DiffLinesLabel>
VariationDiffMiner.MiningExportOptions
(Repository repository) static List<VariationDiffTransformer<DiffLinesLabel>>
VariationDiffMiner.Postprocessing
(Repository repository) Modifier and TypeMethodDescriptionRWCompositePatternNodeFormat.toLabel
(DiffNode<? extends DiffLinesLabel> node) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.mining.formats
Modifier and TypeClassDescriptionprivate static final record
DirectedEdgeLabelFormat.Edge<L extends DiffLinesLabel>
Modifier and TypeMethodDescriptionprotected <L extends DiffLinesLabel>
voidDirectedEdgeLabelFormat.connectAccordingToLabel
(DiffNode<L> child, DiffNode<L> parent, String edgeLabel) <L extends DiffLinesLabel>
StringDirectedEdgeLabelFormat.labelOf
(StyledEdge<L> edge) private <L extends DiffLinesLabel>
DirectedEdgeLabelFormat.Edge<L>DirectedEdgeLabelFormat.recoverEdgeDirectionFromLabelIfPossible
(DiffNode<L> hypothesizedFrom, DiffNode<L> hypothesizedTo, String edgeLabel) Modifier and TypeMethodDescriptiondefault DiffNode<DiffLinesLabel>
MiningNodeFormat.fromLabelAndId
(String lineGraphNodeLabel, int nodeId) Modifier and TypeMethodDescriptionDebugMiningDiffNodeFormat.toLabel
(DiffNode<? extends DiffLinesLabel> node) ReleaseMiningDiffNodeFormat.toLabel
(DiffNode<? extends DiffLinesLabel> node) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.mining.postprocessing
Modifier and TypeFieldDescriptionstatic final RenderOptions<DiffLinesLabel>
MiningPostprocessing.DefaultRenderOptions
private static final LineGraphExportOptions<DiffLinesLabel>
MiningPostprocessing.EXPORT_OPTIONS
private static final LineGraphImportOptions<DiffLinesLabel>
MiningPostprocessing.IMPORT_OPTIONS
Modifier and TypeMethodDescriptionstatic List<VariationDiff<DiffLinesLabel>>
MiningPostprocessing.parseFrequentSubgraphsIn
(Path path) Parses all linegraph files in the given directory or file as patterns (i.e., as DiffGraphs).Modifier and TypeMethodDescriptionstatic void
MiningPostprocessing.postprocessAndInterpretResults
(List<VariationDiff<DiffLinesLabel>> frequentSubgraphs, Postprocessor<DiffLinesLabel> postprocessor, Consumer<String> printer, VariationDiffRenderer renderer, RenderOptions<? super DiffLinesLabel> renderOptions, Path outputDir) static void
MiningPostprocessing.postprocessAndInterpretResults
(List<VariationDiff<DiffLinesLabel>> frequentSubgraphs, Postprocessor<DiffLinesLabel> postprocessor, Consumer<String> printer, VariationDiffRenderer renderer, RenderOptions<? super DiffLinesLabel> renderOptions, Path outputDir) static void
MiningPostprocessing.postprocessAndInterpretResults
(List<VariationDiff<DiffLinesLabel>> frequentSubgraphs, Postprocessor<DiffLinesLabel> postprocessor, Consumer<String> printer, VariationDiffRenderer renderer, RenderOptions<? super DiffLinesLabel> renderOptions, Path outputDir) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation
Modifier and TypeMethodDescriptionDiffLinesLabel.clone()
static DiffLinesLabel
DiffLinesLabel.ofCodeBlock
(String codeBlock) static DiffLinesLabel
DiffLinesLabel.withInvalidLineNumbers
(List<String> lines) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.diff
Modifier and TypeMethodDescriptionstatic DiffNode<DiffLinesLabel>
DiffNode.createArtifact
(DiffType diffType, DiffLineNumber fromLines, DiffLineNumber toLines, String code) Creates an artifact node with the given parameters.static VariationDiff<DiffLinesLabel>
VariationDiff.fromDiff
(String diff, VariationDiffParseOptions parseOptions) Parses a VariationDiff from the given unix diff.static VariationDiff<DiffLinesLabel>
VariationDiff.fromFile
(Path p, VariationDiffParseOptions parseOptions) Parses a VariationDiff from the given file.static VariationDiff<DiffLinesLabel>
VariationDiff.fromFiles
(Path beforeFile, Path afterFile, org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm algorithm, VariationDiffParseOptions options) Create a VariationDiff from two given text files.static DiffNode<DiffLinesLabel>
Reconstructs a node from the given id and sets the given label.static VariationDiff<DiffLinesLabel>
VariationDiff.fromLines
(String before, String after, org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm algorithm, VariationDiffParseOptions options) Creates a variation diff from to line-based text inputs.static VariationDiff<DiffLinesLabel>
DiffGraph.fromNodes
(Collection<DiffNode<DiffLinesLabel>> nodes) Deprecated.InvokesDiffGraph.fromNodes(Collection, VariationDiffSource)
)} with an unknown VariationDiffSource.static VariationDiff<DiffLinesLabel>
DiffGraph.fromNodes
(Collection<DiffNode<DiffLinesLabel>> nodes, VariationDiffSource source) Deprecated.Takes a set of DiffNodes that forms a DiffGraph (i.e., similar to a VariationDiff but with no explicit root) and converts it to a VariationDiff by equipping it with a synthetic root node.static org.variantsync.functjonal.Result<VariationDiff<DiffLinesLabel>,
List<DiffError>> VariationDiff.fromPatch
(PatchReference patchReference, Repository repository) Parses a patch of a Git repository.Modifier and TypeMethodDescriptionstatic VariationDiff<DiffLinesLabel>
DiffGraph.fromNodes
(Collection<DiffNode<DiffLinesLabel>> nodes) Deprecated.InvokesDiffGraph.fromNodes(Collection, VariationDiffSource)
)} with an unknown VariationDiffSource.static VariationDiff<DiffLinesLabel>
DiffGraph.fromNodes
(Collection<DiffNode<DiffLinesLabel>> nodes, VariationDiffSource source) Deprecated.Takes a set of DiffNodes that forms a DiffGraph (i.e., similar to a VariationDiff but with no explicit root) and converts it to a VariationDiff by equipping it with a synthetic root node. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.diff.construction
Modifier and TypeMethodDescriptionstatic VariationDiff<DiffLinesLabel>
JGitDiff.diff
(String linesBefore, String linesAfter, org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm algorithm, VariationDiffParseOptions options) Creates a variation diff from to line-based text inputs. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.diff.parse
Modifier and TypeFieldDescriptionprivate final Stack<DiffNode<DiffLinesLabel>>
VariationDiffParser.afterStack
A stack containing the current path after the edit from the root of the currently parsedVariationDiff
to the currently parsedDiffNode
.private final Stack<DiffNode<DiffLinesLabel>>
VariationDiffParser.beforeStack
A stack containing the current path before the edit from the root of the currently parsedVariationDiff
to the currently parsedDiffNode
.private DiffNode<DiffLinesLabel>
VariationDiffParser.lastArtifact
Modifier and TypeMethodDescriptionstatic VariationDiff<DiffLinesLabel>
VariationDiffParser.createVariationDiff
(BufferedReader fullDiff, VariationDiffParseOptions options) Default parsing method forVariationDiff
s from diffs.static VariationDiff<DiffLinesLabel>
VariationDiffParser.createVariationDiff
(String fullDiff, VariationDiffParseOptions parseOptions) The same asVariationDiffParser.createVariationDiff(BufferedReader, VariationDiffParseOptions)
but with the diff given as a single string with line breaks instead of aBufferedReader
.static VariationDiff<DiffLinesLabel>
VariationDiffParser.createVariationTree
(BufferedReader file, VariationDiffParseOptions options) Parses a variation tree from a source file.private VariationDiff<DiffLinesLabel>
VariationDiffParser.parse
(org.apache.commons.lang3.function.FailableSupplier<VariationDiffParser.DiffLine, IOException> lines) Parses the line difffullDiff
.Modifier and TypeMethodDescriptionprivate void
VariationDiffParser.addNode
(DiffNode<DiffLinesLabel> newNode) Adds a fully parsed node into theVariationDiff
.private void
VariationDiffParser.popIfChain
(Stack<DiffNode<DiffLinesLabel>> stack, DiffLineNumber elseLineNumber) Popstack
until an IF node is popped. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.diff.render
Modifier and TypeFieldDescriptionstatic final RenderOptions<DiffLinesLabel>
PatchDiffRenderer.ErrorVariationDiffRenderOptions
Default RenderOptions for debug rendering of VariationDiffs relevant to the occurrence of an error.private final RenderOptions<? super DiffLinesLabel>
PatchDiffRenderer.options
Modifier and TypeMethodDescriptionvoid
PatchDiffRenderer.render
(VariationDiff<? extends DiffLinesLabel> variationDiff, GitPatch patch, Path outputDirectory) Renders the given VariationDiff that originated from the given patch to the given output directory.boolean
VariationDiffRenderer.render
(PatchDiff patchDiff, Path directory, RenderOptions<? super DiffLinesLabel> options) InvokesVariationDiffRenderer.render(VariationDiff, GitPatch, Path, RenderOptions)
by extracting the given patchDiff's VariationDiff.boolean
VariationDiffRenderer.render
(PatchDiff patchDiff, Path directory, RenderOptions<? super DiffLinesLabel> options, LineGraphExportOptions<? super DiffLinesLabel> exportOptions) InvokesVariationDiffRenderer.render(VariationDiff, GitPatch, Path, RenderOptions, LineGraphExportOptions)
by extracting the given patchDiff's VariationDiff.boolean
VariationDiffRenderer.render
(PatchDiff patchDiff, Path directory, RenderOptions<? super DiffLinesLabel> options, LineGraphExportOptions<? super DiffLinesLabel> exportOptions) InvokesVariationDiffRenderer.render(VariationDiff, GitPatch, Path, RenderOptions, LineGraphExportOptions)
by extracting the given patchDiff's VariationDiff.ModifierConstructorDescriptionPatchDiffRenderer
(VariationDiffRenderer renderer, RenderOptions<? super DiffLinesLabel> options) Creates a PatchDiffRenderer wrapping the given renderer and rendering patches with the given options. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.diff.serialize
Modifier and TypeMethodDescriptionstatic List<VariationDiff<DiffLinesLabel>>
LineGraphImport.fromFile
(Path path, LineGraphImportOptions<DiffLinesLabel> options) Import all VariationDiffs from the given linegraph file.static List<VariationDiff<DiffLinesLabel>>
LineGraphImport.fromLineGraph
(BufferedReader lineGraph, Path originalFile, LineGraphImportOptions<DiffLinesLabel> options) Import all VariationDiffs from the given linegraph file.private static VariationDiff<DiffLinesLabel>
LineGraphImport.parseVariationDiff
(String lineGraph, Path inFile, List<DiffNode<DiffLinesLabel>> diffNodeList, LineGraphImportOptions<DiffLinesLabel> options) Generates aVariationDiff
from the given, already parsed parameters.Modifier and TypeMethodDescriptionstatic List<VariationDiff<DiffLinesLabel>>
LineGraphImport.fromFile
(Path path, LineGraphImportOptions<DiffLinesLabel> options) Import all VariationDiffs from the given linegraph file.static List<VariationDiff<DiffLinesLabel>>
LineGraphImport.fromLineGraph
(BufferedReader lineGraph, Path originalFile, LineGraphImportOptions<DiffLinesLabel> options) Import all VariationDiffs from the given linegraph file.private static VariationDiff<DiffLinesLabel>
LineGraphImport.parseVariationDiff
(String lineGraph, Path inFile, List<DiffNode<DiffLinesLabel>> diffNodeList, LineGraphImportOptions<DiffLinesLabel> options) Generates aVariationDiff
from the given, already parsed parameters.private static VariationDiff<DiffLinesLabel>
LineGraphImport.parseVariationDiff
(String lineGraph, Path inFile, List<DiffNode<DiffLinesLabel>> diffNodeList, LineGraphImportOptions<DiffLinesLabel> options) Generates aVariationDiff
from the given, already parsed parameters.static LineGraphExport.Statistic
LineGraphExport.toLineGraphFormat
(CommitDiff commitDiff, LineGraphExportOptions<? super DiffLinesLabel> options, OutputStream destination) Writes the given commitDiff in linegraph format to the given StringBuilder.static LineGraphExport.Statistic
LineGraphExport.toLineGraphFormat
(PatchDiff patch, LineGraphExportOptions<? super DiffLinesLabel> options, OutputStream destination) Writes the given patch in linegraph format to the given StringBuilder. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.diff.serialize.nodeformat
Modifier and TypeMethodDescriptiondefault DiffNode<DiffLinesLabel>
DiffNodeLabelFormat.fromLabelAndId
(String lineGraphNodeLabel, int nodeId) Converts a label of line graph into aDiffNode
.default org.variantsync.functjonal.Pair<Integer,
DiffNode<DiffLinesLabel>> DiffNodeLabelFormat.fromLineGraphLine
(String lineGraphLine) Converts a line describing a graph (starting with "t # ") in line graph format into aVariationDiffSource
.Modifier and TypeMethodDescriptionFullNodeFormat.toLabel
(DiffNode<? extends DiffLinesLabel> node) FullNodeFormat.toMultilineLabel
(DiffNode<? extends DiffLinesLabel> node) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.diff.transform
Modifier and TypeFieldDescriptionprivate final List<Stack<DiffNode<DiffLinesLabel>>>
CollapseNestedNonEditedAnnotations.chainCandidates
private final List<Stack<DiffNode<DiffLinesLabel>>>
CollapseNestedNonEditedAnnotations.chains
private final VariationDiffTransformer<DiffLinesLabel>
LabelWithEditClass.relabelNodes
Modifier and TypeMethodDescriptionList<Class<? extends VariationDiffTransformer<DiffLinesLabel>>>
CollapseNestedNonEditedAnnotations.getDependencies()
List<Class<? extends VariationDiffTransformer<DiffLinesLabel>>>
LabelWithEditClass.getDependencies()
Modifier and TypeMethodDescriptionprivate static void
CollapseNestedNonEditedAnnotations.collapseChain
(Stack<DiffNode<DiffLinesLabel>> chain) private void
CollapseNestedNonEditedAnnotations.finalize
(Stack<DiffNode<DiffLinesLabel>> chain) private void
CollapseNestedNonEditedAnnotations.findChains
(VariationDiffTraversal<DiffLinesLabel> traversal, DiffNode<DiffLinesLabel> subtree) private void
CollapseNestedNonEditedAnnotations.findChains
(VariationDiffTraversal<DiffLinesLabel> traversal, DiffNode<DiffLinesLabel> subtree) void
CollapseNestedNonEditedAnnotations.transform
(VariationDiff<DiffLinesLabel> variationDiff) void
LabelWithEditClass.transform
(VariationDiff<DiffLinesLabel> variationDiff) -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.diff.view
Modifier and TypeMethodDescriptionstatic <L extends Label>
VariationDiff<DiffLinesLabel>DiffView.naive
(VariationDiff<L> d, Relevance rho) This function generates a view on the given variation diff by generating views on the underlying variation trees, and then differencing these tree views.private static <L extends Label>
VariationDiff<DiffLinesLabel>DiffView.naive
(VariationDiff<L> d, Relevance rho, String[] projectionViewText) This method is not intended to be used directly and exists for optimization purposes only.static <L extends Label>
VariationDiff<DiffLinesLabel>DiffView.naive
(VariationDiff<L> d, Relevance rho, BiPredicate<Time, Projection<L>> inView) This method is not intended to be used directly and exists for optimization purposes only. -
Uses of DiffLinesLabel in org.variantsync.diffdetective.variation.tree
Modifier and TypeMethodDescriptionstatic VariationTree<DiffLinesLabel>
VariationTree.fromFile
(BufferedReader input, VariationTreeSource source, VariationDiffParseOptions parseOptions) Parses aVariationTree
from source code with C preprocessor annotations.static VariationTree<DiffLinesLabel>
Same asVariationTree.fromFile(Path, VariationDiffParseOptions)
but withVariationDiffParseOptions.Default
parse options.static VariationTree<DiffLinesLabel>
VariationTree.fromFile
(Path path, VariationDiffParseOptions parseOptions) Same asVariationTree.fromFile(BufferedReader, VariationTreeSource, VariationDiffParseOptions)
but registerspath
as source.