<commit_before>package org.kuali.rice.krms.impl.repository

import org.kuali.rice.kns.bo.PersistableBusinessObjectBase

import org.kuali.rice.krms.api.repository.TermResolverDefinition
import org.kuali.rice.krms.api.repository.TermResolverDefinitionContract

public class TermResolverBo extends PersistableBusinessObjectBase implements TermResolverDefinitionContract {

	def String id
	def String namespaceCode
	def String name
	def String typeId
	def String outputId
	
	def TermSpecificationBo output
	def Set<TermSpecificationBo> prerequisites
	def Set<String> parameterNames
	def Set<TermResolverAttributeBo> attributes
	
	
	/**
	* Converts a mutable bo to it's immutable counterpart
	* @param bo the mutable business object
	* @return the immutable object
	*/
   static TermResolverDefinition to(TermResolverBo bo) {
	   if (bo == null) { return null }
	   return org.kuali.rice.krms.api.repository.TermResolverDefinition.Builder.create(bo).build()
   }

   /**
	* Converts a immutable object to it's mutable bo counterpart
	* @param im immutable object
	* @return the mutable bo
	*/
   static TermResolverBo from(TermResolverDefinition im) {
	   if (im == null) { return null }

	   TermResolverBo bo = new TermResolverBo()
	   bo.id = im.id
	   bo.namespaceCode = im.namespaceCode
	   bo.name = im.name
	   bo.typeId = im.typeId
	   bo.output = TermSpecificationBo.from(im.output)
	   bo.parameterNames in im.parameterNames
	   bo.prerequisites = new HashSet<TermSpecificationBo>()
	   for (prereq in im.prerequisites){
		   bo.attributes.add (TermSpecificationBo.from(prereq))
	   }
	   bo.attributes = new HashSet<TermResolverAttributeBo>()
	   for (attr in im.attributes){
		   bo.attributes.add (TermResolverAttributeBo.from(attr))
	   }	   
	   return bo
   }
   public TermSpecificationBo getOutput(){
	   return output;
   }

} <commit_msg>KULRICE-5094 Syntax correction in TermResolver BOs.<commit_after>package org.kuali.rice.krms.impl.repository

import org.kuali.rice.kns.bo.PersistableBusinessObjectBase

import org.kuali.rice.krms.api.repository.TermResolverDefinition
import org.kuali.rice.krms.api.repository.TermResolverDefinitionContract

public class TermResolverBo extends PersistableBusinessObjectBase implements TermResolverDefinitionContract {

	def String id
	def String namespaceCode
	def String name
	def String typeId
	def String outputId
	
	def TermSpecificationBo output
	def Set<TermSpecificationBo> prerequisites
	def Set<String> parameterNames
	def Set<TermResolverAttributeBo> attributes
	
	
	/**
	* Converts a mutable bo to it's immutable counterpart
	* @param bo the mutable business object
	* @return the immutable object
	*/
   static TermResolverDefinition to(TermResolverBo bo) {
	   if (bo == null) { return null }
	   return org.kuali.rice.krms.api.repository.TermResolverDefinition.Builder.create(bo).build()
   }

   /**
	* Converts a immutable object to it's mutable bo counterpart
	* @param im immutable object
	* @return the mutable bo
	*/
   static TermResolverBo from(TermResolverDefinition im) {
	   if (im == null) { return null }

	   TermResolverBo bo = new TermResolverBo()
	   bo.id = im.id
	   bo.namespaceCode = im.namespaceCode
	   bo.name = im.name
	   bo.typeId = im.typeId
	   bo.output = TermSpecificationBo.from(im.output)
	   bo.parameterNames in im.parameterNames
	   bo.prerequisites = new HashSet<TermSpecificationBo>()
	   for (prereq in im.prerequisites){
		   bo.prerequisites.add (TermSpecificationBo.from(prereq))
	   }
	   bo.attributes = new HashSet<TermResolverAttributeBo>()
	   for (attr in im.attributes){
		   bo.attributes.add (TermResolverAttributeBo.from(attr))
	   }	   
	   return bo
   }
   public TermSpecificationBo getOutput(){
	   return output;
   }

} 
{'fraction_non_alphanumeric': 0.08166533226581266, 'fraction_numerical': 0.0010675206832132373, 'mean_word_length': 4.037634408602151, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7395451', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1113, 'n_words': 283}