<commit_before>package com.brogrammers.agora.test;

import junit.framework.TestCase;


public class UpvoteQuestionTest extends TestCase
{
//Assuming questions start with 0 upvotes
	QuestionController controller = QuestionController.getController();
	WebServiceModel webModel = WebServiceModel.getModel();

	long questionID = controller.addQuestion("I can't get past this road.", "There is a snorlax blocking the path.", null);

	//upvoting once
	Question testQuestion = webModel.getQuestionById(questionID);
	controller.upvote(questionID);
	
	void testQuestionUpvoted() {
		assertTrue("Question is upvoted.", testQuestion.getRating()== 1);
	}
	
	//upvoting 100 times
	for (int i = 1; i < 99; i++){
		controller.upvote(questionID);
	}
	
	void testQuestionUpvoteCount() {
		assertTrue("Question is not upvoted 100 times.", testQuestion.getRating() == 100);
	}
}<commit_msg>Update UpvoteQuestionTest.java<commit_after>package com.brogrammers.agora.test;

import junit.framework.TestCase;


public class UpvoteQuestionTest extends TestCase
{
//Assuming questions start with 0 upvotes
	QuestionController controller = QuestionController.getController();
	WebServiceModel webModel = WebServiceModel.getModel();

	long questionID = controller.addQuestion("I can't get past this road.", "There is a snorlax blocking the path.", null);

	//upvoting once
	Question testQuestion = webModel.getQuestionById(questionID);
	controller.upvote(questionID);
	
	void testQuestionUpvoted() {
		assertTrue("Question is upvoted.", testQuestion.getRating()== 1);
	}
	
	//upvoting 100 times
	for (int i = 0; i < 99; i++){
		controller.upvote(questionID);
	}
	
	void testQuestionUpvoteCount() {
		assertTrue("Question is not upvoted 100 times.", testQuestion.getRating() == 100);
	}
}
{'fraction_non_alphanumeric': 0.11085844229675952, 'fraction_numerical': 0.015918135304150087, 'mean_word_length': 5.353790613718411, 'pattern_counts': {'":': 0, '<': 5, '<?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': '531837', 'n_tokens_mistral': 569, 'n_tokens_neox': 511, 'n_words': 143}