def summary(self, fullpath=False):
summ = {}<EOL>if fullpath:<EOL><INDENT>filename_fn = lambda f: f<EOL><DEDENT>else:<EOL><INDENT>filename_fn = os.path.basename<EOL><DEDENT>for filename, lines in iitems(self.lines):<EOL><INDENT>summ[filename_fn(filename)] = len(lines)<EOL><DEDENT>return summ<EOL>
Return a dict summarizing the coverage data.

        Keys are based on the filenames, and values are the number of executed
        lines.  If `fullpath` is true, then the keys are the full pathnames of
        the files, otherwise they are the basenames of the files.