<commit_before>package org.nanosite.xtendency.tracer.ui

import org.eclipse.xtend.core.xtend.XtendFunction
import org.eclipse.core.resources.IFile
import org.eclipse.xtend.core.xtend.XtendFile
import org.eclipse.xtend.core.xtend.XtendField
import org.eclipse.xtext.common.types.JvmDeclaredType
import org.eclipse.xtend.core.xtend.XtendConstructor
import org.eclipse.xtend.core.xtend.XtendTypeDeclaration

class RunConfTemplateGenerator {
	def static generateTemplate(XtendFunction func, IFile classFile)'''
	runConfiguration «func.name»Config {
		project "«classFile.project.name»"
		class «(func.declaringType.eContainer as XtendFile).package».«func.declaringType.name» : «func.name»
		«IF !func.parameters.empty»<commit_msg>Fixed rconf template generator to always include 'this' when necessary<commit_after>package org.nanosite.xtendency.tracer.ui

import org.eclipse.xtend.core.xtend.XtendFunction
import org.eclipse.core.resources.IFile
import org.eclipse.xtend.core.xtend.XtendFile
import org.eclipse.xtend.core.xtend.XtendField
import org.eclipse.xtext.common.types.JvmDeclaredType
import org.eclipse.xtend.core.xtend.XtendConstructor
import org.eclipse.xtend.core.xtend.XtendTypeDeclaration

class RunConfTemplateGenerator {
	def static generateTemplate(XtendFunction func, IFile classFile)'''
	runConfiguration «func.name»Config {
		project "«classFile.project.name»"
		class «(func.declaringType.eContainer as XtendFile).package».«func.declaringType.name» : «func.name»
		«IF !(func.parameters.empty && func.static)»
{'fraction_non_alphanumeric': 0.10812581913499344, 'fraction_numerical': 0.0, 'mean_word_length': 6.3768115942028984, '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': '4640585', 'n_tokens_mistral': 510, 'n_tokens_neox': 502, 'n_words': 108}