<commit_before>/*
 *  MemoryAlleleDepth
 */
package net.maizegenetics.dna.snp.depth;

import net.maizegenetics.util.SuperByteMatrix;

/**
 * In memory allele depth class. In memory allele depth occupies 6-fold more
 * memory than the allele calls.
 *
 * @author <NAME>
 */
class MemoryAlleleDepth extends AbstractAlleleDepth {

    private final SuperByteMatrix[] myDepths;

    MemoryAlleleDepth(SuperByteMatrix[] depths) {
        super(6);
        myDepths = depths;
    }

    @Override
    public byte depthForAlleleByte(int taxon, int site, int allele) {
        return myDepths[taxon].get(site, allele);
    }
}<commit_msg>Corrected MemoryAlleleDepth constructor to dynamically get max number of alleles.<commit_after>/*
 *  MemoryAlleleDepth
 */
package net.maizegenetics.dna.snp.depth;

import net.maizegenetics.util.SuperByteMatrix;

/**
 * In memory allele depth class. In memory allele depth occupies 6-fold more
 * memory than the allele calls.
 *
 * @author <NAME>
 */
class MemoryAlleleDepth extends AbstractAlleleDepth {

    private final SuperByteMatrix[] myDepths;

    MemoryAlleleDepth(SuperByteMatrix[] depths) {
        super(depths[0].getNumColumns());
        myDepths = depths;
    }

    @Override
    public byte depthForAlleleByte(int taxon, int site, int allele) {
        return myDepths[taxon].get(site, allele);
    }
}
{'fraction_non_alphanumeric': 0.09615384615384616, 'fraction_numerical': 0.0029585798816568047, 'mean_word_length': 3.6335616438356166, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '934606', 'n_tokens_mistral': 441, 'n_tokens_neox': 412, 'n_words': 109}