<commit_before>/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 <NAME>
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.familyTree.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.validation.constraints.NotNull;

/**
 * @author <NAME>
 */
@Entity
@NamedQuery(name = Gender.FIND_ALL, query = "SELECT g FROM Gender g")
public class Gender
{

    /**
     *
     */
    public static final String FIND_ALL = "Gender.findAll";

    @Id
    private char abbr;

    @Column(name = "FULL_WORD")
    @NotNull
    private String fullWord;

    /**
     *
     */
    public Gender()
    {

    }

    /**
     * @param abbr
     */
    public Gender(char abbr)
    {
        this.abbr = abbr;
    }

    /**
     * @return
     */
    public char getAbbr()
    {
        return abbr;
    }

    /**
     * @param abbr
     */
    public void setAbbr(char abbr)
    {
        this.abbr = abbr;
    }

    /**
     * @return
     */
    public String getFullWord()
    {
        return fullWord;
    }

    /**
     * @param fullWord
     */
    public void setFullWord(String fullWord)
    {
        this.fullWord = fullWord;
    }

    public String toString()
    {
        return fullWord;<commit_msg>Update Gender.java<commit_after>/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 <NAME>
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.familyTree.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.validation.constraints.NotNull;

/**
 * @author <NAME>
 */
@Entity
@NamedQuery(name = Gender.FIND_ALL, query = "SELECT g FROM Gender g")
public class Gender
{
    /**
     * Specifies the {@link String} that represents the {@link javax.persistence.NamedQuery} to create a {@link
     * javax.persistence.TypedQuery} to get all genders.
     */
    public static final String FIND_ALL = "Gender.findAll";

    @Id
    private char abbr;

    @Column(name = "FULL_WORD")
    @NotNull
    private String fullWord;

    /**
     * Public no-argument constructor for JPA.
     */
    public Gender()
    {
        super();
    }

    /**
     * @param abbr the abbreviation for the gender
     */
    public Gender(char abbr)
    {
        this.abbr = abbr;
    }

    /**
     * Returns the abbreviation for the gender. This is typically just the first letter.
     * 
     * @return the abbreviation for the gender
     * 
     * @see #getFullWord()
     */
    public char getAbbr()
    {
        return abbr;
    }

    /**
     * Sets the abbreviation for the gender. This is typically just the first letter.
     * 
     * @param abbr the abbreviation for the gender
     */
    public void setAbbr(char abbr)
    {
        this.abbr = abbr;
    }

    /**
     * Returns the entire word for the gender. Available values include Male, Female, Other, and Unknown.
     * 
     * @return the entire word for the gender
     */
    public String getFullWord()
    {
        return fullWord;
    }

    /**
     * Sets the entire word for the gender. Available values include Male, Female, Other, and Unknown.
     * 
     * @param fullWord the entire word for the gender
     */
    public void setFullWord(String fullWord)
    {
        this.fullWord = fullWord;
    }

    /**
     * @return A string representation of the gender, which is just the full word.
     *
     * @see #getFullWord()
     */
    @Override
    public String toString()
    {
        return fullWord;
{'fraction_non_alphanumeric': 0.10909555442003066, 'fraction_numerical': 0.0030659172202350538, 'mean_word_length': 2.1623586429725363, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '3871903', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1205, 'n_words': 333}