<commit_before>package Servlet;

import java.io.IOException;

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

import Bitacora.Bitacora;
import logicaDeNegocios.Curso;

/**
 * Servlet implementation class ServletRegistrarCurso
 */
@WebServlet("/ServletRegistrarCurso")
public class ServletRegistrarCurso extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public ServletRegistrarCurso() 
    {
        super();       
    }

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		String codigo= request.getParameter("txtCodigo");
		String descripcion= request.getParameter("txtDescripcion");
		Curso curso= new Curso();
		curso.registrarCurso(codigo,descripcion);
		Bitacora bitacora = new Bitacora();
		bitacora.insertarEnBitacora("<EMAIL>", "se registro un curso: " + descripcion.toLowerCase());
		RequestDispatcher dispatcher = request.getRequestDispatcher("/RegistrarCurso.jsp");
		dispatcher.forward(request, response);
	}

}<commit_msg>bitacora 3<commit_after>package Servlet;

import java.io.IOException;

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

import Bitacora.Bitacora;
import logicaDeNegocios.Curso;

/**
 * Servlet implementation class ServletRegistrarCurso
 */
@WebServlet("/ServletRegistrarCurso")
public class ServletRegistrarCurso extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public ServletRegistrarCurso() 
    {
        super();       
    }

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		String codigo= request.getParameter("txtCodigo");
		String descripcion= request.getParameter("txtDescripcion");
		Curso curso= new Curso();
		curso.registrarCurso(codigo,descripcion);
		Bitacora bitacora = new Bitacora();
		bitacora.insertarEnBitacora("<EMAIL>", "se registro un curso " + descripcion.toLowerCase());
		RequestDispatcher dispatcher = request.getRequestDispatcher("/RegistrarCurso.jsp");
		dispatcher.forward(request, response);
	}

}
{'fraction_non_alphanumeric': 0.09978540772532189, 'fraction_numerical': 0.001072961373390558, 'mean_word_length': 5.328054298642534, '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': '5005081', 'n_tokens_mistral': 842, 'n_tokens_neox': 821, 'n_words': 163}