<commit_before>package com.buteam3.controller;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.buteam3.repository.RecordRepository;
import com.buteam3.entity.Record;

import com.buteam3.repository.MessageRepository;
import com.buteam3.entity.Message;

import com.stormpath.sdk.account.AccountList;
import com.stormpath.sdk.application.Application;
import com.stormpath.sdk.servlet.application.ApplicationResolver;

/**
 * Class is a controller handling the initial loading
 * of the UI for the issue tracker as well as modification to 
 * the database for task objects.
 * 
 * @author buteam3
 */

@Controller
public class HomeController {

    private RecordRepository repository;

    /**
     * Constructor for home controller. Takes in a repository
     * of tasks which are then loaded in UI. 
     * 
     * @param repository repository of tasks 
     */
    @Autowired
    public HomeController(RecordRepository repository, MessageRepository messageRepository) {
        this.repository = repository;
        this.messageRepository = messageRepository;
    }
    
    /**
     * Method loads a list of user accounts, adds them to a model map,
     * then loads the tasks to the UI using issue_tracker method.
     * 
     * @param model
     * @param req
     * @return 
     */<commit_msg>message ids<commit_after>package com.buteam3.controller;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.buteam3.repository.RecordRepository;
import com.buteam3.entity.Record;

import com.buteam3.repository.MessageRepository;
import com.buteam3.entity.Message;

import com.stormpath.sdk.account.AccountList;
import com.stormpath.sdk.application.Application;
import com.stormpath.sdk.servlet.application.ApplicationResolver;

/**
 * Class is a controller handling the initial loading
 * of the UI for the issue tracker as well as modification to 
 * the database for task objects.
 * 
 * @author buteam3
 */

@Controller
public class HomeController {

    private RecordRepository repository;
    private MessageRepository messageRepository;

    /**
     * Constructor for home controller. Takes in a repository
     * of tasks which are then loaded in UI. 
     * 
     * @param repository repository of tasks 
     */
    @Autowired
    public HomeController(RecordRepository repository, MessageRepository messageRepository) {
        this.repository = repository;
        this.messageRepository = messageRepository;
    }
    
    /**
     * Method loads a list of user accounts, adds them to a model map,
     * then loads the tasks to the UI using issue_tracker method.
     * 
     * @param model
     * @param req
     * @return 
     */
{'fraction_non_alphanumeric': 0.07891041842179163, 'fraction_numerical': 0.003369839932603201, 'mean_word_length': 3.940360610263523, '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': '1560595', 'n_tokens_mistral': 934, 'n_tokens_neox': 923, 'n_words': 262}