Lines Matching refs:list

5     Use SequenceMatcher to return list of the best "good enough" matches.
151 # for x in b, b2j[x] is a list of the indices (into b)
158 # a list of (i, j, k) triples, where a[i:i+k] == b[j:j+k];
162 # a list of (tag, i1, i2, j1, j2) tuples, where tag is
250 # For each element x in b, set b2j[x] to a list of the indices in
291 for elt in junk: # separate loop avoids separate list of keys
422 """Return list of triples describing matching subsequences.
427 (i, j, n) and (i', j', n') are adjacent triples in the list, and
428 the second is not the last triple in the list, then i+n != i' or
436 >>> list(s.get_matching_blocks())
446 # the recursion limit on their box. So, now we maintain a list
467 # matching_blocks list now. Starting with 2.5, this code was added
489 self.matching_blocks = list(map(Match._make, non_adjacent))
493 """Return list of 5-tuples describing how to turn a into b.
541 # the list of matching blocks is terminated by a
554 >>> a = list(map(str, range(1,40)))
560 >>> pprint(list(SequenceMatcher(None,a,b).get_grouped_opcodes()))
667 """Use SequenceMatcher to return list of the best "good enough" matches.
672 possibilities is a list of sequences against which to match word
673 (typically a list of strings).
682 in a list, sorted by similarity score, most similar first.
709 # Move the best scorers to head of list
778 >>> result = list(d.compare(text1, text2))
780 'result' is a list of strings, so let's pretty-print it:
1291 a = list(map(decode, a))
1292 b = list(map(decode, b))
1345 fromlines -- list of text lines to compared to tolines
1346 tolines -- list of text lines to be compared to fromlines
1385 lines -- list of lines from the ndiff generator to produce a line of
1387 lines used are removed from this list.
1388 format_key -- '+' return first line in list with "add" markup around
1390 '-' return first line in list with "delete" markup around
1392 '?' return first line in list with add/delete/change
1394 None return first line in list with no markup
1395 side -- indice into the num_lines list (0=from,1=to)
1710 fromlines -- list of "from" lines
1711 tolines -- list of "to" lines
1756 """Builds list of text lines by splitting text lines at wrap point
1761 text line list. This function is used recursively to handle
1764 # if blank line or context separator, just add it to the output list
1769 # if line text doesn't need wrapping, just add it to the output list
1804 # tack on first line onto the output list
1821 # list of text lines.
1841 Before storing the mdiff from/to data into a list, it is converted
1894 """Makes list of "next" links"""
1945 fromlines -- list of "from" lines
1946 tolines -- list of "to" lines
2031 >>> diff = list(diff)