def METHOD_NAME(self):
    """
    computes the length of longest pattern
    :return: max length among the pattern list provided
    """
    max_len = 0
    for item in self.patterns:
        if len(item.pattern) > max_len:
            max_len = len(item.pattern)
    return max_len