def is_multiline_string(doc, line_count, quote_type):
    '''Cases to catch multiline_strings.
    :param doc: [str], a document cast into an array.
    :param line_count: int, zero based index that points to the current line
                 in an docuement.
    :param quote_type: str, one of the two multiline quotes available in
                       Python.
    :return: bool, True if the triple quoted line is a multiline string.
    '''

    line = doc[line_count]
    previous_line = doc[line_count - 1]

    if line.count('=') > 0 and line.index('=') < line.index(quote_type) \
            or line_count != 0 and len(previous_line) > 2 \
            and '=' in previous_line[-3]:
        return True

    return False
dataset/ETHPy150Open rubik/radon/radon/raw.py/is_multiline_string/original