<commit_before>package de.fzi.sensidl.language.generator.generationstep.skeletongenerationstep

import de.fzi.sensidl.design.sensidl.dataRepresentation.DataSet
import de.fzi.sensidl.language.generator.IExecuter
import de.fzi.sensidl.language.generator.SensIDLConstants.GenerationLanguage
import de.fzi.sensidl.language.generator.elementfilter.ElementFilter
import de.fzi.sensidl.language.generator.factory.c.CGenerator
import de.fzi.sensidl.language.generator.factory.java.JavaGenerator
import de.fzi.sensidl.language.generator.factory.javascript.JavaScriptGenerator
import de.fzi.sensidl.language.generator.generationstep.GenerationStep
import java.util.HashMap
import java.util.List
import de.fzi.sensidl.language.generator.factory.plaintext.PlaintextGenerator

class SkeletonGenerationStep extends GenerationStep {
	private List<DataSet> dataSet
		
	new(ElementFilter filter) {
		this.dataSet = filter.filterData()
	}
	
	override startGenerationTask() {
		this.startGenerationTask(initExecuter)
	}
	
	private def initExecuter() {
				return new HashMap<GenerationLanguage, IExecuter> => [
			put(GenerationLanguage.JAVA, [
				val JavaGenerator generator = new JavaGenerator()
				filesToGenerate => [putAll(generator.generateDTO(this.dataSet))]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.JAVA_PLUGIN_PROJECT, [
				val JavaGenerator generator = new JavaGenerator()
				filesToGenerate => [putAll(generator.generatePluginProject(this.dataSet))]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.C, [
				val CGenerator generator = new CGenerator()
				filesToGenerate => [putAll(generator.generateDTO(this.dataSet))]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.CSHARP, [
//				val CSharpGenerator generator = new CSharpGenerator()
//				filesToGenerate => [putAll(generator.generateDTO(this.dataSet))]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.JAVASCRIPT, [
				val JavaScriptGenerator generator = new JavaScriptGenerator()
				filesToGenerate => [putAll(generator.generateDTO(this.dataSet))]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.PLAINTEXT, [
				val PlaintextGenerator generator = new PlaintextGenerator()
				filesToGenerate => [putAll(generator.generateDTO(this.dataSet))]
//				generator.generateDecoder
//				generator.generateEncoder
			])
		]
	}
	
}<commit_msg>Add PlaintextGenerator to Generation Process<commit_after>package de.fzi.sensidl.language.generator.generationstep.skeletongenerationstep

import de.fzi.sensidl.design.sensidl.dataRepresentation.DataSet
import de.fzi.sensidl.language.generator.IExecuter
import de.fzi.sensidl.language.generator.SensIDLConstants.GenerationLanguage
import de.fzi.sensidl.language.generator.elementfilter.ElementFilter
import de.fzi.sensidl.language.generator.factory.c.CGenerator
import de.fzi.sensidl.language.generator.factory.java.JavaGenerator
import de.fzi.sensidl.language.generator.factory.javascript.JavaScriptGenerator
import de.fzi.sensidl.language.generator.generationstep.GenerationStep
import java.util.HashMap
import java.util.List
import de.fzi.sensidl.language.generator.factory.plaintext.PlaintextGenerator

class SkeletonGenerationStep extends GenerationStep {
	private List<DataSet> dataSet

	new(ElementFilter filter) {
		this.dataSet = filter.filterData()
	}

	override startGenerationTask() {
		this.startGenerationTask(initExecuter)
	}

	private def initExecuter() {
		return new HashMap<GenerationLanguage, IExecuter> => [
			put(GenerationLanguage.JAVA, [
				val JavaGenerator generator = new JavaGenerator()
				val PlaintextGenerator generator2 = new PlaintextGenerator()
				filesToGenerate => [
					putAll(generator.generateDTO(this.dataSet))
					putAll(generator2.generateDTO(this.dataSet))
				]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.JAVA_PLUGIN_PROJECT, [
				val JavaGenerator generator = new JavaGenerator()
				val PlaintextGenerator generator2 = new PlaintextGenerator()
				filesToGenerate => [
					putAll(generator.generatePluginProject(this.dataSet))
					putAll(generator2.generateDTO(this.dataSet))
				]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.C, [
				val CGenerator generator = new CGenerator()
				val PlaintextGenerator generator2 = new PlaintextGenerator()
				filesToGenerate => [
					putAll(generator.generateDTO(this.dataSet))
					putAll(generator2.generateDTO(this.dataSet))
				]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.CSHARP, [
//				val CSharpGenerator generator = new CSharpGenerator()
//				filesToGenerate => [putAll(generator.generateDTO(this.dataSet))]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.JAVASCRIPT, [
				val JavaScriptGenerator generator = new JavaScriptGenerator()
				val PlaintextGenerator generator2 = new PlaintextGenerator()
				filesToGenerate => [
					putAll(generator.generateDTO(this.dataSet))
					putAll(generator2.generateDTO(this.dataSet))
				]
//				generator.generateDecoder
//				generator.generateEncoder
			])
			put(GenerationLanguage.PLAINTEXT, [
				val PlaintextGenerator generator = new PlaintextGenerator()
				val PlaintextGenerator generator2 = new PlaintextGenerator()
				filesToGenerate => [
					putAll(generator.generateDTO(this.dataSet))
					putAll(generator2.generateDTO(this.dataSet))
				]
//				generator.generateDecoder
//				generator.generateEncoder
			])
		]
	}

}
{'fraction_non_alphanumeric': 0.09696016771488469, 'fraction_numerical': 0.0017470300489168414, 'mean_word_length': 4.7307307307307305, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '1572557', 'n_tokens_mistral': 1947, 'n_tokens_neox': 1649, 'n_words': 244}