<commit_before>package de.bitub.step.generator

import de.bitub.step.express.Function
import de.bitub.step.express.Schema
import de.bitub.step.express.DataType
import de.bitub.step.express.CollectionType
import de.bitub.step.express.BooleanType
import de.bitub.step.express.LogicalType
import de.bitub.step.express.ReferenceType
import de.bitub.step.express.GenericType
import de.bitub.step.express.BuiltInType
import de.bitub.step.express.StringType
import de.bitub.step.express.RealType
import de.bitub.step.express.NumberType
import de.bitub.step.express.IntegerType

class FunctionGenerator {

	def compileFunction(Schema schema) {

		'''
		class Functions {
		
		«FOR f : schema.funtions»«f.compileFunction»«ENDFOR»
		
		}'''
	}

	def compileFunction(Function function) {

		'''
			
				op«function.returnType.compileReturnType» «function.name.toFirstLower»()<commit_msg>fix unused imports in xtext function generator<commit_after>package de.bitub.step.generator

import de.bitub.step.express.BooleanType
import de.bitub.step.express.CollectionType
import de.bitub.step.express.DataType
import de.bitub.step.express.Function
import de.bitub.step.express.GenericType
import de.bitub.step.express.IntegerType
import de.bitub.step.express.LogicalType
import de.bitub.step.express.NumberType
import de.bitub.step.express.RealType
import de.bitub.step.express.ReferenceType
import de.bitub.step.express.Schema
import de.bitub.step.express.StringType

class FunctionGenerator {

	def compileFunction(Schema schema) {

		'''
		class Functions {
		
		«FOR f : schema.funtions»«f.compileFunction»«ENDFOR»
		
		}'''
	}

	def compileFunction(Function function) {

		'''
			
				op«function.returnType.compileReturnType» «function.name.toFirstLower»()
{'fraction_non_alphanumeric': 0.10779816513761468, 'fraction_numerical': 0.0, 'mean_word_length': 4.9965635738831615, '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': '7251653', 'n_tokens_mistral': 590, 'n_tokens_neox': 547, 'n_words': 116}