<commit_before>package nl.mpi.kinnate.kindata;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *  Document   : GraphDataNode
 *  Created on : Sep 11, 2010, 4:30:41 PM
 *  Author     : <NAME>
 */
@XmlRootElement(name = "Entity")
public class EntityData {

    public enum SymbolType {
        // symbol terms are used here to try to keep things agnostic

        square, triangle, circle, union, resource, ego, none
    }
    @XmlElement(name = "Identifier")
    private String uniqueIdentifier;
    @XmlElement(name = "Path")
    private String entityPath;
    @XmlElement(name = "KinType")
    private String[] kinTypeArray = new String[]{};
    @XmlElement(name = "KinTerm")
    private String[] kinTermArray = new String[]{};
    private SymbolType symbolType;
    @XmlElement(name = "Symbol")
    private String symbolTypeString;
    @XmlElement(name = "DateOfBirth")
    private Date dateOfBirth; // todo: use this in the graph sort and offer to show on the graph
    public boolean isEgo = false;
    @XmlElementWrapper(name = "Labels")
    @XmlElement(name = "String")
    private String[] labelStringArray;
    ArrayList<String> tempLabelsList = null;
    @XmlElementWrapper(name = "Relations")
    @XmlElement(name = "Relation")
    private EntityRelation[] relatedNodes;
    protected int xPos;
    protected int yPos;
    public boolean isVisible = false;
    private EntityRelation[] visiblyRelateNodes = null;
    private EntityRelation[] distinctRelateNodes = null;

    private EntityData() {
    }

    public EntityData(String uniqueIdentifierLocal, String entityPathLocal, String kinTypeStringLocal, String symbolTypeLocal, String[] labelStringLocal, boolean isEgoLocal) {
        uniqueIdentifier = uniqueIdentifierLocal;
        entityPath = entityPathLocal;
        kinTypeArray = new String[]{kinTypeStringLocal};<commit_msg>Added href tags to the kin diagram that link directly to the archive metadata and resources.<commit_after>package nl.mpi.kinnate.kindata;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *  Document   : GraphDataNode
 *  Created on : Sep 11, 2010, 4:30:41 PM
 *  Author     : <NAME>
 */
@XmlRootElement(name = "Entity")
public class EntityData {

    public enum SymbolType {
        // symbol terms are used here to try to keep things agnostic

        square, triangle, circle, union, resource, ego, none
    }
    @XmlElement(name = "Identifier")
    private String uniqueIdentifier;
    @XmlElement(name = "Path")
    private String entityPath;
    @XmlElement(name = "KinType")
    private String[] kinTypeArray = new String[]{};
    @XmlElement(name = "KinTerm")
    private String[] kinTermArray = new String[]{};
    private SymbolType symbolType;
    @XmlElement(name = "Symbol")
    private String symbolTypeString;
    @XmlElement(name = "DateOfBirth")
    private Date dateOfBirth; // todo: use this in the graph sort and offer to show on the graph
    public boolean isEgo = false;
    @XmlElementWrapper(name = "Labels")
    @XmlElement(name = "String")
    private String[] labelStringArray;
    ArrayList<String> tempLabelsList = null;
    @XmlElementWrapper(name = "Relations")
    @XmlElement(name = "Relation")
    private EntityRelation[] relatedNodes;
    @XmlElement(name = "ArchiveLink")
    // todo: this needs to provide both the archive handle (for opening the browser) and the url to open localy stored copy of the file
    public String[] archiveLinkArray = null; //new String[]{"http://corpus1.mpi.nl/ds/imdi_browser/?openpath=hdl%3A1839%2F00-0000-0000-000D-2E72-7", "http://www.google.com", "http://www.<EMAIL>"};
//    @XmlElement(name = "ResourceLink")
//    public String[] resourceLinkArray;
    protected int xPos;
    protected int yPos;
    public boolean isVisible = false;
    private EntityRelation[] visiblyRelateNodes = null;
    private EntityRelation[] distinctRelateNodes = null;

    private EntityData() {
    }

    public EntityData(String uniqueIdentifierLocal, String entityPathLocal, String kinTypeStringLocal, String symbolTypeLocal, String[] labelStringLocal, boolean isEgoLocal) {
        uniqueIdentifier = uniqueIdentifierLocal;
        entityPath = entityPathLocal;
        kinTypeArray = new String[]{kinTypeStringLocal};
{'fraction_non_alphanumeric': 0.1015693112467306, 'fraction_numerical': 0.01002615518744551, 'mean_word_length': 3.961081081081081, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '3744619', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1278, 'n_words': 379}