|
11 | 11 | (n is the minimum common lines option). |
12 | 12 | The common hashes between both linesets are then looked for. If there are matches, then the match indices in both linesets are stored and associated |
13 | 13 | with the corresponding couples (start line number/end line number) in both files. |
14 | | -This association is then postprocessed to handle the case of successive matches. For example if the minimum common lines setting is set to four, then |
| 14 | +This association is then post-processed to handle the case of successive matches. For example if the minimum common lines setting is set to four, then |
15 | 15 | the hashes are computed with four lines. If one of match indices couple (12, 34) is the successor of another one (11, 33) then it means that there are |
16 | 16 | in fact five lines which are common. |
17 | | -Once postprocessed the values of association table are the result looked for, i.e start and end lines numbers of common lines in both files. |
| 17 | +Once post-processed the values of association table are the result looked for, i.e start and end lines numbers of common lines in both files. |
18 | 18 | """ |
19 | 19 |
|
20 | 20 | from __future__ import annotations |
@@ -531,7 +531,7 @@ def _find_common( |
531 | 531 | yield com |
532 | 532 |
|
533 | 533 | def _iter_sims(self) -> Generator[Commonality, None, None]: |
534 | | - """Iterate on similarities among all files, by making a cartesian |
| 534 | + """Iterate on similarities among all files, by making a Cartesian |
535 | 535 | product |
536 | 536 | """ |
537 | 537 | for idx, lineset in enumerate(self.linesets[:-1]): |
@@ -562,7 +562,7 @@ def stripped_lines( |
562 | 562 | ignore_signatures: bool, |
563 | 563 | line_enabled_callback: Callable[[str, int], bool] | None = None, |
564 | 564 | ) -> list[LineSpecifs]: |
565 | | - """Return tuples of line/line number/line type with leading/trailing whitespace and any ignored code features removed. |
| 565 | + """Return tuples of line/line number/line type with leading/trailing white-space and any ignored code features removed. |
566 | 566 |
|
567 | 567 | :param lines: a collection of lines |
568 | 568 | :param ignore_comments: if true, any comment in the lines collection is removed from the result |
|
0 commit comments