<commit_before>package com.spann.datametica.controller;

import java.io.IOException;

import org.apache.zookeeper.KeeperException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import com.spann.datametica.core.UserDao;
import com.spann.datametica.models.User;

@Controller
public class ChatController {

	@RequestMapping(value = "/chat", method = RequestMethod.GET)
	public ModelAndView chat(@RequestParam(value = "email") String email) throws InterruptedException, KeeperException, IOException {
		User user = new User();
		user.setEmail(email);
		user.setTopic(email);
		user.setName(email);
		
		UserDao userDao = new UserDao();
		userDao.loginUser(user);
		
		ModelAndView mv = new ModelAndView("chat");
		mv.addObject("email",email);
		return mv;
	}
}
<commit_msg>added user status field<commit_after>package com.spann.datametica.controller;

import java.io.IOException;

import org.apache.zookeeper.KeeperException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import com.spann.datametica.core.UserDao;
import com.spann.datametica.models.User;

@Controller
public class ChatController {

	@RequestMapping(value = "/chat", method = RequestMethod.GET)
	public ModelAndView chat(@RequestParam(value = "email") String email) throws InterruptedException, KeeperException, IOException {
		User user = new User();
		user.setEmail(email);
		user.setTopic(email);
		user.setName(email);
		user.setStatus("available");
		
		UserDao userDao = new UserDao();
		userDao.loginUser(user);
		
		ModelAndView mv = new ModelAndView("chat");
		mv.addObject("email",email);
		return mv;
	}
}

{'fraction_non_alphanumeric': 0.11320754716981132, 'fraction_numerical': 0.0, 'mean_word_length': 5.986486486486487, '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': '5398564', 'n_tokens_mistral': 654, 'n_tokens_neox': 620, 'n_words': 118}