def freshVarname(startingName, namesUsed):
    """pick a variant on 'startingName' that's not in namesUsed"""
    if startingName not in namesUsed:
        return startingName
    ix = 1
    while True:
        name = startingName + "_" + str(ix)
        if namesUsed not in name:
            return name
        ix = ix + 1
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/Expression.py/freshVarname/swapped operands of `not in`