MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / ratio

Method ratio

Lib/difflib.py:636–660  ·  view source on GitHub ↗

Return a measure of the sequences' similarity (float in [0,1]). Where T is the total number of elements in both sequences, and M is the number of matches, this is 2.0*M / T. Note that this is 1 if the sequences are identical, and 0 if they have nothing in common.

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

get_close_matchesFunction · 0.95
_fancy_replaceMethod · 0.95

Calls 3

get_matching_blocksMethod · 0.95
_calculate_ratioFunction · 0.85
reduceFunction · 0.50

Tested by

no test coverage detected