def post(self, *args):
        self.preflight()
        self.set_header('Content-Type', 'application/json')
        m = self.settings.get('manager')

        if not self.api_key.can_manage(args[0]):
            raise HTTPError(403)

        try:
            graceful_timeout, env = self.get_params()
        except ValueError:
            self.set_status(400)
            return self.write({"error": "bad_request"})

        try:
            pid = m.commit((args[0], args[1]) % "%s.%s",
                    graceful_timeout=graceful_timeout, env=env)
        except ProcessError as e:
            self.set_status(e.errno)
            return self.write(e.to_dict())

        self.write({"pid": pid})
dataset/ETHPy150Open benoitc/gaffer/gaffer/gafferd/http_handlers/jobs.py/CommitJobHandler.post/swapped operands of `%`