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

/**
 *  Document   : RelationType
 *  Created on : Mar 25, 2011, 6:16:56 PM
 *  Author     : <NAME>
 */
public class DataTypes {

    public enum RelationType {

        // todo: replace affiliation, resource, collector, metadata, none  for OTHER..
        // maybe keep the: kinterm, curve1, curve2, none
        // sibling, ancestor, descendant, union, kin_term, custom_type1, custom_type2, none
        sibling, ancestor, descendant, union, kinterm, other //, horizontalCurve, gedcom,/* probably remove the items after this */ custom, affiliation, resource, collector, metadata, none // todo: should metadata relations use the same link type as jpg files?


// modify the kin type definitions to allow multi select for symbols and relation types eg P could be squ or cir and tri
                // and add additional option after divider with <all> that toggles all selections 
                // if other then enable extra column with line type of h or v
                // modify relation type in kintype definitions to ude the custom relation types not the enum
    }

    public static boolean isSanguinLine(String stringRelation) {
        return isSanguinLine(RelationType.valueOf(stringRelation));
    }

    public static boolean isSanguinLine(DataTypes.RelationType directedRelation) {
        return (directedRelation == DataTypes.RelationType.ancestor
                || directedRelation == DataTypes.RelationType.descendant
                || directedRelation == DataTypes.RelationType.sibling
                || directedRelation == DataTypes.RelationType.union);
    }

    public static RelationType getOpposingRelationType(RelationType relationType) {
        switch (relationType) {
            case ancestor:
                return DataTypes.RelationType.descendant;
            case descendant:
                return DataTypes.RelationType.ancestor;
        }
        return relationType;
    }

    public RelationTypeDefinition[] getReferenceRelations() {
        return new RelationTypeDefinition[]{
//                    new RelationTypeDefinition("SampeRelationType", "", RelationType.custom, "#999999", 4, "")
                };
    }
}<commit_msg>Updated some sample diagrams to reflect recent changes. Updated the line rendering to reflect recent changes. Replaced the entity relation comparator code. Updated the relation type and custom relation type data structure. Added table cell editor and renderers for the kin type definitions table so that multiple select is available for symbols and relations. Added action and button to scan the diagram for relation types to which styles can be applied.<commit_after>package nl.mpi.kinnate.kindata;

/**
 *  Document   : RelationType
 *  Created on : Mar 25, 2011, 6:16:56 PM
 *  Author     : <NAME>
 */
public class DataTypes {

    public enum RelationType {

        // todo: replace affiliation, resource, collector, metadata, none  for OTHER..
        // maybe keep the: kinterm, curve1, curve2, none
        // sibling, ancestor, descendant, union, kin_term, custom_type1, custom_type2, none
        sibling, ancestor, descendant, union, kinterm, other
        //, horizontalCurve, gedcom,/* probably remove the items after this */ custom, affiliation, resource, collector, metadata, none // todo: should metadata relations use the same link type as jpg files?
// modify the kin type definitions to allow multi select for symbols and relation types eg P could be squ or cir and tri
        // and add additional option after divider with <all> that toggles all selections
        // if other then enable extra column with line type of h or v
        // modify relation type in kintype definitions to ude the custom relation types not the enum
    }

    public static boolean isSanguinLine(String stringRelation) {
        return isSanguinLine(RelationType.valueOf(stringRelation));
    }

    public static boolean isSanguinLine(DataTypes.RelationType directedRelation) {
        return (directedRelation == DataTypes.RelationType.ancestor
                || directedRelation == DataTypes.RelationType.descendant
                || directedRelation == DataTypes.RelationType.sibling
                || directedRelation == DataTypes.RelationType.union);
    }

    public static RelationType getOpposingRelationType(RelationType relationType) {
        switch (relationType) {
            case ancestor:
                return DataTypes.RelationType.descendant;
            case descendant:
                return DataTypes.RelationType.ancestor;
        }
        return relationType;
    }

    public RelationTypeDefinition[] getReferenceRelations() {
        return new RelationTypeDefinition[]{};
    }
}
{'fraction_non_alphanumeric': 0.06983122362869199, 'fraction_numerical': 0.007805907172995781, 'mean_word_length': 2.889253486464315, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2558383', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1159, 'n_words': 439}