def setTemplate(self, tag, text):
        if isinstance(text, list):
            text = '\n'.join(text)
        for title in ["HOME.md", "README.md"]:
            f = os.path.join(self.wikidir, title)
            if os.path.isfile(f):
                strbuild = tag % '{{ %s }}'
                h = open(f, 'r')
                contents = h.read()
                contents = contents.replace(strbuild, text)
                h.close()
                h = open(f, 'w')
                h.write(contents)
dataset/ETHPy150Open mgottein/github-doc/wikibuilder.py/Wiki.setTemplate/swapped operands of `%`