def parse_line_number(line_str):
    parts = line_str.split()
    line_num = parts[0].strip().replace(':', '')
    return line_num
In a line of the format "<line_num>:    <text>"or "<line_num>    <text>"
dataset/ETHPy150Open abrookins/OpenSearchResult/util.py/parse_line_number