<commit_before>module Asterisk
  class ARI
    abstract class Resources
      getter ari : ARI

      def initialize(@ari)
      end

      private def format_response
        # 200 or 201
        if (response.ok? || response.created?) && ! response.body.nil?
          response.from_json(response.body.to_s)
        else
          response
        end
      end
    end
  end
end

require "./resources/*"
<commit_msg>format_response needs an input data<commit_after>module Asterisk
  class ARI
    abstract class Resources
      getter ari : ARI

      def initialize(@ari)
      end

      private def format_response(response : HTTP::Client::Response)
        # 200 or 201
        if (response.ok? || response.created?) && ! response.body.nil?
          response.from_json(response.body.to_s)
        else
          response
        end
      end
    end
  end
end

require "./resources/*"

{'fraction_non_alphanumeric': 0.08174692049272117, 'fraction_numerical': 0.013437849944008958, 'mean_word_length': 2.01010101010101, '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': '6934037', 'n_tokens_mistral': 270, 'n_tokens_neox': 247, 'n_words': 71}