MCPcopy Index your code
hub / github.com/expr-lang/expr / RealQuickRatio

Method RealQuickRatio

internal/difflib/difflib.go:512–515  ·  view source on GitHub ↗

Return an upper bound on ratio() very quickly. This isn't defined beyond that it is an upper bound on .Ratio(), and is faster to compute than either .Ratio() or .QuickRatio().

()

Source from the content-addressed store, hash-verified

510// This isn't defined beyond that it is an upper bound on .Ratio(), and
511// is faster to compute than either .Ratio() or .QuickRatio().
512func (m *SequenceMatcher) RealQuickRatio() float64 {
513 la, lb := len(m.a), len(m.b)
514 return calculateRatio(min(la, lb), la+lb)
515}
516
517// Convert range to the "ed" format
518func formatRangeUnified(start, stop int) string {

Callers 2

TestSequenceMatcherRatioFunction · 0.80

Calls 2

calculateRatioFunction · 0.85
minFunction · 0.85

Tested by 2

TestSequenceMatcherRatioFunction · 0.64