<commit_before>//----------------------------------------------------------------------------//
//                                                                            //
//                            E v a l u a t i o n                             //
//                                                                            //
//  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.glyph;


/**
 * Class <code>Evaluation</code> gathers a pair composed of a glyph shape and
 * its grade.
 *
 * @author <NAME>
 * @version $Id$
 */
public class Evaluation
{
    //~ Instance fields --------------------------------------------------------

    /** The evaluated shape */
    public Shape shape;

    /** The evaluation grade (smaller is better) */
    public double grade;

    //~ Constructors -----------------------------------------------------------

    //------------//
    // Evaluation //
    //------------//
    /**
     * Create an uninitialized evaluation
     */
    public Evaluation ()
    {
    }

    //------------//
    // Evaluation //
    //------------//
    /**
     * Create an initialized evaluation
     *
     * @param shape the shape this evaluation measures
     * @param grade the measurement result (smaller is better)
     */
    public Evaluation (Shape  shape,
                       double grade)
    {
        this.shape = shape;
        this.grade = grade;
    }

    //~ Methods ----------------------------------------------------------------

    /**
     * Just a readable output
     *
     * @return an ascii description of the evaluation
     */
    @Override
    public String toString ()
    {
        StringBuffer sb = new StringBuffer();
        sb.append(shape);
        sb.append("(")
          .append((float) grade)
          .append(")");

        return sb.toString();
    }
}
<commit_msg>Use doubt instead of grade<commit_after>//----------------------------------------------------------------------------//
//                                                                            //
//                            E v a l u a t i o n                             //
//                                                                            //
//  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.glyph;


/**
 * Class <code>Evaluation</code> gathers a pair composed of a glyph shape and
 * its doubt.
 *
 *
 * @author <NAME>
 * @version $Id$
 */
public class Evaluation
{
    //~ Static fields/initializers ---------------------------------------------

    /** Absolutely no doubt for shape manually assigned */
    public static final double MANUAL_NO_DOUBT = -1;

    /** No doubt for shape structurally assigned */
    public static final double NO_DOUBT = 0;

    //~ Instance fields --------------------------------------------------------

    /** The evaluated shape */
    public Shape shape;

    /** The evaluation doubt (smaller is better) */
    public double doubt;

    //~ Constructors -----------------------------------------------------------

    //------------//
    // Evaluation //
    //------------//
    /**
     * Create an initialized evaluation
     *
     *
     * @param shape the shape this evaluation measures
     * @param doubt the measurement result (smaller is better)
     */
    public Evaluation (Shape  shape,
                       double grade)
    {
        this.shape = shape;
        this.doubt = grade;
    }

    //~ Methods ----------------------------------------------------------------

    /**
     * Just a readable output
     *
     * @return an ascii description of the evaluation
     */
    @Override
    public String toString ()
    {
        StringBuffer sb = new StringBuffer();
        sb.append(shape);
        sb.append("(")
          .append((float) doubt)
          .append(")");

        return sb.toString();
    }
}

{'fraction_non_alphanumeric': 0.2610609729253797, 'fraction_numerical': 0.003962139555359894, 'mean_word_length': 0.8132482043096568, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5610022', 'n_tokens_mistral': 982, 'n_tokens_neox': 925, 'n_words': 314}