<commit_before>package com.manager.MainAppMain;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/MainMenu")
public class ServletMainMenu extends HttpServlet {
	
	private static final long serialVersionUID = 1L;
    public ServletMainMenu() {
        super();
    }
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		doPost(request, response);
	}
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		request.getRequestDispatcher("/JSP/mainmenu.jsp").forward(request, response);
	}
}<commit_msg>Main menu Passes TeamStarters to the view<commit_after>package com.manager.MainAppMain;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/MainMenu")
public class ServletMainMenu extends HttpServlet {
	
	private static final long serialVersionUID = 1L;
    public ServletMainMenu() {
        super();
    }
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		doPost(request, response);
	}
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		ServletContext STM = getServletConfig().getServletContext();
		Market market = (Market)STM.getAttribute("market");
		League league = (League)STM.getAttribute("league");
		ModelLoading ml = (ModelLoading)STM.getAttribute("ModelLoading");
		
		ArrayList<Player> teamStarters = league.allTeams.get(Constants.userTeamId).teamStarters;
		ArrayList<Player> teamBench = league.allTeams.get(Constants.userTeamId).teamBench;
		
		STM.setAttribute("market", market);
		STM.setAttribute("league", league); 
		STM.setAttribute("ModelLoading", ml);
		
		request.setAttribute("teamStarters", teamStarters);
		request.setAttribute("teamBench", teamBench);
		request.getRequestDispatcher("/JSP/mainmenu.jsp").forward(request, response);
	}
}
{'fraction_non_alphanumeric': 0.10004116920543434, 'fraction_numerical': 0.0008233841086867024, 'mean_word_length': 6.341389728096677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7480211', 'n_tokens_mistral': 678, 'n_tokens_neox': 650, 'n_words': 140}