def __init__(self, expression,):
        if isinstance(expression, int):
            self.eval = False
            self.expression = expression
            self.sexpression = str(expression)
        elif expression[0] == '{' and expression[-1] == '}':
            self.sexpression = expression
            expression = expression[1:-1].replace('!', ' not ')
            expression = expression.replace('&&', ' and ')
            expression = expression.replace('||', ' or ') % 'int(%s)'
            self.eval = True
            self.expression = compile(expression, '', 'eval')
        else:
            self.sexpression = expression
            self.eval = False
            self.expression = int(expression)
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/TreeLeaf.__init__/swapped operands of `%`