<commit_before>package edu.asu.conceptpower.web;

import javax.servlet.http.HttpServletRequest;

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

import edu.asu.conceptpower.core.ConceptManager;
import edu.asu.conceptpower.exceptions.DictionaryExistsException;

@Controller
public class ConceptListAddController {

	@Autowired
	private ConceptManager conceptManager;

	@Autowired
	private ConceptListController conceptListManager;

	/**
	 * This method provides a string value to redirect user to add concept list
	 * page
	 * 
	 * @return string value to redirect user to add concept list page
	 */
	@RequestMapping(value = "auth/conceptlist/addconceptlist")
	public String listAddView() {
		return "/auth/conceptlist/addconceptlist";
	}

	/**
	 * This method creates and stores a new concept list
	 * 
	 * @param req
	 *            Holds HTTP request information
	 * @param model
	 *            A generic model holder for Servlet
	 * @return String value to redirect user to a concept list page
	 */
	@RequestMapping(value = "auth/concepts/createconceptlist")
	public String createConceptList(HttpServletRequest req, ModelMap model) {
		String name = req.getParameter("name");
		String description = req.getParameter("description");

		try {
			conceptManager.addConceptList(name, description);
		} catch (DictionaryExistsException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		conceptListManager.showConceptList(req, model);

		return "redirect:/auth/conceptlist";
	}

}<commit_msg>removed ConceptListController autowire<commit_after>package edu.asu.conceptpower.web;

import javax.servlet.http.HttpServletRequest;

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

import edu.asu.conceptpower.core.ConceptManager;
import edu.asu.conceptpower.exceptions.DictionaryExistsException;

@Controller
public class ConceptListAddController {

	@Autowired
	private ConceptManager conceptManager;

	/**
	 * This method provides a string value to redirect user to add concept list
	 * page
	 * 
	 * @return string value to redirect user to add concept list page
	 */
	@RequestMapping(value = "auth/conceptlist/addconceptlist")
	public String listAddView() {
		return "/auth/conceptlist/addconceptlist";
	}

	/**
	 * This method creates and stores a new concept list
	 * 
	 * @param req
	 *            Holds HTTP request information
	 * @param model
	 *            A generic model holder for Servlet
	 * @return String value to redirect user to a concept list page
	 */
	@RequestMapping(value = "auth/concepts/createconceptlist")
	public String createConceptList(HttpServletRequest req, ModelMap model) {
		String name = req.getParameter("name");
		String description = req.getParameter("description");

		try {
			conceptManager.addConceptList(name, description);
		} catch (DictionaryExistsException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return "redirect:/auth/conceptlist";
	}

}
{'fraction_non_alphanumeric': 0.08774075206358911, 'fraction_numerical': 0.0, 'mean_word_length': 4.517706576728499, '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': '2375153', 'n_tokens_mistral': 957, 'n_tokens_neox': 871, 'n_words': 242}