<commit_before>import static org.junit.Assert.*;

import java.util.LinkedList;

import org.junit.Test;

import com.omrlnr.jreddit.submissions.Submission;
import com.omrlnr.jreddit.submissions.Submissions;
import com.omrlnr.jreddit.user.User;

public class SubmissionTest {
	@Test
	public void test() {
		LinkedList<Submission> frontpage = null;
		Submission first = null;

		try {
			User user = new User("test_subject_666", "beef");
			user.connect();

			frontpage = Submissions.getSubmissions("all", Submissions.HOT,
					Submissions.FRONTPAGE, user);
			first = frontpage.get(0);
		} catch (Exception exception) {
			exception.printStackTrace();
		}

		assertNotSame(
				"The submission's ID/full name can't be empty, how will reddit identify the submission?",
				first.fullName, "");
		assertNotNull(
				"The submission's ID/full name can't be null, how will reddit identify the submission?",<commit_msg>Fixed SubmissionTest.java<commit_after>import static org.junit.Assert.*;

import java.util.LinkedList;

import org.junit.Test;

import com.omrlnr.jreddit.submissions.Submission;
import com.omrlnr.jreddit.submissions.Submissions;
import com.omrlnr.jreddit.submissions.Submissions.Page;
import com.omrlnr.jreddit.submissions.Submissions.Popularity;
import com.omrlnr.jreddit.user.User;

public class SubmissionTest {
	@Test
	public void test() {
		LinkedList<Submission> frontpage = null;
		Submission first = null;

		try {
			User user = new User("test_subject_666", "beef");
			user.connect();

			frontpage = Submissions.getSubmissions("all", Popularity.HOT,
					Page.FRONTPAGE, user);
			first = frontpage.get(0);
		} catch (Exception exception) {
			exception.printStackTrace();
		}

		assertNotSame(
				"The submission's ID/full name can't be empty, how will reddit identify the submission?",
				first.fullName, "");
		assertNotNull(
				"The submission's ID/full name can't be null, how will reddit identify the submission?",
{'fraction_non_alphanumeric': 0.11356628982528263, 'fraction_numerical': 0.0041109969167523125, 'mean_word_length': 4.547008547008547, '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': '4089637', 'n_tokens_mistral': 697, 'n_tokens_neox': 620, 'n_words': 150}