<commit_before>package org.schooldesk.webservice;

import org.schooldesk.core.models.UserCredentialModel;
import org.schooldesk.core.services.IUserService;
import org.schooldesk.dao.DataAccessException;

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 java.io.IOException;

@WebServlet("/login")
public class Authentication extends HttpServlet
{
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

		UserCredentialModel ucm = ServletHelper.readValue(req.getParameter("userInfo"), UserCredentialModel.class);
		try {
			Long result = ApplicationContext.getServiceFactory().getService(IUserService.class).checkCredentials(ucm);
			ServletHelper.writeResponse(result != null, null, result, resp.getOutputStream());
		}
		catch (DataAccessException e){
			ServletHelper.writeResponse(false, e.getMessage(), null, resp.getOutputStream());
		}
	}
}
<commit_msg>Исправлено имя параметра в сервлете авторизации<commit_after>package org.schooldesk.webservice;

import org.schooldesk.core.models.UserCredentialModel;
import org.schooldesk.core.services.IUserService;
import org.schooldesk.dao.DataAccessException;

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 java.io.IOException;

@WebServlet("/login")
public class Authentication extends HttpServlet
{
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

		UserCredentialModel ucm = ServletHelper.readValue(req.getParameter("UserCredentials"), UserCredentialModel.class);
		try {
			Long result = ApplicationContext.getServiceFactory().getService(IUserService.class).checkCredentials(ucm);
			ServletHelper.writeResponse(result != null, null, result, resp.getOutputStream());
		}
		catch (DataAccessException e){
			ServletHelper.writeResponse(false, e.getMessage(), null, resp.getOutputStream());
		}
	}
}

{'fraction_non_alphanumeric': 0.09986625055728934, 'fraction_numerical': 0.0, 'mean_word_length': 7.189781021897811, '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': '5013742', 'n_tokens_mistral': 645, 'n_tokens_neox': 639, 'n_words': 117}