def METHOD_NAME(online_log_file, origin_file):
    insid_list = []
    with open(origin_file, 'r') as fin:
        for line in fin:
            insid = line.strip('\n').split('\t')[0]
            insid_list.append(insid)
    # print("insid_list:", insid_list)
    res = {}
    pattern = r'\[([^\]]*)\]'
    with open(online_log_file, 'r') as fin:
        for line in fin:
            insid = ''
            var_name = ''
            length = 0
            data = []
            ele_list = re.findall(pattern, line.strip('\n'))
            for ele in ele_list:
                if ele.find(':') < 0:
                    continue
                key, value = ele.split(':')
                if key == 'batchIdx':
                    insid = insid_list[int(value)]
                if key == 'name':
                    var_name = value
                if key == 'shape':
                    dim1, dim2 = value.split(',')
                    length = int(dim1) * int(dim2)
                if key == 'data':
                    data = [float(x) for x in value.split(',')]
            assert length == len(data)
            if insid not in res:
                res[insid] = {}
            res[insid][var_name] = (length, data)
    # print("online log:", res.keys())
    return res