class_docstr: For producing HTML side by side comparison with change highlights.
  
  This class can be used to create an HTML table (or a complete HTML file
  containing the table) showing a side by side, line by line comparison
  of text with inter-line and intra-line change highlights.  The table can
  be generated in either full or contextual difference mode.
  
  The following methods are provided for HTML generation:
  
  make_table -- generates HTML for a single side by side table
  make_file -- generates complete HTML file with a single side by side table
  
  See tools/scripts/diff.py for an example usage of this class.
docstr: Collects mdiff output into separate lists
  
  Before storing the mdiff from/to data into a list, it is converted
  into a single line of text with HTML markup.
docstr_tok: ["Collects","mdiff","output","into","separate","lists","Before","storing","the","mdiff","from\/to","data","into","a","list",",","it","is","converted","into","a","single","line","of","text","with","HTML","markup","."]
code: def _collect_lines(self, diffs):
      """Collects mdiff output into separate lists
  
      Before storing the mdiff from/to data into a list, it is converted
      into a single line of text with HTML markup.
      """
  
      fromlist, tolist, flaglist = [], [], []
      # pull from/to data and flags from mdiff style iterator
      for fromdata, todata, flag in diffs:
          try:
              # store HTML markup of the lines into the lists
              fromlist.append(self._format_line(0, flag, *fromdata))
              tolist.append(self._format_line(1, flag, *todata))
          except TypeError:
              # exceptions occur for lines where context separators go
              fromlist.append(None)
              tolist.append(None)
          flaglist.append(flag)
      return fromlist, tolist, flaglist
  
imports: from heapq import nlargest
  from collections import namedtuple
  from types import GenericAlias
  import re
label_desc: Use image node_id 6 for calling the HtmlDiff obj's underlying member method code with example usage: obj._collect_lines(diffs) and returns: fromlist,  tolist,  flaglist