<commit_before>package controller;

import java.util.Vector;

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

import org.apache.catalina.tribes.transport.nio.ParallelNioSender;

import controller.util.ModelAndView;
import dao.diary.DiaryDAO;
import model.MemberDAO;
import sun.security.jca.GetInstance;
import util.CocoaDate;
import vo.diary.Diary;
import vo.diary.Memo;
import vo.diary.Note;
import vo.member.Member;

public class NoteViewController implements Controller {

	@Override
	public ModelAndView handle(HttpServletRequest request, HttpServletResponse response) throws Exception {
		// TODO Auto-generated method stub
		Member mvo = (Member)request.getSession().getAttribute("memberVO");
		String id = mvo.getId();
		boolean isCurr = Boolean.parseBoolean(request.getParameter("isCurr"));
		Vector<Note> notes=DiaryDAO.getInstance().getNoteList(request.getParameter("diaryNo"));
		Note note=null;
		
		request.setAttribute("notes", notes);
		if(isCurr==true) {
			int no=DiaryDAO.getInstance().getCurrDiaryNo();
			note=DiaryDAO.getInstance().getNoteByNo(no);
		}else {<commit_msg>#00102 NoteViewController<commit_after>package controller;

import java.util.Vector;


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

import org.apache.catalina.tribes.transport.nio.ParallelNioSender;

import controller.util.ModelAndView;
import dao.diary.DiaryDAO;
import sun.security.jca.GetInstance;
import util.CocoaDate;
import vo.diary.Diary;
import vo.diary.Memo;
import vo.diary.Note;
import vo.member.Member;

public class NoteViewController implements Controller {

	@Override
	public ModelAndView handle(HttpServletRequest request, HttpServletResponse response) throws Exception {
		// TODO Auto-generated method stub
		Member mvo = (Member)request.getSession().getAttribute("memberVO");
		String id = mvo.getId();
		boolean isCurr = Boolean.parseBoolean(request.getParameter("isCurr"));
		Vector<Note> notes=DiaryDAO.getInstance().getNoteList(request.getParameter("diaryNo"));
		Note note=null;
		
		request.setAttribute("notes", notes);
		if(isCurr==true) {
			int no=DiaryDAO.getInstance().getCurrDiaryNo();
			note=DiaryDAO.getInstance().getNoteByNo(no);
		}else {
{'fraction_non_alphanumeric': 0.11490815890645023, 'fraction_numerical': 0.0021358393848782574, 'mean_word_length': 6.31875, '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': '5922221', 'n_tokens_mistral': 754, 'n_tokens_neox': 722, 'n_words': 135}