<commit_before>package ser422.lab3;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.RequestDispatcher;
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;

/**
 * Servlet implementation class Days
 */
@WebServlet("/Days")
public class DaysPage extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#HttpServlet()
	 */
	public DaysPage() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		ServletContext sc= this.getServletContext();
		response.addHeader("Cache-Control", "no-cache, no-store, must-revalidate");
		response.addHeader("Pragma", "no-cache");
		response.setDateHeader("Expires", -1);
		response.setContentType("text/html");
		if (request.getParameter("nav") != null && request.getParameter("nav").equalsIgnoreCase("To Days Page"))
		{
			PrintWriter out= response.getWriter();
			try
			{
				out.println("<!DOCTYPE html>");
				out.println("<html>");
				out.println("<head>");
				out.println("<title>Lab 3 Part 2</title>");
				out.println("<style>{font-family:\"Trebuchet MS\", Calibri, Verdana, sans-serif;}</style>");
				out.println("</head>");
				out.println("<body bgcolor=\"pink\"><form method=\"get\">");
				out.println("<h2>What days of the week you can meet?</h2>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"sun\">Sunday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"mon\">Monday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"tue\">Tuesday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"wed\">Wednesday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"thu\">Thursday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"fri\">Friday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"sat\">Saturday<br>");
				out.println("<input type=\"submit\" name=\"nav\" value=\"Back To Langs\">");
				out.println("<input type=\"submit\" name=\"nav\" value=\"To Colors Page\">");
				out.println("</form></body>");
				out.println("</html>");
			}
			finally
			{
				out.close();
			}
		}
		else if (request.getParameter("nav") != null)
		{
			RequestDispatcher rd= null;
			if (request.getParameter("nav").equalsIgnoreCase("To Colors Page"))
			{
				rd= sc.getRequestDispatcher("/Colors");
			}
			else if (request.getParameter("nav").equalsIgnoreCase("Back To Langs"))
			{
				rd= sc.getRequestDispatcher("/langs");
			}
			rd.forward(request, response);
		}
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

	}

}
<commit_msg>changed to "Back to Langs Page"<commit_after>package ser422.lab3;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.RequestDispatcher;
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;

/**
 * Servlet implementation class Days
 */
@WebServlet("/Days")
public class DaysPage extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#HttpServlet()
	 */
	public DaysPage() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		ServletContext sc= this.getServletContext();
		response.addHeader("Cache-Control", "no-cache, no-store, must-revalidate");
		response.addHeader("Pragma", "no-cache");
		response.setDateHeader("Expires", -1);
		response.setContentType("text/html");
		if (request.getParameter("nav") != null && request.getParameter("nav").equalsIgnoreCase("To Days Page"))
		{
			PrintWriter out= response.getWriter();
			try
			{
				out.println("<!DOCTYPE html>");
				out.println("<html>");
				out.println("<head>");
				out.println("<title>Lab 3 Part 2</title>");
				out.println("<style>{font-family:\"Trebuchet MS\", Calibri, Verdana, sans-serif;}</style>");
				out.println("</head>");
				out.println("<body bgcolor=\"pink\"><form method=\"get\">");
				out.println("<h2>What days of the week you can meet?</h2>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"sun\">Sunday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"mon\">Monday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"tue\">Tuesday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"wed\">Wednesday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"thu\">Thursday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"fri\">Friday<br>");
				out.println("<input type=\"checkbox\" name=\"days\" value=\"sat\">Saturday<br>");
				out.println("<input type=\"submit\" name=\"nav\" value=\"Back To Langs Page\">");
				out.println("<input type=\"submit\" name=\"nav\" value=\"To Colors Page\">");
				out.println("</form></body>");
				out.println("</html>");
			}
			finally
			{
				out.close();
			}
		}
		else if (request.getParameter("nav") != null)
		{
			RequestDispatcher rd= null;
			if (request.getParameter("nav").equalsIgnoreCase("To Colors Page"))
			{
				rd= sc.getRequestDispatcher("/Colors");
			}
			else if (request.getParameter("nav").equalsIgnoreCase("Back To Langs Page"))
			{
				rd= sc.getRequestDispatcher("/langs");
			}
			rd.forward(request, response);
		}
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

	}

}

{'fraction_non_alphanumeric': 0.18411330049261085, 'fraction_numerical': 0.003078817733990148, 'mean_word_length': 4.581615120274914, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '7568974', 'n_tokens_mistral': 2183, 'n_tokens_neox': 1926, 'n_words': 391}