Added SourceRepository class to maintain a mapping of source files and their IDs.