<commit_before>package br.com.caelum.brutal.reputation.rules;

import br.com.caelum.brutal.model.VoteType;

public class CommentVoteRule implements VotableRule {

	@Override
	public int calculate(VoteType type) {
		if (type != VoteType.UP) {
			throw new IllegalArgumentException("comment cannot be upvoted");
		}
		return KarmaCalculator.COMMENT_VOTED_UP;
	}

}<commit_msg>msg de exception<commit_after>package br.com.caelum.brutal.reputation.rules;

import br.com.caelum.brutal.model.VoteType;

public class CommentVoteRule implements VotableRule {

	@Override
	public int calculate(VoteType type) {
		if (type != VoteType.UP) {
			throw new IllegalArgumentException("comment cannot be downvoted");
		}
		return KarmaCalculator.COMMENT_VOTED_UP;
	}

}
{'fraction_non_alphanumeric': 0.09561752988047809, 'fraction_numerical': 0.0, 'mean_word_length': 5.231404958677686, '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': '3142177', 'n_tokens_mistral': 279, 'n_tokens_neox': 259, 'n_words': 54}