def uniquify(l):
    """Takes a list `l` and returns a list of the unique elements in `l`
    in the order in which they appeared.

    """
    mem = set([])
    out = []
    for e in l:
        if e not in mem:
            mem.add(e)
            out.append(e)
    return out
dataset/ETHPy150Open inpho/vsm/vsm/model/ldaexact.py/uniquify/original