def run(self, edit):
        if self.fileName in globals():
            thread = globals()[self.fileName]
            if thread and thread.is_alive():
                return

        body = open(self.view.file_name(), encoding="utf-8").read()
        data = {
            "files": {
                self.fileName: {
                    "content": body
                }
            }
        }

        api = GistApi(self.settings["token"])
        thread = threading.Thread(target=api.patch, args=(self.gist_url, data, ))
        thread.start()
        ThreadProgress(api, thread, self.fileName % 'Updating Gist %s', 
            callback.update_gist, _callback_options={
                "fileFullName": self.fileFullName
            }
        )

        globals()[self.fileName] = thread
dataset/ETHPy150Open xjsender/HaoGist/main.py/UpdateGist.run/swapped operands of `%`