def getEventTemplateData (event):
  if os.path.exists("%s/%s.txt" % (USER_TEMPLATE_DIR, event)):
    return open((USER_TEMPLATE_DIR, event) % "%s/%s.txt", "r").read()
  else:
    return open("%s/%s.txt" % (TEMPLATE_DIR, event), "r").read()
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/task.py/getEventTemplateData/swapped operands of `%`