<commit_before>/*
 *                      Nividic development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the microarray platform
 * of the cole Normale Suprieure and the individual authors.
 * These should be listed in @author doc comments.
 *
 * For more information on the Nividic project and its aims,
 * or to join the Nividic mailing list, visit the home page
 * at:
 *
 *      http://www.transcriptome.ens.fr/nividic
 *
 */

package fr.ens.transcriptome.nividic.om.impl;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import fr.ens.transcriptome.nividic.om.BioAssay;
import fr.ens.transcriptome.nividic.om.BioAssayFactory;
import fr.ens.transcriptome.nividic.om.BioAssayRuntimeException;
import fr.ens.transcriptome.nividic.om.ExpressionMatrix;
import fr.ens.transcriptome.nividic.om.ExpressionMatrixDimension;
import fr.ens.transcriptome.nividic.om.ExpressionMatrixRuntimeException;
import fr.ens.transcriptome.nividic.om.translators.Translator;
import fr.ens.transcriptome.nividic.util.NividicUtils;

/**
 * This class implemenents a expression matrix dimension.
 * @author <NAME>
 */
public class ExpressionMatrixDimensionImpl implements
    ExpressionMatrixDimension, ExpressionMatrixListener {

  // private static final int INIRIAL_NON_ZERO_ODD_NUMMER = 11;
  // private static final int MULTIPLIER_NON_ZERO_ODD_NUMBER = 29;

  private String name;
  private ExpressionMatrixImpl matrix;

  private Set<ExpressionMatrixListener> listeners = new HashSet<ExpressionMatrixListener>();

  private Map<String, List<Double>> referencesToColumnNamesMap;<commit_msg>Update ExpressionMatrix listener model<commit_after>/*
 *                      Nividic development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the microarray platform
 * of the cole Normale Suprieure and the individual authors.
 * These should be listed in @author doc comments.
 *
 * For more information on the Nividic project and its aims,
 * or to join the Nividic mailing list, visit the home page
 * at:
 *
 *      http://www.transcriptome.ens.fr/nividic
 *
 */

package fr.ens.transcriptome.nividic.om.impl;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import fr.ens.transcriptome.nividic.om.BioAssay;
import fr.ens.transcriptome.nividic.om.BioAssayFactory;
import fr.ens.transcriptome.nividic.om.BioAssayRuntimeException;
import fr.ens.transcriptome.nividic.om.ExpressionMatrix;
import fr.ens.transcriptome.nividic.om.ExpressionMatrixDimension;
import fr.ens.transcriptome.nividic.om.ExpressionMatrixListener;
import fr.ens.transcriptome.nividic.om.ExpressionMatrixRuntimeException;
import fr.ens.transcriptome.nividic.om.translators.Translator;
import fr.ens.transcriptome.nividic.util.NividicUtils;

/**
 * This class implemenents a expression matrix dimension.
 * @author <NAME>
 */
public class ExpressionMatrixDimensionImpl implements
    ExpressionMatrixDimension, ExpressionMatrixListener {

  // private static final int INIRIAL_NON_ZERO_ODD_NUMMER = 11;
  // private static final int MULTIPLIER_NON_ZERO_ODD_NUMBER = 29;

  private String name;
  private ExpressionMatrixImpl matrix;

  private Set<ExpressionMatrixListener> listeners = new HashSet<ExpressionMatrixListener>();

  private Map<String, List<Double>> referencesToColumnNamesMap;
{'fraction_non_alphanumeric': 0.0827029752899647, 'fraction_numerical': 0.002017145738779627, 'mean_word_length': 4.517385257301808, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4048862', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1152, 'n_words': 326}