<commit_before>//----------------------------------------------------------------------------//
//                                                                            //
//                             U n i t M o d e l                              //
//                                                                            //
//  Copyright (C) <NAME> 2000-2006. All rights reserved.               //
//  This software is released under the terms of the GNU General Public       //
//  License. Please contact the author at <EMAIL>           //
//  to report bugs & suggestions.                                             //
//----------------------------------------------------------------------------//
//
package omr.constant;

import omr.sheet.Scale;
import omr.sheet.Sheet;
import omr.sheet.SheetManager;

import omr.ui.treetable.AbstractTreeTableModel;
import omr.ui.treetable.TreeTableModel;

import omr.util.Logger;

import javax.swing.*;

/**
 * Class <code>UnitModel</code> implements a data model for units suitable for
 * use in a JTreeTable.
 *
 * <p>A row in the UnitModel can any instance of the 3 following types: <ul>
 *
 * <li><b>PackageNode</b> to represent a package. Its children rows can be
 * either (sub) PackageNodes or UnitNodes.
 *
 * <li><b>UnitNode</b> to represent a class that contains a ConstantSet or a
 * Logger or both. Its parent node is a PackageNode. Its children rows (if any)
 * are the Constants of its ConstantSet.
 *
 * <li><b>Constant</b> to represent a constant within a ConstantSet. In that
 * case, its parent node is a UnitNode. It has no children rows. </ul>
 *
 * @author <NAME>
 * @version $Id$
 */
public class UnitModel
    extends AbstractTreeTableModel
{
    //~ Static fields/initializers ---------------------------------------------

    private static final Logger logger = Logger.getLogger(UnitModel.class);

    //~ Enumerations -----------------------------------------------------------

    /**
     * Enumeration type to describe each column of the JTreeTable
     */
    private static enum Column {
        /**
         * The left column, assigned to tree structure, allows expansion and<commit_msg>Column enum redeclared as public<commit_after>//----------------------------------------------------------------------------//
//                                                                            //
//                             U n i t M o d e l                              //
//                                                                            //
//  Copyright (C) <NAME> 2000-2006. All rights reserved.               //
//  This software is released under the terms of the GNU General Public       //
//  License. Please contact the author at <EMAIL>           //
//  to report bugs & suggestions.                                             //
//----------------------------------------------------------------------------//
//
package omr.constant;

import omr.sheet.Scale;
import omr.sheet.Sheet;
import omr.sheet.SheetManager;

import omr.ui.treetable.AbstractTreeTableModel;
import omr.ui.treetable.TreeTableModel;

import omr.util.Logger;

import javax.swing.*;

/**
 * Class <code>UnitModel</code> implements a data model for units suitable for
 * use in a JTreeTable.
 *
 * <p>A row in the UnitModel can any instance of the 3 following types: <ul>
 *
 * <li><b>PackageNode</b> to represent a package. Its children rows can be
 * either (sub) PackageNodes or UnitNodes.
 *
 * <li><b>UnitNode</b> to represent a class that contains a ConstantSet or a
 * Logger or both. Its parent node is a PackageNode. Its children rows (if any)
 * are the Constants of its ConstantSet.
 *
 * <li><b>Constant</b> to represent a constant within a ConstantSet. In that
 * case, its parent node is a UnitNode. It has no children rows. </ul>
 *
 * @author <NAME>
 * @version $Id$
 */
public class UnitModel
    extends AbstractTreeTableModel
{
    //~ Static fields/initializers ---------------------------------------------

    private static final Logger logger = Logger.getLogger(UnitModel.class);

    //~ Enumerations -----------------------------------------------------------

    /**
     * Enumeration type to describe each column of the JTreeTable
     */
    public static enum Column {
        /**
         * The left column, assigned to tree structure, allows expansion and
{'fraction_non_alphanumeric': 0.20009136592051166, 'fraction_numerical': 0.004111466423024212, 'mean_word_length': 1.3108179419525066, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '654451', 'n_tokens_mistral': 1023, 'n_tokens_neox': 998, 'n_words': 391}