Lines Matching full:sequences
16 Return one of the two sequences that generated an ndiff delta.
22 A flexible class for comparing pairs of sequences of any type.
25 For producing human-readable deltas from sequences of lines of text.
49 SequenceMatcher is a flexible class for comparing pairs of sequences of
56 recursively to the pieces of the sequences to the left and to the right
58 sequences, but does tend to yield matches that "look right" to people.
61 sequences. Unlike e.g. UNIX(tm) diff, the fundamental notion is the
80 sequences. As a rule of thumb, a .ratio() value over 0.6 means the
81 sequences are close matches:
87 If you're only interested in where the sequences match,
110 uses SequenceMatcher both to compare sequences of lines, and to compare
111 sequences of characters within similar (near-matching) lines.
119 elements the sequences have in common; best case time is linear.
127 Set the two sequences to be compared.
145 Return a measure of the sequences' similarity (float in [0,1]).
162 if you're comparing lines as sequences of characters, and don't
165 Optional arg a is the first of two sequences to be compared. By
169 Optional arg b is the second of two sequences to be compared. By
224 """Set the two sequences to be compared.
250 many sequences, use .set_seq2(S) once and call .set_seq1(x)
251 repeatedly for each of the other sequences.
276 many sequences, use .set_seq2(S) once and call .set_seq1(x)
277 repeatedly for each of the other sequences.
637 """Return a measure of the sequences' similarity (float in [0,1]).
639 Where T is the total number of elements in both sequences, and
641 Note that this is 1 if the sequences are identical, and 0 if
709 possibilities is a list of sequences against which to match word
768 Differ is a class for comparing sequences of lines of text, and
770 SequenceMatcher both to compare sequences of lines, and to compare
771 sequences of characters within similar (near-matching) lines.
777 ' ' line common to both sequences
782 can be confusing if the sequences contain tab characters.
792 First we set up the texts, sequences of individual single-line strings
793 ending with newlines (such sequences can also be obtained from the
857 Compare two sequences of lines; generate the resulting delta.
886 Compare two sequences of lines; generate the resulting delta.
889 newlines. Such sequences can be obtained from the `readlines()` method
1161 Compare two sequences of lines; generate the delta as a unified diff.
1245 Compare two sequences of lines; generate the delta as a context diff.
2024 Generate one of the two sequences that generated a delta.