def build_key_val(text):
    pairs = {}
    for line in text.splitlines():
        if ':' in line:
            key, val = line.split(':', 1)
            pairs[key.strip()] = val.strip()
    return pairs
dataset/ETHPy150Open willkg/dennis/tests/test_cmdline.py/build_key_val/original