<commit_before>package org.testeditor.tcl.dsl.ui.tests.contentassist

import java.io.InputStream
import javax.inject.Inject
import org.eclipse.emf.common.util.URI
import org.eclipse.xtext.junit4.InjectWith
import org.eclipse.xtext.junit4.XtextRunner
import org.eclipse.xtext.resource.FileExtensionProvider
import org.eclipse.xtext.resource.XtextResource
import org.eclipse.xtext.resource.XtextResourceSet
import org.eclipse.xtext.xbase.junit.ui.AbstractContentAssistTest
import org.junit.Before
import org.junit.runner.RunWith
import org.testeditor.tcl.dsl.ui.tests.TclUiInjectorProvider

@RunWith(XtextRunner)
@InjectWith(TclUiInjectorProvider)
class AbstractTclContentAssistTest extends AbstractContentAssistTest {

	@Inject FileExtensionProvider fileExtensionProvider
	@Inject XtextResourceSet resourceSet

	@Before
	def void initialize() {
	}

	/** ensure that AbstractContentAssistTest uses the this resourceSet  */
	override getResourceFor(InputStream stream) {
		getResourceFor(stream, "src/test/Test." + fileExtensionProvider.primaryFileExtension)
	}

	def XtextResource getResourceFor(InputStream stream, String fileName) {
		val result = resourceSet.createResource(URI::createURI(fileName))
		result.load(stream, null)
		result as XtextResource
	}
}
<commit_msg>TE-375 add abstract keyword to fix the build<commit_after>package org.testeditor.tcl.dsl.ui.tests.contentassist

import java.io.InputStream
import javax.inject.Inject
import org.eclipse.emf.common.util.URI
import org.eclipse.xtext.junit4.InjectWith
import org.eclipse.xtext.junit4.XtextRunner
import org.eclipse.xtext.resource.FileExtensionProvider
import org.eclipse.xtext.resource.XtextResource
import org.eclipse.xtext.resource.XtextResourceSet
import org.eclipse.xtext.xbase.junit.ui.AbstractContentAssistTest
import org.junit.Before
import org.junit.runner.RunWith
import org.testeditor.tcl.dsl.ui.tests.TclUiInjectorProvider

@RunWith(XtextRunner)
@InjectWith(TclUiInjectorProvider)
abstract class AbstractTclContentAssistTest extends AbstractContentAssistTest {

	@Inject FileExtensionProvider fileExtensionProvider
	@Inject XtextResourceSet resourceSet

	@Before
	def void initialize() {
	}

	/** ensure that AbstractContentAssistTest uses the this resourceSet  */
	override getResourceFor(InputStream stream) {
		getResourceFor(stream, "src/test/Test." + fileExtensionProvider.primaryFileExtension)
	}

	def XtextResource getResourceFor(InputStream stream, String fileName) {
		val result = resourceSet.createResource(URI::createURI(fileName))
		result.load(stream, null)
		result as XtextResource
	}
}

{'fraction_non_alphanumeric': 0.08243034055727554, 'fraction_numerical': 0.0027089783281733747, 'mean_word_length': 6.558479532163743, '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': '3234887', 'n_tokens_mistral': 777, 'n_tokens_neox': 776, 'n_words': 146}