Uses of Class
org.variantsync.diffdetective.variation.diff.VariationDiff
Package
Description
-
Uses of VariationDiff in org.variantsync.diffdetective.analysis
Modifier and TypeFieldDescriptionprotected VariationDiff<DiffLinesLabel>
Analysis.currentVariationDiff
Modifier and TypeFieldDescriptionprivate ExplainedFilter<VariationDiff<? extends DiffLinesLabel>>
FilterAnalysis.treeFilter
Modifier and TypeMethodDescriptionAnalysis.getCurrentVariationDiff()
The currently processed patch.ModifierConstructorDescriptionFilterAnalysis
(ExplainedFilter<VariationDiff<? extends DiffLinesLabel>> treeFilter) -
Uses of VariationDiff in org.variantsync.diffdetective.analysis.logic
Modifier and TypeMethodDescriptionstatic List<org.prop4j.Node>
UniqueViewsAlgorithm.getUniquePartialConfigs
(VariationDiff<?> d, boolean simplify) Build a set of partial configurations such that - every config denotes a view of the given diff - every view is uniqe - every possible view is included This works by deselecting any subset of presence conditions of the artifacts in the given diff. -
Uses of VariationDiff 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 VariationDiff in org.variantsync.diffdetective.editclass
Modifier and TypeMethodDescriptionboolean
EditClass.anyMatch
(VariationDiff<?> t) Returns true iff this edit class matches at leat one node on the given tree. -
Uses of VariationDiff in org.variantsync.diffdetective.examplesearch
Modifier and TypeFieldDescriptionprivate final ExplainedFilter<VariationDiff<? extends DiffLinesLabel>>
ExampleFinder.isGoodExample
Modifier and TypeMethodDescriptionstatic final <L extends Label>
ExplainedFilter<VariationDiff<L>>ExampleCriterions.DefaultExampleConditions()
static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.DOES_NOT_CONTAIN_ANNOTATED_MACROS()
private static final ExplainedFilter<VariationDiff<? extends DiffLinesLabel>>
Main.EXAMPLE_CRITERIONS()
Modify this list to your requirements on a suitable example.static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.HAS_A_COMPLEX_FORMULA_BEFORE_THE_EDIT()
static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.HAS_ADDITIONS()
static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.HAS_DELETIONS()
static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.HAS_EDITED_ARTIFACTS()
static final <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.HAS_ELSE()
static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.HAS_NESTING()
static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.HAS_NESTING_BEFORE_EDIT()
static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.MAX_LINE_COUNT
(int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.MIN_ANNOTATIONS
(int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.MIN_CHANGES_TO_PCS
(int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.MIN_FEATURES
(int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.MIN_NODES_OF_TYPE
(NodeType nt, int n) static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> ExampleCriterions.MIN_PARALLEL_EDITS
(int n) Modifier and TypeMethodDescriptionprivate static boolean
ExampleCriterions.diffIsNotLongerThan
(VariationDiff<?> t, int maxLines) private void
ExampleFinder.exportExample
(Analysis analysis, String tdiff, VariationDiff<DiffLinesLabel> vdiff, Path outputDir) (package private) static String
ExampleFinder.getDiff
(VariationDiff<?> tree) private static boolean
ExampleCriterions.hasAnnotatedMacros
(VariationDiff<?> variationDiff) private static boolean
ExampleCriterions.hasAtLeastOneComplexFormulaBeforeTheEdit
(VariationDiff<?> variationDiff) ModifierConstructorDescriptionExampleFinder
(ExplainedFilter<VariationDiff<? extends DiffLinesLabel>> isGoodExample, VariationDiffRenderer renderer) Creates a new ExampleFinder. -
Uses of VariationDiff 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 <L extends Label>
ConstructionValidation.ComparisonResultConstructionValidation.compare
(VariationDiff<L> a, VariationDiff<L> b) private void
ConstructionValidation.counts
(VariationDiff<DiffLinesLabel> tree, ConstructionValidation.VariationDiffStatistics statistics) private <L extends Label>
voidConstructionValidation.parallelPreOrderWalk
(VariationDiff<L> nodeA, VariationDiff<L> nodeB, BiConsumer<DiffNode<L>, DiffNode<L>> consumer) -
Uses of VariationDiff 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 VariationDiff in org.variantsync.diffdetective.experiments.views.result
Modifier and TypeMethodDescriptionViewEvaluation.DiffStatistics.of
(VariationDiff<?> d) Gathers statistics of a given variation diff. -
Uses of VariationDiff in org.variantsync.diffdetective.internal
Modifier and TypeMethodDescriptionstatic String
TextDiffToTikz.exportAsTikz
(VariationDiff<DiffLinesLabel> variationDiff, GraphvizExporter.LayoutAlgorithm layout) -
Uses of VariationDiff in org.variantsync.diffdetective.mining.postprocessing
Modifier and TypeFieldDescriptionprivate final ExplainedFilter<VariationDiff<L>>
Postprocessor.filters
private final List<VariationDiff<L>>
Postprocessor.Result.processedTrees
The field for theprocessedTrees
record component.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).Postprocessor.Result.processedTrees()
Returns the value of theprocessedTrees
record component.Modifier and TypeMethodDescriptionPostprocessor.postprocess
(List<VariationDiff<L>> frequentSubgraphs) Performs the postprocessing described by this Postprocessor object on the list of subgraphs.static void
MiningPostprocessing.postprocessAndInterpretResults
(List<VariationDiff<DiffLinesLabel>> frequentSubgraphs, Postprocessor<DiffLinesLabel> postprocessor, Consumer<String> printer, VariationDiffRenderer renderer, RenderOptions<? super DiffLinesLabel> renderOptions, Path outputDir) -
Uses of VariationDiff in org.variantsync.diffdetective.show
Modifier and TypeMethodDescriptionstatic GameEngine
Show.diff
(VariationDiff<?> d) static GameEngine
Show.diff
(VariationDiff<?> d, String title) static <L extends Label>
GameEngineShow.diff
(VariationDiff<L> d, String title, List<DiffNodeLabelFormat<L>> availableFormats) -
Uses of VariationDiff in org.variantsync.diffdetective.show.variation
Modifier and TypeMethodDescriptionVariationDiffApp.calculateLayout
(VariationDiff<L> d, GraphvizExporter.LayoutAlgorithm layout, Format<L> format) ModifierConstructorDescriptionVariationDiffApp
(String name, VariationDiff<L> variationDiff, Vec2 resolution, List<DiffNodeLabelFormat<L>> availableFormats) -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff
Modifier and TypeFieldDescriptionprivate final VariationDiff<L>
ProjectionSource.origin
The field for theorigin
record component.Modifier and TypeMethodDescriptionVariationDiff.deepCopy()
Invokes the given callback for each node in this VariationDiff.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 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 <L extends Label>
VariationDiff<L>VariationDiff.fromTrees
(VariationTree<L> before, VariationTree<L> after) ProjectionSource.origin()
Returns the value of theorigin
record component.VariationDiff.traverse
(VariationDiffVisitor<L> visitor) Traverse this VariationDiff with the given visitor.Modifier and TypeMethodDescriptionstatic org.variantsync.functjonal.Result<VariationDiff<DiffLinesLabel>,
List<DiffError>> VariationDiff.fromPatch
(PatchReference patchReference, Repository repository) Parses a patch of a Git repository.ModifierConstructorDescriptionProjectionSource
(VariationDiff<L> origin, Time time) Creates an instance of aProjectionSource
record class. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.bad
Modifier and TypeMethodDescriptionBadVDiff.fromGood
(VariationDiff<L> d) Creates a bad diff from a VariationDiff. -
Uses of VariationDiff 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.static <L extends Label>
VariationDiff<L>GumTreeDiff.diffUsingMatching
(VariationTree<L> before, VariationTree<L> after) -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.filter
Modifier and TypeFieldDescriptionprivate final BiFunction<VariationDiff<L>,
VariationDiff<L>, Boolean> DuplicateVariationDiffFilter.equality
private final BiFunction<VariationDiff<L>,
VariationDiff<L>, Boolean> DuplicateVariationDiffFilter.equality
Modifier and TypeMethodDescriptionstatic <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> VariationDiffFilter.Any()
Returns a tagged predicate that always returns true and is tagged with the String"any"
.static <T,
L extends Label>
TaggedPredicate<T,VariationDiff<? extends L>> VariationDiffFilter.Any
(T metadata) Returns a tagged predicate that always returns true and is tagged with the given metadata.static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> VariationDiffFilter.consistent()
Returns a tagged predicate that returns true iff the VariationDiff isconsistent
.DuplicateVariationDiffFilter.filterDuplicates
(List<VariationDiff<L>> treesWithDuplicates) Filters the given list by removing all duplicates according this filter's equality function.static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> VariationDiffFilter.hasAtLeastOneEditToVariability()
Returns a tagged predicate that returns true iff the VariationDiff has at least one artifact node (HasNodeType.isArtifact()
) that does not match any edit class ofProposedEditClasses.AddToPC
,ProposedEditClasses.RemFromPC
,ProposedEditClasses.Untouched
.static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> VariationDiffFilter.moreThanOneArtifactNode()
Returns a tagged predicate that returns true iff the VariationDiff has more than one artifact node (HasNodeType.isArtifact()
.static <L extends Label>
TaggedPredicate<String,VariationDiff<? extends L>> VariationDiffFilter.notEmpty()
Returns a tagged predicate that returns true iff the VariationDiff is not empty (isEmpty()
.Modifier and TypeMethodDescriptionDuplicateVariationDiffFilter.filterDuplicates
(List<VariationDiff<L>> treesWithDuplicates) Filters the given list by removing all duplicates according this filter's equality function.ModifierConstructorDescriptionDuplicateVariationDiffFilter
(BiFunction<VariationDiff<L>, VariationDiff<L>, Boolean> equalityCondition) Creates a new duplication filter that uses the given predicate to determine equality of VariationDiffs.DuplicateVariationDiffFilter
(BiFunction<VariationDiff<L>, VariationDiff<L>, Boolean> equalityCondition) Creates a new duplication filter that uses the given predicate to determine equality of VariationDiffs. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.graph
Modifier and TypeMethodDescriptionstatic <L extends Label>
FormalDiffGraph<L>FormalDiffGraph.fromVariationDiff
(VariationDiff<L> d) Creates a GraphView for a given VariationDiff. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.parse
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
. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.render
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.<L extends Label>
booleanVariationDiffRenderer.render
(VariationDiff<? extends L> tree, String treeAndFileName, Path directory, RenderOptions<? super L> options) <L extends Label>
booleanVariationDiffRenderer.render
(VariationDiff<? extends L> tree, String treeAndFileName, Path directory, RenderOptions<? super L> options, LineGraphExportOptions<? super L> exportOptions) InvokesVariationDiffRenderer.render(VariationDiff, String, Path, RenderOptions, LineGraphExportOptions, BiFunction)
with the a default tree header factory.private <L extends Label>
booleanVariationDiffRenderer.render
(VariationDiff<? extends L> tree, String treeAndFileName, Path directory, RenderOptions<? super L> options, LineGraphExportOptions<? super L> exportOptions, BiFunction<String, VariationDiffSource, String> treeHeader) Renders the given VariationDiff to an image file.<L extends Label>
booleanVariationDiffRenderer.render
(VariationDiff<L> tree, String treeAndFileName, Path directory) <L extends Label>
booleanVariationDiffRenderer.render
(VariationDiff<L> tree, GitPatch patch, Path directory, RenderOptions<? super L> options) <L extends Label>
booleanVariationDiffRenderer.render
(VariationDiff<L> tree, GitPatch patch, Path directory, RenderOptions<? super L> options, LineGraphExportOptions<? super L> exportOptions) InvokesVariationDiffRenderer.render(VariationDiff, String, Path, RenderOptions, LineGraphExportOptions)
by creating a name for the tree and its produced image file.<L extends Label>
booleanVariationDiffRenderer.renderWithTreeFormat
(VariationDiff<? extends L> tree, String treeAndFileName, Path directory, RenderOptions<? super L> options) InvokesVariationDiffRenderer.render(VariationDiff, String, Path, RenderOptions, LineGraphExportOptions, BiFunction)
with the a default tree header factory. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.serialize
Modifier and TypeMethodDescriptionprivate 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.Modifier and TypeMethodDescription<La extends L>
InputStreamGraphvizExporter.computeGraphvizLayout
(VariationDiff<La> variationDiff, GraphvizExporter.LayoutAlgorithm algorithm, GraphvizExporter.OutputFormat outputFormat) Runs the Graphvizdot
program returning its result.<La extends L>
voidTikzExporter.exportFullLatexExample
(VariationDiff<La> variationDiff, Path destination) Exports a ready to compile LaTeX document containing a TikZ graph exported byTikzExporter.<La>exportVariationDiff(org.variantsync.diffdetective.variation.diff.VariationDiff<La>,java.io.OutputStream)
.<La extends L>
voidExporter.exportVariationDiff
(VariationDiff<La> variationDiff, OutputStream destination) Export avariationDiff
intodestination
.<La extends L>
voidGraphvizExporter.exportVariationDiff
(VariationDiff<La> variationDiff, OutputStream destination) ExportvariationDiff
as Graphviz graph intodestination
.<La extends L>
voidLineGraphExporter.exportVariationDiff
(VariationDiff<La> variationDiff, OutputStream destination) Export a line graph ofvariationDiff
intodestination
.<La extends L>
voidTikzExporter.exportVariationDiff
(VariationDiff<La> variationDiff, OutputStream destination) ExportvariationDiff
as TikZ graph intodestination
.<La extends L>
voidTikzExporter.exportVariationDiff
(VariationDiff<La> variationDiff, Function<DiffNode<La>, Vec2> nodeLayout, OutputStream destination, boolean escape) <La extends L>
voidTikzExporter.exportVariationDiff
(VariationDiff<La> variationDiff, GraphvizExporter.LayoutAlgorithm algorithm, OutputStream destination) ExportvariationDiff
as TikZ graph intodestination
.<La extends L>
voidFormat.forEachEdge
(VariationDiff<La> variationDiff, Consumer<StyledEdge<La>> callback) Iterates over all edges invariationDiff
and callscallback
, visiting parallel edges only once.<La extends L>
voidFormat.forEachNode
(VariationDiff<La> variationDiff, Consumer<DiffNode<La>> callback) static <L extends Label>
voidGraphvizExporter.layoutNodesIn
(VariationDiff<L> variationDiff, Format<? super L> format, GraphvizExporter.LayoutAlgorithm algorithm, TriConsumer<Integer, Double, Double> positionNode) static <L extends Label>
VariationDiffSerializeDebugDataLineGraphExport.toLineGraphFormat
(VariationDiff<? extends L> variationDiff, LineGraphExportOptions<? super L> options, OutputStream destination) Exports the given VariationDiff to a linegraph String.Modifier and TypeMethodDescriptionstatic <L extends Label>
LineGraphExport.StatisticLineGraphExport.toLineGraphFormat
(Iterable<VariationDiff<L>> trees, LineGraphExportOptions<? super L> options, OutputStream destination) Exports the given VariationDiffs that originated from a repository with the given name. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.transform
Modifier and TypeMethodDescriptionstatic <L extends Label>
voidVariationDiffTransformer.apply
(List<VariationDiffTransformer<L>> transformers, VariationDiff<L> tree) Applies all given transformers to the given VariationDiff sequentially.NaiveMovedArtifactDetection.findArtifactTwins
(VariationDiff<L> variationDiff) static <L extends Label>
voidCutNonEditedSubtrees.genericTransform
(boolean keepDummy, VariationDiff<L> variationDiff) static <L extends Label>
voidCutNonEditedSubtrees.genericTransform
(VariationDiff<L> variationDiff) void
CollapseNestedNonEditedAnnotations.transform
(VariationDiff<DiffLinesLabel> variationDiff) void
CutNonEditedSubtrees.transform
(VariationDiff<L> variationDiff) void
FeatureExpressionFilter.transform
(VariationDiff<L> variationDiff) Deprecated.void
LabelWithEditClass.transform
(VariationDiff<DiffLinesLabel> variationDiff) void
NaiveMovedArtifactDetection.transform
(VariationDiff<L> variationDiff) void
RelabelNodes.transform
(VariationDiff<L> variationDiff) void
RelabelRoot.transform
(VariationDiff<L> variationDiff) void
VariationDiffTransformer.transform
(VariationDiff<L> variationDiff) Apply a transformation to the given VariationDiff inplace. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.traverse
Modifier and TypeMethodDescriptionvoid
VariationDiffTraversal.visit
(VariationDiff<L> tree) Start the traversal of the given tree at its root. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.diff.view
Modifier and TypeFieldDescriptionprivate final VariationDiff<L>
ViewSource.diff
The field for thediff
record component.Modifier and TypeMethodDescriptionstatic <L extends Label>
VariationDiff<L>DiffView.badgood
(VariationDiff<L> d, Relevance rho) An alternative algorithm for generating of views on variation diffs based on (1) removing cycles in the variation diff, (2) interpreting the resulting acyclic variation diff as a colored variation tree, (3) creating a view on the variation tree, (4) and finally reintroducing the removed cycles.ViewSource.diff()
Returns the value of thediff
record component.static <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.static <L extends Label>
VariationDiff<L>DiffView.optimized
(VariationDiff<L> d, Relevance rho) This function generates a view on the given variation diff by determining the times of relevance for each node.static <L extends Label>
VariationDiff<L>DiffView.optimized
(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.Modifier and TypeMethodDescriptionstatic <L extends Label>
VariationDiff<L>DiffView.badgood
(VariationDiff<L> d, Relevance rho) An alternative algorithm for generating of views on variation diffs based on (1) removing cycles in the variation diff, (2) interpreting the resulting acyclic variation diff as a colored variation tree, (3) creating a view on the variation tree, (4) and finally reintroducing the removed cycles.static <L extends Label>
BiPredicate<Time,Projection<L>> DiffView.computeWhenNodesAreRelevant
(VariationDiff<L> d, Relevance rho) Translates a relevance predicate for nodes on variation trees to a relevance predicate on nodes in a variation diff.static <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.static <L extends Label>
VariationDiff<L>DiffView.optimized
(VariationDiff<L> d, Relevance rho) This function generates a view on the given variation diff by determining the times of relevance for each node.static <L extends Label>
VariationDiff<L>DiffView.optimized
(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.ModifierConstructorDescriptionViewSource
(VariationDiff<L> diff, Relevance relevance) Creates an instance of aViewSource
record class. -
Uses of VariationDiff in org.variantsync.diffdetective.variation.tree
Modifier and TypeMethodDescriptionVariationTree.toCompletelyUnchangedVariationDiff()
VariationTree.toVariationDiff
(Function<VariationTreeNode<L>, DiffNode<L>> nodeConverter)