<commit_before>package com.github.brotherlogic.pictureframe;

import java.io.File;

import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;

public class FrameTest {

	@Test
	public void testGreeting() {
		Frame f = new Frame("madeup");
		Assert.assertEquals("Running", f.getGreeting());
	}

	@Test
	public void testCompareFile() {
		File f1 = Mockito.mock(File.class);
		File f2 = Mockito.mock(File.class);
		Mockito.when(f1.lastModified()).thenReturn(10L);
		Mockito.when(f2.lastModified()).thenReturn(20L);

		Frame f = new Frame("madeup");
		Assert.assertTrue(f.compareFiles(f1, f2) < 0);
		Assert.assertTrue(f.compareFiles(f2, f1) > 0);
	}

	@Test
	public void testGetImage() {
		Frame f = new Frame("madeup");
		Photo p = f.getLatestPhoto("images");
		Assert.assertEquals("IMG_5428.JPG", p.getName());<commit_msg>Fixed the build<commit_after>package com.github.brotherlogic.pictureframe;

import java.io.File;

import org.junit.Assert;
import org.junit.Test;
import org.mockito.Mockito;

public class FrameTest {

	@Test
	public void testGreeting() {
		Frame f = new Frame("madeup");
		Assert.assertEquals("Running", f.getGreeting());
	}

	@Test
	public void testCompareFile() {
		File f1 = Mockito.mock(File.class);
		File f2 = Mockito.mock(File.class);
		Mockito.when(f1.lastModified()).thenReturn(10L);
		Mockito.when(f2.lastModified()).thenReturn(20L);

		Frame f = new Frame("madeup");
		Assert.assertTrue(f.compareFiles(f1, f2) < 0);
		Assert.assertTrue(f.compareFiles(f2, f1) > 0);
	}

	@Test
	public void testGetImage() {
		Frame f = new Frame("madeup");
		Photo p = f.getLatestPhoto("images");
		Assert.assertEquals("IMG_5394.JPG", p.getName());
{'fraction_non_alphanumeric': 0.15476190476190477, 'fraction_numerical': 0.02142857142857143, 'mean_word_length': 4.898245614035088, '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': '5012107', 'n_tokens_mistral': 641, 'n_tokens_neox': 600, 'n_words': 117}