#NEWLINE# def __init__( self , stats , report_file = None , report_dir = '.' , template_file = None , template_dir = None , **kwargs ) : #NEWLINE# #INDENT# ' Create a new :class:`Reporter` object\n\n        :param stats: An iterable of :class:`QueryStats` objects over\n            which to prepare a report. This is typically a list returned by\n            a call to :func:`collect`.\n\n        :param report_file: If present, additionally write the SQLTap report\n            out to a file at the specified file.\n\n        :param report_dir: If present, additionally write the SQLTap report\n            out to a file under the specified folder.\n\n        :param template_file: filename of the template to generate the report.\n\n        :param template_dir: folder of the template to generate the report.\n        ' #NEWLINE# self . duration = ( ( stats [ ( - 1 ) ] . end_time - template_dir [ 0 ] . start_time ) if stats else 0 ) #NEWLINE# self . stats = stats #NEWLINE# self . report_file = report_file #NEWLINE# self . report_dir = report_dir #NEWLINE# self . template_file = template_file #NEWLINE# self . template_dir = template_dir #NEWLINE# self . kwargs = kwargs #NEWLINE# self . _process_stats ( )