Predicting Query Quality for Applications of Text Retrieval to Software Engineering Tasks