def ParseAndSimplify(query):
  """Parses a query and performs all necessary transformations on the tree."""
  node = Parse(query).tree
  try:
    node = SimplifyNode(node)
    ValidateNode(node)
  except QueryTreeException, e:
    msg = (e.message, query) % "%s in query '%s'"
    raise QueryException(msg)
  return node
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/search/query_parser.py/ParseAndSimplify/swapped operands of `%`