<commit_before>package edu.harvard.iq.dataverse.authorization.groups.impl;

import edu.harvard.iq.dataverse.authorization.groups.Group;
import edu.harvard.iq.dataverse.authorization.RoleAssigneeDisplayInfo;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

/**
 * Convenience base class for implementing groups that apply to the entire Dataverse
 * installation, and are persisted to the DB.
 * 
 * @author michael
 */
@NamedQueries({
    @NamedQuery( name="PersistedGlobalGroup.persistedGroupAlias",
                query="SELECT g FROM PersistedGlobalGroup g WHERE g.persistedGroupAlias=:persistedGroupAlias" )
})
@Entity
public abstract class PersistedGlobalGroup implements Group, Serializable {
    
    @Id
    @GeneratedValue
    private Long id;
    
    /**
     * A unique alias within the persisted group table. 
     */
    @Column(unique = true)
    private String persistedGroupAlias;
    private String displayName;<commit_msg>#1880, Add index for PersistedGlobalGroup.java<commit_after>package edu.harvard.iq.dataverse.authorization.groups.impl;

import edu.harvard.iq.dataverse.authorization.groups.Group;
import edu.harvard.iq.dataverse.authorization.RoleAssigneeDisplayInfo;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * Convenience base class for implementing groups that apply to the entire Dataverse
 * installation, and are persisted to the DB.
 * 
 * @author michael
 */
@NamedQueries({
    @NamedQuery( name="PersistedGlobalGroup.persistedGroupAlias",
                query="SELECT g FROM PersistedGlobalGroup g WHERE g.persistedGroupAlias=:persistedGroupAlias" )
})
@Entity
@Table(indexes = {@Index(columnList="dtype")})
public abstract class PersistedGlobalGroup implements Group, Serializable {
    
    @Id
    @GeneratedValue
    private Long id;
    
    /**
     * A unique alias within the persisted group table. 
     */
    @Column(unique = true)
    private String persistedGroupAlias;
    private String displayName;
{'fraction_non_alphanumeric': 0.08665008291873963, 'fraction_numerical': 0.001658374792703151, 'mean_word_length': 4.572748267898383, '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': '4944943', 'n_tokens_mistral': 667, 'n_tokens_neox': 664, 'n_words': 169}