<commit_before>package controller.calendar;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import controller.Controller;
import controller.ModelAndView;
import model.dao.diary.DiaryDAO;
import model.vo.day.Day;
import model.vo.member.Member;
import util.CocoaDate;


public class CalendarController implements Controller {

	@Override
	public ModelAndView handle(HttpServletRequest request, HttpServletResponse response) throws Exception {
		Member vo = (Member)request.getSession().getAttribute("memberVO");
		String id = vo.getId();
		int year = Integer.parseInt(request.getParameter("year"));
		int month = Integer.parseInt(request.getParameter("month"));
		System.out.println(year);
		CocoaDate date = new CocoaDate(year, month, 1);
		ArrayList<Day> monthlyDiary = DiaryDAO.getInstance().getMonthlyDiary(id, date);
		request.setAttribute("monthlyDiary", monthlyDiary);
		return new ModelAndView("cal.jsp?year="+year+"&month="+month);
	}

}<commit_msg>#00163 : CalendarController > "scheduleList"<commit_after>package controller.calendar;

import java.util.ArrayList;
import java.util.Vector;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import controller.Controller;
import controller.ModelAndView;
import model.dao.diary.DiaryDAO;
import model.vo.day.Day;
import model.vo.diary.Diary;
import model.vo.member.Member;
import util.CocoaDate;


public class CalendarController implements Controller {

	@Override
	public ModelAndView handle(HttpServletRequest request, HttpServletResponse response) throws Exception {
		Member vo = (Member)request.getSession().getAttribute("memberVO");
		String id = vo.getId();
		int year = Integer.parseInt(request.getParameter("year"));
		int month = Integer.parseInt(request.getParameter("month"));
		System.out.println(year);
		CocoaDate date = new CocoaDate(year, month, 1);
		
		request.setAttribute("monthlyDiary", DiaryDAO.getInstance().getMonthlyDiary(id, date));
		request.setAttribute("scheduleList", DiaryDAO.getInstance().getAllDiary(id, "schedule"));
		return new ModelAndView("cal.jsp?year="+year+"&month="+month);
	}

}
{'fraction_non_alphanumeric': 0.12283894449499545, 'fraction_numerical': 0.0031847133757961785, 'mean_word_length': 6.71578947368421, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3218478', 'n_tokens_mistral': 664, 'n_tokens_neox': 650, 'n_words': 130}