<commit_before>package org.pentaho.di.core.plugins;

import org.apache.commons.lang.ObjectUtils;
import org.pentaho.di.core.config.PropertySetter;
import org.pentaho.di.core.exception.KettleConfigException;

/**
 * Just a simple bean-style class to mediate plugin configuration.
 * 
 * @author <NAME>
 *
 */
class PluginConfig
{
	private String id;

	private String location;

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getLocation()
	{
		return location;
	}

	public void setLocation(String resource)
	{
		this.location = resource;
	}
	
	public boolean equals(Object o)
	{
		if (o==this)
			return true;
		
		if (!(o instanceof PluginConfig))
			return false;
		
		PluginConfig that = (PluginConfig)o;
		
		return that.id.equals(id) && that.location.equals(location);
	}
	
	@Override
	public int hashCode()
	{
		return ObjectUtils.hashCode(id) + ObjectUtils.hashCode(location);
	}
	
	public void set(String property, String value) throws KettleConfigException
	{
		new PropertySetter().setProperty(this, property, value);
	}

}
<commit_msg>Fix so that digester can see the PluginConfig class successfully<commit_after>package org.pentaho.di.core.plugins;

import org.apache.commons.lang.ObjectUtils;
import org.pentaho.di.core.config.PropertySetter;
import org.pentaho.di.core.exception.KettleConfigException;

/**
 * Just a simple bean-style class to mediate plugin configuration.
 * 
 * @author <NAME>
 *
 */
public class PluginConfig
{
	private String id;

	private String location;

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getLocation()
	{
		return location;
	}

	public void setLocation(String resource)
	{
		this.location = resource;
	}
	
	public boolean equals(Object o)
	{
		if (o==this)
			return true;
		
		if (!(o instanceof PluginConfig))
			return false;
		
		PluginConfig that = (PluginConfig)o;
		
		return that.id.equals(id) && that.location.equals(location);
	}
	
	@Override
	public int hashCode()
	{
		return ObjectUtils.hashCode(id) + ObjectUtils.hashCode(location);
	}
	
	public void set(String property, String value) throws KettleConfigException
	{
		new PropertySetter().setProperty(this, property, value);
	}

}

{'fraction_non_alphanumeric': 0.10241465445462115, 'fraction_numerical': 0.0, 'mean_word_length': 3.093696763202726, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7385103', 'n_tokens_mistral': 840, 'n_tokens_neox': 741, 'n_words': 186}