Source Code Retrieval from Large Software Libraries for Automatic Bug Localization