<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 Sup�rieure 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;

import java.util.HashMap;
import java.util.Map;

import fr.ens.transcriptome.nividic.NividicRuntimeException;
import fr.ens.transcriptome.nividic.om.HistoryEntry.HistoryActionResult;
import fr.ens.transcriptome.nividic.om.HistoryEntry.HistoryActionType;
import fr.ens.transcriptome.nividic.om.filters.BioAssayMerger;
import fr.ens.transcriptome.nividic.om.translators.Translator;
import fr.ens.transcriptome.nividic.util.MathUtils;
import fr.ens.transcriptome.nividic.util.NividicUtils;

/**
 * Utility class for handling BioAssayObject
 * @author <NAME>
 * @author <NAME>
 */
public final class BioAssayUtils {

  /** 6 bits mask. */
  private static final int MASK_6BITS = 0x3f;
  /** 10 bits mask. */
  private static final int MASK_10BITS = 0x3ff;
  /** Meta row mask. */
  private static final int MASK_META_ROW = 0xffffffc0;
  /** Meta column mask. */
  private static final int MASK_META_COLUMN = 0xfffff03f;
  /** Row mask. */
  private static final int MASK_ROW = 0xffc00fff;
  /** Column mask. */
  private static final int MASK_COL = 0x3fffff;
  /** Shift meta row. */
  private static final int SHIFT_META_ROW = 0;
  /** Shift meta colummn. */
  private static final int SHIFT_META_COLUMN = 6;
  /** Shift row. */
  private static final int SHIFT_ROW = 12;
  /** Shift column. */<commit_msg>Fix comment syntax.<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 Sup�rieure 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;

import java.util.HashMap;
import java.util.Map;

import fr.ens.transcriptome.nividic.NividicRuntimeException;
import fr.ens.transcriptome.nividic.om.HistoryEntry.HistoryActionResult;
import fr.ens.transcriptome.nividic.om.HistoryEntry.HistoryActionType;
import fr.ens.transcriptome.nividic.om.filters.BioAssayMerger;
import fr.ens.transcriptome.nividic.om.translators.Translator;
import fr.ens.transcriptome.nividic.util.MathUtils;
import fr.ens.transcriptome.nividic.util.NividicUtils;

/**
 * Utility class for handling BioAssayObject
 * @author <NAME>
 * @author <NAME>
 */
public final class BioAssayUtils {

  /** 6 bits mask. */
  private static final int MASK_6BITS = 0x3f;
  /** 10 bits mask. */
  private static final int MASK_10BITS = 0x3ff;
  /** Meta row mask. */
  private static final int MASK_META_ROW = 0xffffffc0;
  /** Meta column mask. */
  private static final int MASK_META_COLUMN = 0xfffff03f;
  /** Row mask. */
  private static final int MASK_ROW = 0xffc00fff;
  /** Column mask. */
  private static final int MASK_COL = 0x3fffff;
  /** Shift meta row. */
  private static final int SHIFT_META_ROW = 0;
  /** Shift meta column. */
  private static final int SHIFT_META_COLUMN = 6;
  /** Shift row. */
  private static final int SHIFT_ROW = 12;
  /** Shift column. */
{'fraction_non_alphanumeric': 0.09924038225925018, 'fraction_numerical': 0.0117618230825778, 'mean_word_length': 3.4857142857142858, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5325092', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1294, 'n_words': 406}