<commit_before>package br.com.caelum.brutal.controllers;

import java.util.List;

import br.com.caelum.brutal.auth.LoggedAccess;
import br.com.caelum.brutal.dao.QuestionDAO;
import br.com.caelum.brutal.dao.TagDAO;
import br.com.caelum.brutal.dao.VoteDAO;
import br.com.caelum.brutal.model.CurrentUser;
import br.com.caelum.brutal.model.Question;
import br.com.caelum.brutal.model.QuestionInformation;
import br.com.caelum.brutal.model.Tag;
import br.com.caelum.brutal.model.UpdateStatus;
import br.com.caelum.brutal.model.User;
import br.com.caelum.brutal.providers.RequiresTransaction;
import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Post;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;

@Resource
public class QuestionController {

	private final Result result;
	private final QuestionDAO questions;
	private final TagDAO tags;
	private final VoteDAO votes;
	private final CurrentUser currentUser;

	public QuestionController(Result result, QuestionDAO questionDAO, TagDAO tagDAO, VoteDAO votes, CurrentUser user) {
		this.result = result;
		this.questions = questionDAO;
		this.tags = tagDAO;
		this.votes = votes;
		this.currentUser = user;
	}

	@Get("/question/ask")
	@LoggedAccess
	public void questionForm() {
	}

	@Get("/question/edit/{questionId}")
	public void questionEditForm(Long questionId) {
		result.include("question",  questions.getById(questionId));
	}

	@Post("/question/edit/{id}")<commit_msg>trocando nome de parametro na esperança de resolver um bug bizarro<commit_after>package br.com.caelum.brutal.controllers;

import java.util.List;

import br.com.caelum.brutal.auth.LoggedAccess;
import br.com.caelum.brutal.dao.QuestionDAO;
import br.com.caelum.brutal.dao.TagDAO;
import br.com.caelum.brutal.dao.VoteDAO;
import br.com.caelum.brutal.model.CurrentUser;
import br.com.caelum.brutal.model.Question;
import br.com.caelum.brutal.model.QuestionInformation;
import br.com.caelum.brutal.model.Tag;
import br.com.caelum.brutal.model.UpdateStatus;
import br.com.caelum.brutal.model.User;
import br.com.caelum.brutal.providers.RequiresTransaction;
import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Post;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;

@Resource
public class QuestionController {

	private final Result result;
	private final QuestionDAO questions;
	private final TagDAO tags;
	private final VoteDAO votes;
	private final CurrentUser currentUser;

	public QuestionController(Result result, QuestionDAO questionDAO, TagDAO tagDAO, VoteDAO votes, CurrentUser currentUser) {
		this.result = result;
		this.questions = questionDAO;
		this.tags = tagDAO;
		this.votes = votes;
		this.currentUser = currentUser;
	}

	@Get("/question/ask")
	@LoggedAccess
	public void questionForm() {
	}

	@Get("/question/edit/{questionId}")
	public void questionEditForm(Long questionId) {
		result.include("question",  questions.getById(questionId));
	}

	@Post("/question/edit/{id}")
{'fraction_non_alphanumeric': 0.11599061347636608, 'fraction_numerical': 0.0, 'mean_word_length': 5.308668076109937, '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': '534425', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1094, 'n_words': 193}