<commit_before>package com.profesorfalken.jpowershell;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.junit.Assert;
import org.junit.Test;

/**
 * Tests for jPowerShell
 *
 * @author <NAME>
 */
public class PowerShellTest {

	private static final String CRLF = "\r\n";

	/**
	 * Test of openSession method, of class PowerShell.
	 *
	 * @throws java.lang.Exception
	 */
	@Test
	public void testListDir() throws Exception {
		System.out.println("testListDir");
		PowerShell powerShell = PowerShell.openSession();
		PowerShellResponse response = powerShell.executeCommand("dir");

		System.out.println("List Directory:" + response.getCommandOutput());

		Assert.assertTrue(response.getCommandOutput().contains("LastWriteTime"));

		powerShell.close();
	}

	/**
	 * Test of openSession method, of class PowerShell.
	 *
	 * @throws java.lang.Exception
	 */
	@Test
	public void testSimpleListDir() throws Exception {
		System.out.println("start testListDir");
		if (OSDetector.isWindows()) {
			PowerShellResponse response = PowerShell.executeSingleCommand("dir");

			System.out.println("List Directory:" + response.getCommandOutput());

			Assert.assertTrue(response.getCommandOutput().contains("LastWriteTime"));
			System.out.println("end testListDir");
		}
	}

	/**
	 * Test of openSession method, of class PowerShell.
	 *
	 * @throws java.lang.Exception
	 */
	@Test
	public void testListProcesses() throws Exception {
		System.out.println("testListProcesses");<commit_msg>One tests left to comment for linux<commit_after>package com.profesorfalken.jpowershell;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.junit.Assert;
import org.junit.Test;

/**
 * Tests for jPowerShell
 *
 * @author <NAME>
 */
public class PowerShellTest {

	private static final String CRLF = "\r\n";

	/**
	 * Test of openSession method, of class PowerShell.
	 *
	 * @throws java.lang.Exception
	 */
	@Test
	public void testListDir() throws Exception {
		System.out.println("testListDir");
		if (OSDetector.isWindows()) {
			PowerShell powerShell = PowerShell.openSession();
			PowerShellResponse response = powerShell.executeCommand("dir");

			System.out.println("List Directory:" + response.getCommandOutput());

			Assert.assertTrue(response.getCommandOutput().contains("LastWriteTime"));

			powerShell.close();
		}
	}

	/**
	 * Test of openSession method, of class PowerShell.
	 *
	 * @throws java.lang.Exception
	 */
	@Test
	public void testSimpleListDir() throws Exception {
		System.out.println("start testListDir");
		if (OSDetector.isWindows()) {
			PowerShellResponse response = PowerShell.executeSingleCommand("dir");

			System.out.println("List Directory:" + response.getCommandOutput());

			Assert.assertTrue(response.getCommandOutput().contains("LastWriteTime"));
			System.out.println("end testListDir");
		}
	}

	/**
	 * Test of openSession method, of class PowerShell.
	 *
	 * @throws java.lang.Exception
	 */
	@Test
	public void testListProcesses() throws Exception {
		System.out.println("testListProcesses");
{'fraction_non_alphanumeric': 0.12832237782223493, 'fraction_numerical': 0.0, 'mean_word_length': 4.636070853462158, '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': '3955869', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1027, 'n_words': 229}