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

import java.util.ArrayList;

/**
 *  Document   : KinTerms
 *  Created on : Mar 8, 2011, 2:13:30 PM
 *  Author     : <NAME>
 */
public class KinTerms {

    ArrayList<String[]> kinTermArray;

    public KinTerms() {
        //todo: sample kin terms to put into a sensible defaults place
        kinTermArray = new ArrayList<String[]>();
        kinTermArray.add(new String[]{"MM", "Grand Mother"});
        kinTermArray.add(new String[]{"MZ" + "|" + "FZ", "Aunt"});
        kinTermArray.add(new String[]{"MB" + "|" + "FB", "Uncle"});
        kinTermArray.add(new String[]{"FF", "Grand Father"});
    }

    public void addKinTerm(String kinTypeStrings, String kinTermLabel) {
        kinTermArray.add(new String[]{kinTypeStrings, kinTermLabel});
    }

    public void updateKinTerm(String kinTypeStrings, String kinTermLabel) {
        for (String[] kinTermItem : kinTermArray) {
            if (kinTermItem[1].equals(kinTermLabel)) {
                kinTermItem[0] = kinTypeStrings;
            }<commit_msg>Added ability to have multiple kin term groups in one diagram.<commit_after>package nl.mpi.kinnate.kintypestrings;

import java.util.ArrayList;

/**
 *  Document   : KinTerms
 *  Created on : Mar 8, 2011, 2:13:30 PM
 *  Author     : <NAME>
 */
public class KinTerms {

    public String titleString;
    ArrayList<String[]> kinTermArray;

    public KinTerms() {
        titleString="Sample Kin Terms";
        //todo: sample kin terms to put into a sensible defaults place
        kinTermArray = new ArrayList<String[]>();
        kinTermArray.add(new String[]{"MM", "Grand Mother"});
        kinTermArray.add(new String[]{"MZ" + "|" + "FZ", "Aunt"});
        kinTermArray.add(new String[]{"MB" + "|" + "FB", "Uncle"});
        kinTermArray.add(new String[]{"FF", "Grand Father"});
    }

    public void addKinTerm(String kinTypeStrings, String kinTermLabel) {
        kinTermArray.add(new String[]{kinTypeStrings, kinTermLabel});
    }

    public void updateKinTerm(String kinTypeStrings, String kinTermLabel) {
        for (String[] kinTermItem : kinTermArray) {
            if (kinTermItem[1].equals(kinTermLabel)) {
                kinTermItem[0] = kinTypeStrings;
            }
{'fraction_non_alphanumeric': 0.1368888888888889, 'fraction_numerical': 0.010666666666666666, 'mean_word_length': 3.063176895306859, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4937129', 'n_tokens_mistral': 725, 'n_tokens_neox': 679, 'n_words': 166}