This document discusses explainable artificial intelligence (XAI) for predicting and explaining future software defects. It describes how software analytics can be used to mine data from issue tracking systems and version control systems to build analytical models for software defect prediction. The document outlines a framework called MAME that involves mining data, analyzing metrics, building models, and explaining predictions. Accurate prediction of defects is important, but explanations are also needed to address regulatory concerns and help practitioners prioritize resources effectively.