<commit_before>package ca.ualberta.lard.test;

import ca.ualberta.lard.NewCommentActivity;
import android.content.Intent;
import android.test.ActivityInstrumentationTestCase2;

public class NewCommentActivityTests extends ActivityInstrumentationTestCase2<NewCommentActivity> {
	
	public NewCommentActivityTests() {
		super(NewCommentActivity.class);
	}
	
	public void testParentIDExists() {
		Intent intent = new Intent();
		int value = 1;
		intent.putExtra("parentID", value);
		setActivityIntent(intent);
		NewCommentActivity activity = getActivity();
		assertEquals("NewCommentActivity should get the value from intent", value, activity.getPid());
	}
	
	public void testParentIDNotExists() {
		Intent intent = new Intent();
		setActivityIntent(intent);
		NewCommentActivity activity = getActivity();
		assertEquals("NewCommentActivity should get the value from intent", -1, activity.getPid());
	}
	
	public void testPicture() {
		// can not test yet
	}

}<commit_msg>added a currently uncompletable test<commit_after>package ca.ualberta.lard.test;

import ca.ualberta.lard.NewCommentActivity;
import android.content.Intent;
import android.test.ActivityInstrumentationTestCase2;

public class NewCommentActivityTests extends ActivityInstrumentationTestCase2<NewCommentActivity> {
	
	public NewCommentActivityTests() {
		super(NewCommentActivity.class);
	}
	
	public void testParentIDExists() {
		Intent intent = new Intent();
		int value = 1;
		intent.putExtra("parentID", value);
		setActivityIntent(intent);
		NewCommentActivity activity = getActivity();
		assertEquals("NewCommentActivity should get the value from intent", value, activity.getPid());
	}
	
	public void testParentIDNotExists() {
		Intent intent = new Intent();
		setActivityIntent(intent);
		NewCommentActivity activity = getActivity();
		assertEquals("NewCommentActivity should get the value from intent", -1, activity.getPid());
	}
	
	public void testPicture() {
		// can not test yet
	}
	
	public void testGeoLocation() {
		// can not test yet
	}

}
{'fraction_non_alphanumeric': 0.09688581314878893, 'fraction_numerical': 0.003954522985664854, 'mean_word_length': 5.550161812297735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7059803', 'n_tokens_mistral': 603, 'n_tokens_neox': 553, 'n_words': 147}