<commit_before>package com.google.sps.servlets;

import com.google.gson.Gson;
import com.google.sps.data.Indices;
import com.google.sps.utils.BooksMemoryUtils;
import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/book")
public class BookServlet extends HttpServlet {
  @Override
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
    response.setContentType("application/json");

    int startIndex = BooksMemoryUtils.getStoredIndices("startIndex");
    int resultsStored = BooksMemoryUtils.getStoredIndices("resultsStored");
    int totalResults = BooksMemoryUtils.getStoredIndices("totalResults");
    int displayNum = BooksMemoryUtils.getStoredIndices("displayNum");

    Indices indices = new Indices(startIndex, resultsStored, totalResults, displayNum);
    String json = new Gson().toJson(indices);
    System.out.println(json);
    response.getWriter().write(json);
  }
}<commit_msg>Delete print statement<commit_after>package com.google.sps.servlets;

import com.google.gson.Gson;
import com.google.sps.data.Indices;
import com.google.sps.utils.BooksMemoryUtils;
import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/book")
public class BookServlet extends HttpServlet {
  @Override
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
    response.setContentType("application/json");

    int startIndex = BooksMemoryUtils.getStoredIndices("startIndex");
    int resultsStored = BooksMemoryUtils.getStoredIndices("resultsStored");
    int totalResults = BooksMemoryUtils.getStoredIndices("totalResults");
    int displayNum = BooksMemoryUtils.getStoredIndices("displayNum");

    Indices indices = new Indices(startIndex, resultsStored, totalResults, displayNum);
    String json = new Gson().toJson(indices);
    response.getWriter().write(json);
  }
}
{'fraction_non_alphanumeric': 0.102880658436214, 'fraction_numerical': 0.0, 'mean_word_length': 6.197368421052632, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7589428', 'n_tokens_mistral': 599, 'n_tokens_neox': 609, 'n_words': 119}