<commit_before>require 'weka/class_builder'

module Weka
  module Classifiers
    java_import 'weka.classifiers.Evaluation'

    class Evaluation
      include ClassBuilder

      # Use both nomenclatures f_measure and fmeasure for consistency
      # due to jruby's auto method generation of 'fMeasure' to 'f_measure' and
      # 'weightedFMeasure' to 'weighted_fmeasure'.
      alias weighted_f_measure      weighted_fmeasure<commit_msg>Fix warning: singleton on non-persistent Java type<commit_after>require 'weka/class_builder'
require 'weka/concerns'

module Weka
  module Classifiers
    java_import 'weka.classifiers.Evaluation'

    class Evaluation
      include ClassBuilder
      include Weka::Concerns::Persistent

      # Use both nomenclatures f_measure and fmeasure for consistency
      # due to jruby's auto method generation of 'fMeasure' to 'f_measure' and
      # 'weightedFMeasure' to 'weighted_fmeasure'.
      alias weighted_f_measure      weighted_fmeasure
{'fraction_non_alphanumeric': 0.05612244897959184, 'fraction_numerical': 0.0, 'mean_word_length': 3.8805970149253732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2344747', 'n_tokens_mistral': 291, 'n_tokens_neox': 266, 'n_words': 83}