Predicting query quality for applications of text retrieval to software engineering tasks