import re


def parse_summary(line, pattern):
    """Parse the line containing dead code measurement summary."""
    pattern = re.compile(pattern)
    match = pattern.match(line)
    if len(match.groups()) == 2:
        return {"files_with_issues": match.group(1),
                "total_files": match.group(2)}
    else:
        return None