<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.event;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.TypedQuery;

/**
 * @author <NAME> <<EMAIL>>
 */
@Entity
@DiscriminatorValue(value = "birth")
@NamedQueries({
                      @NamedQuery(name = Birth.FIND_ALL, query = "SELECT b FROM Birth b"),
                      @NamedQuery(name = Birth.COUNT_BY_DECADE,
                                  query = "SELECT (b.year - MOD(b.year,10)) AS decade, COUNT(decade) FROM Birth b WHERE b.year IS NOT NULL GROUP BY decade"),
                      @NamedQuery(name = Birth.COUNT_BY_YEAR,
                                  query = "SELECT COUNT(b.year), b.year FROM Birth b WHERE b.year IS NOT NULL GROUP BY b.year ORDER BY b.year"),
                      @NamedQuery(name = Birth.COUNT_BY_YEAR2,
                                  query = "SELECT COUNT(d.year), d.year - 50 FROM Death d LEFT OUTER JOIN Birth b ON b.person = d.person WHERE b.type IS NULL")
              })
public class Birth extends SinglePersonEvent
{
    public static final String COUNT_BY_DECADE = "Birth.countByDecade";
    public static final String COUNT_BY_YEAR = "Birth.countByYear";
    public static final String COUNT_BY_YEAR2 = "Birth.countByYear2";
    /**
     * Specifies the {@link String} that represents the {@link NamedQuery} to create a {@link TypedQuery} to get all
     * birth records.
     * <p>
     * For example: {@code TypedQuery<Birth> query = em.createNamedQuery(Birth.FIND_ALL, Birth.class);}
     */
    public static final String FIND_ALL = "Birth.findAll";
}
<commit_msg>Update Birth.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.event;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.TypedQuery;

/**
 * @author <NAME> <<EMAIL>>
 */
@Entity
@DiscriminatorValue(value = "birth")
@NamedQueries({
                      @NamedQuery(name = Birth.FIND_ALL, query = "SELECT b FROM Birth b"),
                      @NamedQuery(name = Birth.COUNT_BY_DECADE,
                                  query = "SELECT (b.year - MOD(b.year,10)) AS decade, COUNT(decade) FROM Birth b WHERE b.year IS NOT NULL GROUP BY decade"),
                      @NamedQuery(name = Birth.COUNT_BY_YEAR,
                                  query = "SELECT COUNT(b.year), b.year FROM Birth b WHERE b.year IS NOT NULL GROUP BY b.year ORDER BY b.year")
              })
public class Birth extends SinglePersonEvent
{
    public static final String COUNT_BY_DECADE = "Birth.countByDecade";
    public static final String COUNT_BY_YEAR = "Birth.countByYear";
    /**
     * Specifies the {@link String} that represents the {@link NamedQuery} to create a {@link TypedQuery} to get all
     * birth records.
     * <p>
     * For example: {@code TypedQuery<Birth> query = em.createNamedQuery(Birth.FIND_ALL, Birth.class);}
     */
    public static final String FIND_ALL = "Birth.findAll";
}

{'fraction_non_alphanumeric': 0.10940076965365586, 'fraction_numerical': 0.00577240241891149, 'mean_word_length': 2.743827160493827, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6988490', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1094, 'n_words': 303}