def convert_table_above_or_below_as_list(view, from_point, above):
    line_num, _ = view.rowcol(from_point)
    line_num += - 1 if above else 1

    line_text = utilities.text_at_line(view, line_num)
    table = []

    while line_text and (TABLE_PATTERN.match(line_text) or
                         SEPARATOR_PATTERN.match(line_text)):
        table.append(_convert_row_text_as_list(line_text))
        line_num += -1 if above else 1
        line_text = utilities.text_at_line(view, line_num)

    if above:
        table = table[::-1]

    return table
Read a directory, and list all subdirectories files as class sample
dataset/ETHPy150Open demon386/SmartMarkdown/table.py/convert_table_above_or_below_as_list--crossover with--dataset/ETHPy150Open tflearn/tflearn/tflearn/data_utils.py/directory_to_samples