<commit_before>package uk.ac.ebi.spot.goci.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import java.util.Collection;

/**
 * Created by emma on 01/12/14.
 *
 * @author emma
 *         <p>
 *         A model object representing a gene and its attributes including associated single nucleotide polymorphisms
 */

@Entity
public class Gene {
    @Id
    @GeneratedValue
    private Long id;

    private String geneName;

    @OneToMany
    @JoinTable(name = "GENE_ENTREZ_GENE",
               joinColumns = @JoinColumn(name = "GENE_ID"),
               inverseJoinColumns = @JoinColumn(name = "ENTREZ_GENE_ID"))
    private Collection<EntrezGene> entrezGeneIds;

    @OneToMany
    @JoinTable(name = "GENE_ENSEMBL_GENE",
               joinColumns = @JoinColumn(name = "GENE_ID"),
               inverseJoinColumns = @JoinColumn(name = "ENSEMBL_GENE_ID"))
    private Collection<EnsemblGene> ensemblGeneIds;

    @ManyToMany(mappedBy = "authorReportedGenes")
    private Collection<Locus> authorReportedFromLoci;<commit_msg>Entrez and Ensembl ID lists intialized to empty list<commit_after>package uk.ac.ebi.spot.goci.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import java.util.ArrayList;
import java.util.Collection;

/**
 * Created by emma on 01/12/14.
 *
 * @author emma
 *         <p>
 *         A model object representing a gene and its attributes including associated single nucleotide polymorphisms
 */

@Entity
public class Gene {
    @Id
    @GeneratedValue
    private Long id;

    private String geneName;

    @OneToMany
    @JoinTable(name = "GENE_ENTREZ_GENE",
               joinColumns = @JoinColumn(name = "GENE_ID"),
               inverseJoinColumns = @JoinColumn(name = "ENTREZ_GENE_ID"))
    private Collection<EntrezGene> entrezGeneIds = new ArrayList<>();

    @OneToMany
    @JoinTable(name = "GENE_ENSEMBL_GENE",
               joinColumns = @JoinColumn(name = "GENE_ID"),
               inverseJoinColumns = @JoinColumn(name = "ENSEMBL_GENE_ID"))
    private Collection<EnsemblGene> ensemblGeneIds = new ArrayList<>();

    @ManyToMany(mappedBy = "authorReportedGenes")
    private Collection<Locus> authorReportedFromLoci;
{'fraction_non_alphanumeric': 0.09514563106796116, 'fraction_numerical': 0.004660194174757282, 'mean_word_length': 3.744014732965009, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1464747', 'n_tokens_mistral': 788, 'n_tokens_neox': 767, 'n_words': 175}