<commit_before>module Dapp
  module Helper
    # Paint
    module Paint
      FORMAT = {
        step: [:yellow, :bold],
        info: [:blue],
        success: [:green, :bold],
        warning: [:red, :bold],
        secondary: [:white, :bold],
        default: [:white]
      }.freeze

      def paint_style_code(str)
        str[/\e\[(?:[0-9];?)+m/]
      end

      def paint_style(name)
        FORMAT[name].tap do |format|
          fail if format.nil?
        end
      end
<commit_msg>refactored<commit_after>module Dapp
  module Helper
    # Paint
    module Paint
      FORMAT = {
        step: [:yellow, :bold],
        info: [:blue],
        success: [:green, :bold],
        warning: [:red, :bold],
        secondary: [:white, :bold],
        default: [:white]
      }.freeze

      def paint_style(name)
        FORMAT[name].tap do |format|
          fail if format.nil?
        end
      end

{'fraction_non_alphanumeric': 0.14002205071664828, 'fraction_numerical': 0.002205071664829107, 'mean_word_length': 1.743202416918429, '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': '7214750', 'n_tokens_mistral': 311, 'n_tokens_neox': 292, 'n_words': 74}