<commit_before>package hu.elte.txtuml.diagnostics.session;

import static org.junit.Assert.*;
import static org.hamcrest.core.Is.*;

import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.debug.core.model.IStreamsProxy;
import org.junit.Test;

/**
 * @author gerazo
 */
public class RuntimeSessionTrackerTest {

	class FakePlugin implements IDisposable {
		int shutdownWasCalled = 0;

		@Override
		public void dispose() {
			shutdownWasCalled++;
		}		
	}
	
	class FakeProcess implements IProcess {

		@Override
		public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
			return null;
		}

		@Override
		public boolean canTerminate() {
			return false;
		}

		@Override
		public boolean isTerminated() {
			return false;
		}

		@Override
		public void terminate() throws DebugException {
		}

		@Override
		public String getLabel() {<commit_msg>Remove warning from session test<commit_after>package hu.elte.txtuml.diagnostics.session;

import static org.junit.Assert.*;
import static org.hamcrest.core.Is.*;

import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.debug.core.model.IStreamsProxy;
import org.junit.Test;

/**
 * @author gerazo
 */
public class RuntimeSessionTrackerTest {

	class FakePlugin implements IDisposable {
		int shutdownWasCalled = 0;

		@Override
		public void dispose() {
			shutdownWasCalled++;
		}		
	}
	
	class FakeProcess implements IProcess {

		@Override
		public <T> T getAdapter(Class<T> adapter) {
			return null;
		}

		@Override
		public boolean canTerminate() {
			return false;
		}

		@Override
		public boolean isTerminated() {
			return false;
		}

		@Override
		public void terminate() throws DebugException {
		}

		@Override
		public String getLabel() {
{'fraction_non_alphanumeric': 0.102061337355455, 'fraction_numerical': 0.001005530417295123, 'mean_word_length': 4.089514066496164, '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': '23698', 'n_tokens_mistral': 691, 'n_tokens_neox': 612, 'n_words': 146}