<commit_before>package org.helianto.core.filter.form;

import java.util.Collection;
import java.util.HashSet;
import java.util.List;

import org.helianto.core.Entity;
import org.helianto.core.Identity;
import org.helianto.core.User;
import org.helianto.core.UserGroup;

/**
 * Abstract user form.
 * 
 * @author mauriciofernandesdecastro
 */
public abstract class AbstractUserForm implements UserGroupForm {

    private static final long serialVersionUID = 1L;
    private Entity entity;
    private Class<? extends UserGroup> clazz;
    private String userKey;
    private UserGroup parent;
	private List<UserGroup> parentList;
    private String parentUserKey;
    private char userState = ' ';
    private char userType = ' ';
    private Identity identity;
	private Collection<Identity> exclusions;

    public void reset() {
    	setUserState(' ');
    	setUserType(' ');
    	setExclusions(new HashSet<Identity>(0));
    }
    
    public Entity getEntity() {
		return entity;
	}
    public void setEntity(Entity entity) {
		this.entity = entity;
	}

	public String getUserKey() {
		return userKey;
	}
	public void setUserKey(String userKey) {
		this.userKey = userKey;
	}

	public UserGroup getParent() {
		return parent;
	}
	public void setParent(UserGroup parent) {
		this.parent = parent;
	}
	
	public List<UserGroup> getParentList() {
		return parentList;
	}
	public void setParentList(List<UserGroup> parentList) {
		this.parentList = parentList;
	}<commit_msg>Follows changes in ParentForm interface.<commit_after>package org.helianto.core.filter.form;

import java.util.Collection;
import java.util.HashSet;
import java.util.List;

import org.helianto.core.Entity;
import org.helianto.core.Identity;
import org.helianto.core.User;
import org.helianto.core.UserGroup;

/**
 * Abstract user form.
 * 
 * @author mauriciofernandesdecastro
 */
public abstract class AbstractUserForm implements UserGroupForm {

    private static final long serialVersionUID = 1L;
    private Entity entity;
    private Class<? extends UserGroup> clazz;
    private String userKey;
    private UserGroup parent;
	private List<UserGroup> parentList;
    private String parentUserKey;
    private char userState = ' ';
    private char userType = ' ';
    private Identity identity;
	private Collection<Identity> exclusions;

    public void reset() {
    	setUserState(' ');
    	setUserType(' ');
    	setExclusions(new HashSet<Identity>(0));
    }
    
    public Entity getEntity() {
		return entity;
	}
    public void setEntity(Entity entity) {
		this.entity = entity;
	}

	public String getUserKey() {
		return userKey;
	}
	public void setUserKey(String userKey) {
		this.userKey = userKey;
	}

	public UserGroup getParent() {
		return parent;
	}
	public void setParent(UserGroup parent) {
		this.parent = parent;
	}
	public long getParentId() {
		if (getParent()!=null) {
			return getParent().getId();
		}
		return 0;
	}

	public String getParentName() {
		return "userGroup";
	}
	
	public List<UserGroup> getParentList() {
		return parentList;
	}
	public void setParentList(List<UserGroup> parentList) {
		this.parentList = parentList;
	}
{'fraction_non_alphanumeric': 0.09904458598726115, 'fraction_numerical': 0.0015923566878980893, 'mean_word_length': 3.9001560062402496, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3231507', 'n_tokens_mistral': 1017, 'n_tokens_neox': 974, 'n_words': 250}