<commit_before>require 'yaml'
require 'json'

module Knapsack
  class Presenter
    class << self
      def report_yml
        Knapsack.tracker.spec_files_with_time.to_yaml
      end

      def report_json
        JSON.pretty_generate(Knapsack.tracker.spec_files_with_time)
      end

      def global_time
        "Knapsack global time execution for specs: #{Knapsack.tracker.global_time}s"
      end

      def report_details
        "Knapsack report was generated. Preview:\n" + Presenter.report_json
      end
    end
  end
end
<commit_msg>Move report details above the gobal time method<commit_after>require 'yaml'
require 'json'

module Knapsack
  class Presenter
    class << self
      def report_yml
        Knapsack.tracker.spec_files_with_time.to_yaml
      end

      def report_json
        JSON.pretty_generate(Knapsack.tracker.spec_files_with_time)
      end

      def report_details
        "Knapsack report was generated. Preview:\n" + Presenter.report_json
      end

      def global_time
        "Knapsack global time execution for specs: #{Knapsack.tracker.global_time}s"
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0570409982174688, 'fraction_numerical': 0.0, 'mean_word_length': 2.6699346405228757, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5906164', 'n_tokens_mistral': 367, 'n_tokens_neox': 346, 'n_words': 87}