3 instantiations of EditDistance
Microsoft.CodeAnalysis.Workspaces (3)
EditDistance.cs (1)
77
using var editDistance = new
EditDistance
(source);
ExternalAccess\Pythia\Api\PythiaEditDistanceWrapper.cs (1)
15
=> _underlyingObject = new
EditDistance
(str);
WordSimilarityChecker.cs (1)
71
_editDistance = new
EditDistance
(text);
18 references to EditDistance
Microsoft.CodeAnalysis.Workspaces (6)
BKTree.Builder.cs (1)
194
var editDistance =
EditDistance
.GetEditDistance(
BKTree.cs (1)
123
var editDistance =
EditDistance
.GetEditDistance(
EditDistance.cs (2)
77
using
var
editDistance = new EditDistance(source);
88
throw new ObjectDisposedException(nameof(
EditDistance
));
ExternalAccess\Pythia\Api\PythiaEditDistanceWrapper.cs (1)
12
private readonly
EditDistance
_underlyingObject;
WordSimilarityChecker.cs (1)
33
private
EditDistance
_editDistance;
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
UtilityTest\EditDistanceTests.cs (12)
19
var editDistance1 =
EditDistance
.GetEditDistance(s, t);
23
var editDistance2 =
EditDistance
.GetEditDistance(t, s);
27
var editDistance3 =
EditDistance
.GetEditDistance(s, t, editDistance1);
32
var editDistance4 =
EditDistance
.GetEditDistance(s, t, editDistance1 - 1);
33
Assert.Equal(
EditDistance
.BeyondThreshold, editDistance4);
108
var editDistance =
EditDistance
.GetEditDistance("book", "moons", 1);
109
Assert.Equal(
EditDistance
.BeyondThreshold, editDistance);
225
var editDistance1 =
EditDistance
.GetEditDistance(source, target);
239
var editDistance2 =
EditDistance
.GetEditDistance(source, target, editDistance1);
287
var editDistance12 =
EditDistance
.GetEditDistance(string1, string2);
288
var editDistance13 =
EditDistance
.GetEditDistance(string1, string3);
289
var editDistance23 =
EditDistance
.GetEditDistance(string2, string3);