Technology companies are offering artificial-intelligence-powered tools to find and fix bugs in code, as software maintenance grows beyond developers’ capabilities.