Home
last modified time | relevance | path

Searched refs:SequenceMatcher (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_difflib.py10 sm = difflib.SequenceMatcher(None, 'b' * 100, 'a' + 'b' * 100)
15 sm = difflib.SequenceMatcher(None, 'b' * 100, 'b' * 50 + 'a' + 'b' * 50)
23 sm = difflib.SequenceMatcher(None, 'a' * 40 + 'c' + 'b' * 40, 'a' * 40 + 'b' * 40)
39 sm = difflib.SequenceMatcher(None, seq1, seq2)
43 sm = difflib.SequenceMatcher(None, seq1, seq2, autojunk=False)
50 s = difflib.SequenceMatcher(None, [], [])
57 group_gen = difflib.SequenceMatcher(None, [], []).get_grouped_opcodes()
64 s = difflib.SequenceMatcher(None, "abxcd", "abcd")
207 difflib.SequenceMatcher(None, old, new).get_opcodes()
/external/python/cpython3/Lib/test/
Dtest_difflib.py10 sm = difflib.SequenceMatcher(None, 'b' * 100, 'a' + 'b' * 100)
16 sm = difflib.SequenceMatcher(None, 'b' * 100, 'b' * 50 + 'a' + 'b' * 50)
25 sm = difflib.SequenceMatcher(None, 'a' * 40 + 'c' + 'b' * 40, 'a' * 40 + 'b' * 40)
33 sm = difflib.SequenceMatcher(isjunk=lambda x: x == ' ',
37 sm = difflib.SequenceMatcher(isjunk=lambda x: x == ' ',
41 sm = difflib.SequenceMatcher(isjunk=lambda x: x in [' ', 'b'],
54 sm = difflib.SequenceMatcher(None, seq1, seq2)
59 sm = difflib.SequenceMatcher(None, seq1, seq2, autojunk=False)
67 s = difflib.SequenceMatcher(None, [], [])
74 group_gen = difflib.SequenceMatcher(None, [], []).get_grouped_opcodes()
[all …]
/external/python/cpython3/Doc/library/
Ddifflib.rst26 .. class:: SequenceMatcher
41 case and quadratic time in the expected case. :class:`SequenceMatcher` is
46 **Automatic junk heuristic:** :class:`SequenceMatcher` supports a heuristic that
52 the ``autojunk`` argument to ``False`` when creating the :class:`SequenceMatcher`.
61 human-readable differences or deltas. Differ uses :class:`SequenceMatcher`
229 -- however the underlying :class:`SequenceMatcher` class does a dynamic
358 SequenceMatcher Objects
361 The :class:`SequenceMatcher` class has this constructor:
364 .. class:: SequenceMatcher(isjunk=None, a='', b='', autojunk=True)
386 SequenceMatcher objects get three data attributes: *bjunk* is the
[all …]
/external/python/cpython2/Doc/library/
Ddifflib.rst22 .. class:: SequenceMatcher
35 case and quadratic time in the expected case. :class:`SequenceMatcher` is
40 **Automatic junk heuristic:** :class:`SequenceMatcher` supports a heuristic that
46 the ``autojunk`` argument to ``False`` when creating the :class:`SequenceMatcher`.
54 human-readable differences or deltas. Differ uses :class:`SequenceMatcher`
225 :class:`SequenceMatcher` class does a dynamic analysis of which lines are so
341 SequenceMatcher Objects
344 The :class:`SequenceMatcher` class has this constructor:
347 .. class:: SequenceMatcher(isjunk=None, a='', b='', autojunk=True)
369 :class:`SequenceMatcher` objects have the following methods:
[all …]
/external/python/cpython2/Lib/
Ddifflib.py44 class SequenceMatcher: class
735 s = SequenceMatcher()
907 cruncher = SequenceMatcher(self.linejunk, a, b)
965 cruncher = SequenceMatcher(self.charjunk)
1198 for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
1285 for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
/external/python/cpython3/Lib/
Ddifflib.py43 class SequenceMatcher: class
722 s = SequenceMatcher()
894 cruncher = SequenceMatcher(self.linejunk, a, b)
950 cruncher = SequenceMatcher(self.charjunk)
1179 for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
1268 for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
/external/clang/tools/clang-format/
Dclang-format.py98 sequence = difflib.SequenceMatcher(None, vim.current.buffer, lines)
/external/autotest/server/cros/dynamic_suite/
Dsuite.py590 (t.path, difflib.SequenceMatcher(a=t.path,
608 difflib.SequenceMatcher(a=t.name, b=test_name).ratio()))
689 difflib.SequenceMatcher(a=suite, b=name).ratio())
/external/python/cpython2/Misc/NEWS.d/
D2.7.8.rst124 The difflib SequenceMatcher.get_matching_blocks() method cache didn't match
D2.7.1rc1.rst654 difflib.SequenceMatcher gets a new parameter, autojunk, which can be set to
/external/python/cpython3/Doc/whatsnew/
D3.4.rst2216 * :meth:`difflib.SequenceMatcher.isbjunk` and
2217 :meth:`difflib.SequenceMatcher.isbpopular` were deprecated in 3.2, and have
2219 ``x in sm.bpopular``, where *sm* is a :class:`~difflib.SequenceMatcher` object
D2.1.rst616 * The :mod:`difflib` module contains a class, :class:`SequenceMatcher`, which
D2.5.rst1321 * The :meth:`SequenceMatcher.get_matching_blocks` method in the :mod:`difflib`
D2.6.rst1946 * The :mod:`difflib` module's :class:`SequenceMatcher` class
/external/python/cpython2/Doc/whatsnew/
D2.1.rst616 * The :mod:`difflib` module contains a class, :class:`SequenceMatcher`, which
D2.5.rst1320 * The :meth:`SequenceMatcher.get_matching_blocks` method in the :mod:`difflib`
D2.6.rst1942 * The :mod:`difflib` module's :class:`SequenceMatcher` class
/external/python/cpython2/Misc/
DHISTORY743 - ``difflib``'s ``SequenceMatcher.get_matching_blocks()`` was changed to
5591 - difflib's SequenceMatcher class now does a dynamic analysis of
5596 that SequenceMatcher may run much faster now when applied
7839 - New library module difflib.py, primarily packaging the SequenceMatcher
/external/python/cpython3/Misc/
DHISTORY1603 - Issue #21635: The difflib SequenceMatcher.get_matching_blocks() method
11349 - Issue #2986: difflib.SequenceMatcher gets a new parameter, autojunk, which can
18127 - ``difflib``'s ``SequenceMatcher.get_matching_blocks()`` was changed to
22975 - difflib's SequenceMatcher class now does a dynamic analysis of
22980 that SequenceMatcher may run much faster now when applied
25218 - New library module difflib.py, primarily packaging the SequenceMatcher