<commit_before>module Carto
  module Api
    class SnapshotPresenter
      def initialize(snapshot)
        @snapshot = snapshot
      end

      def self.collection_to_hash(snapshots)
        snapshots.map do |snapshot|
          SnapshotPresenter.new(snapshot).to_hash
        end
      end

      def to_hash
        {
          id: @snapshot.id,
          created_at: @snapshot.created_at,
          updated_at: @snapshot.updated_at,
          state: @snapshot.state,
          user: Carto::Api::UserPresenter.new(@snapshot.user).to_public_poro
        }
      end
    end
  end
end<commit_msg>remove .collection_to_hash method from snapshot presenter<commit_after>module Carto
  module Api
    class SnapshotPresenter
      def initialize(snapshot)
        @snapshot = snapshot
      end

      def to_hash
        {
          id: @snapshot.id,
          created_at: @snapshot.created_at,
          updated_at: @snapshot.updated_at,
          state: @snapshot.state,
          user: Carto::Api::UserPresenter.new(@snapshot.user).to_public_poro
        }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.07642725598526703, 'fraction_numerical': 0.0, 'mean_word_length': 2.0880681818181817, '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': '363007', 'n_tokens_mistral': 319, 'n_tokens_neox': 332, 'n_words': 66}