Classifying production and test bug reports can significantly improve not only the accuracy of performance evaluation but also the performance of information retrieval-based bug localization (IRBL). However, it is time-consuming for developers to classify these bug reports manually. As an alternative, deep learning offers promising solutions for classifying bug reports automatically. This study proposes a production and test bug report classification method based on deep learning. Our method uses a set of source files and model tuning to solve the problem of insufficient and sparse bug reports when applying deep learning. Our experimental results reveal that the macro f1-score of our method is 34% better than that of the classifier trained with only bug reports and can improve the mean average precision of VSM-based IRBL by 22%.