<commit_before>package ua.dudka.hrm.web;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import ua.dudka.hrm.application.CurrentCompanyReader;
import ua.dudka.hrm.repository.EmployeeRepository;

import static ua.dudka.hrm.web.DisplayEmployeesController.Links.EMPLOYEES_PAGE_URL;

/**
 * @author <NAME>
 */

@Controller
@RequiredArgsConstructor
public class DisplayEmployeesController {

    private final CurrentCompanyReader currentCompanyReader;
    private final EmployeeRepository employeeRepository;

    @GetMapping(EMPLOYEES_PAGE_URL)
    public String getPage(Model model) {
        model.addAttribute("company", currentCompanyReader.read());
        model.addAttribute("employees", employeeRepository.findAll());

        return "hrm/employees";
    }

    public static class Links {
        public static final String ADMIN_BASE_URL = "/hrm";
        public static final String EMPLOYEES_PAGE_URL = ADMIN_BASE_URL + "/employees";

    }
}<commit_msg>-refactor money display employee controller;<commit_after>package ua.dudka.hrm.web;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import ua.dudka.hrm.repository.EmployeeRepository;

import static ua.dudka.hrm.web.DisplayEmployeesController.Links.EMPLOYEES_PAGE_URL;

/**
 * @author <NAME>
 */

@Controller
@RequiredArgsConstructor
public class DisplayEmployeesController extends HRMController {

    private final EmployeeRepository employeeRepository;

    @GetMapping(EMPLOYEES_PAGE_URL)
    public String getPage(Model model) {
        model.addAttribute("employees", employeeRepository.findAll());

        return "hrm/employees";
    }

    public static class Links {
        public static final String EMPLOYEES_PAGE_URL = HRM_BASE_URL + "/employees";

    }
}
{'fraction_non_alphanumeric': 0.08923230309072781, 'fraction_numerical': 0.0, 'mean_word_length': 4.868421052631579, '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': '2275231', 'n_tokens_mistral': 607, 'n_tokens_neox': 569, 'n_words': 112}