def determine_longest_matched_line(results):
    """Results is a list of tuples: (match_list1, 'filename1.py', longest_line_in_match)"""
    if len(results) == 1:
        return results[0][2]
    return max(results, key=lambda x: x[2])[2]
