<commit_before>package uk.ac.ebi.spot.goci.curation.controller;

import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by emma on 08/06/2016.
 *
 * @author emma
 */

@Controller
@RequestMapping("/reports/weekly_progress")
public class WeeklyProgressController {

    @RequestMapping(produces = MediaType.TEXT_HTML_VALUE, method = RequestMethod.GET)
    public String getWeeklyProgressTable(Model model) {

        //TODO DETERMINE WHAT THIS WILL RETURN
        processWeeklyView();


        // TODO CREATE VIEW
        return "view";

    }

}<commit_msg>Controller to display weekly_reports view<commit_after>package uk.ac.ebi.spot.goci.curation.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import uk.ac.ebi.spot.goci.curation.model.reports.ReportsWeeklyProgressView;
import uk.ac.ebi.spot.goci.curation.service.reports.WeeklyProgressService;

import java.util.List;

/**
 * Created by emma on 08/06/2016.
 *
 * @author emma
 *         <p>
 *         Controller used to handle requests to display weekly curator progress
 */

@Controller
@RequestMapping("/reports/weekly_progress")
public class WeeklyProgressController {

    private WeeklyProgressService weeklyProgressService;

    @Autowired
    public WeeklyProgressController(WeeklyProgressService weeklyProgressService) {
        this.weeklyProgressService = weeklyProgressService;
    }

    @RequestMapping(produces = MediaType.TEXT_HTML_VALUE, method = RequestMethod.GET)
    public String getWeeklyProgressTable(Model model) {

        List<ReportsWeeklyProgressView> weeklyProgressViews = weeklyProgressService.processWeeklyView();
        model.addAttribute("weeklyProgressViews", weeklyProgressViews);
        return "reports_weekly_progress";
    }
}
{'fraction_non_alphanumeric': 0.09144144144144144, 'fraction_numerical': 0.007207207207207207, 'mean_word_length': 4.724226804123711, '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': '7595838', 'n_tokens_mistral': 638, 'n_tokens_neox': 605, 'n_words': 115}