<commit_before>package nsis.tests;

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.io.IOException;

import org.junit.jupiter.api.Test;

import generic.continues.RethrowContinuesFactory;
import ghidra.app.util.bin.ByteArrayProvider;
import ghidra.app.util.bin.format.pe.PortableExecutable.SectionLayout;
import nsis.file.NsisExecutable;

public class NsisExecutableTest {

	private byte[] mockFile = { (byte) 0xef, (byte) 0xef, (byte) 0xef,
			(byte) 0xbe, (byte) 0xad, (byte) 0xde, 'N', 'u', 'l', 'l', 's', 'o',
			'f', 't', 'I', 'n', 's', 't' };

	@Test
	public void testNsisCreation() throws IOException {
		ByteArrayProvider bp = new ByteArrayProvider(this.mockFile);
		NsisExecutable ne = NsisExecutable.createNsisExecutable(
				RethrowContinuesFactory.INSTANCE, bp, SectionLayout.FILE);
		long headerOffset = ne.getHeaderOffset();
		assertEquals((long) 3, headerOffset);
	}

}<commit_msg>Fixed test and imports<commit_after>package nsis.tests;

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.io.IOException;

import org.junit.jupiter.api.Test;

import generic.continues.RethrowContinuesFactory;
import ghidra.app.util.bin.ByteArrayProvider;
import ghidra.app.util.bin.format.pe.PortableExecutable.SectionLayout;
import nsis.file.NsisExecutable;

public class NsisExecutableTest {

	private byte[] mockFile = { (byte) 0xef, (byte) 0xef, (byte) 0xef,
			(byte) 0xbe, (byte) 0xad, (byte) 0xde, 'N', 'u', 'l', 'l', 's', 'o',
			'f', 't', 'I', 'n', 's', 't' };

	@Test
	public void testNsisCreation() throws IOException {
		ByteArrayProvider bp = new ByteArrayProvider(this.mockFile);
		NsisExecutable ne = NsisExecutable.createNsisExecutable(
				RethrowContinuesFactory.INSTANCE, bp, SectionLayout.FILE);
		long headerOffset = ne.getHeaderOffset();
		assertEquals((long) 2, headerOffset);
	}

}
{'fraction_non_alphanumeric': 0.1393841166936791, 'fraction_numerical': 0.007563479200432199, 'mean_word_length': 5.52112676056338, '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': '3859724', 'n_tokens_mistral': 694, 'n_tokens_neox': 650, 'n_words': 141}