def _get_line_number(file_lines, pattern):
    """Get the index of the first element in file_lines with the string in pattern
    """
    return next(i for i, line in enumerate(file_lines) if pattern in line) + 1