Please analyze the following code file and determine whether it belongs…
- User
Assistant: User: Please analyze the following code file and determine whether it belongs to any of the provided modules based on the listed module descriptions. Note that the provided list of modules may not be exhaustive, and some files may not belong to any of the modules. If the code belongs to a module, Only output the module name, without any explanation or additional information; otherwise, return 'None' if it does not belong to any module.
Modules : { "UI": "Handles the front-end user interface, consisting of HTML, CSS, and JavaScript files generated by the Angular framework. It processes user requests and interacts with the server using AJAX for data retrieval and client-side interactions.""Test Driver": "Facilitates automated regression testing and handles transmission of test data in JSON format. It performs Java testing using TestNG and JavaScript unit-testing with Jest. It also sets up a simulated web server for servlet-level tests and automates end-to-end testing using Selenium Java." "Logic": "Manages the business logic of TEAMMATES, including handling relationships between entities, managing transactions, input value sanitization, access control rights, and interfacing with GAE-provided or third-party APIs." "Storage": "Performs CRUD operations on data entities, validation of data, and abstraction of GQL queries, hiding the complexities of datastore from the Logic component." "Common": "Contains utility classes, custom exceptions, and data transfer objects used across the entire application for easy consolidation and transfer of structured data." "E2E": "Handles end-to-end testing and load & performance testing, providing helpers, abstractions of browser pages, and test cases for E2E tests and L&P tests." "Client": "Contains scripts for administrative tasks, such as migrating data to a new schema and calculating statistics. This module connects directly to the application back-end for administrative purposes." }
Code: package teammates.storage.search; /** * Acts as a proxy to search service. * * @param <T> type of entity to be returned */ abstract class SearchManager<T extends EntityAttributes<?>> { private static final Logger log = Logger.getLogger(); private static final String ERROR_DELETE_DOCUMENT = "Failed to delete document(s) %s in Solr. Root cause: %s "; private static final String ERROR_SEARCH_DOCUMENT = "Failed to search for document(s) %s from Solr. Root cause: %s "; private static final String ERROR_SEARCH_NOT_IMPLEMENTED = "Search service is not implemented"; private static final String ERROR_PUT_DOCUMENT = "Failed to put document %s into Solr. Root cause: %s "; private static final String ERROR_RESET_COLLECTION = "Failed to reset collections. Root cause: %s "; private static final int START_INDEX = 0; private static final int NUM_OF_RESULTS = Const.SEARCH_QUERY_SIZE_LIMIT; private final HttpSolrClient client; private final boolean isResetAllowed; SearchManager(String searchServiceHost, boolean isResetAllowed) { this.isResetAllowed = Config.IS_DEV_SERVER && isResetAllowed; if (StringHelper.isEmpty(searchServiceHost)) { this.client = null; } else { this.client = new HttpSolrClient.Builder(searchServiceHost) .withConnectionTimeout(2000) // timeout for connecting to Solr server .withSocketTimeout(5000) // timeout for reading data .build(); } } SolrQuery getBasicQuery(String queryString) { SolrQuery query = new SolrQuery(); String cleanQueryString = cleanSpecialChars(queryString); query.setQuery(cleanQueryString); query.setStart(START_INDEX); query.setRows(NUM_OF_RESULTS); return query; } QueryResponse performQuery(SolrQuery query) throws SearchServiceException { if (client == null) { throw new SearchServiceException("Full-text search is not available.", HttpStatus.SC_NOT_IMPLEMENTED); } try { return client.query(getCollectionName(), query); } catch (SolrServerException e) { Throwable rootCause = e.getRootCause(); log.severe(String.format(ERROR_SEARCH_DOCUMENT, query.getQuery(), rootCause), e); if (rootCause instanceof SocketTimeoutException) { throw new SearchServiceException("A timeout was reached while processing your request. " + "Please try again later.", e, HttpStatus.SC_GATEWAY_TIMEOUT); } else { throw new SearchServiceException("An error has occurred while performing search. " + "Please try again later.", e, HttpStatus.SC_BAD_GATEWAY); } } catch (IOException e) { log.severe(String.format(ERROR_SEARCH_DOCUMENT, query.getQuery(), e.getCause()), e); throw new SearchServiceException("An error has occurred while performing search. " + "Please try again later.", e, HttpStatus.SC_BAD_GATEWAY); } } abstract String getCollectionName(); abstract SearchDocument<T> createDocument(T attribute); /** * Creates or updates search document for the given entity. */ public void putDocument(T attributes) throws SearchServiceException { if (client == null) { log.warning(ERROR_SEA - Assistant
Storage