<commit_before>module Queries
  module SubComments
    class Index
      include Pavlov::Query
      arguments :parent_ids_in, :parent_class

      def execute
        sub_comments.map do |sub_comment|
          KillObject.sub_comment sub_comment
        end
      end

      def sub_comments
        SubComment.where(parent_class: parent_class)
                  .any_in(parent_id: parent_ids)
                  .asc(:created_at)
      end

      def parent_ids
        ids = Array(parent_ids_in)
      end
    end
  end
end<commit_msg>Fixed bug<commit_after>module Queries
  module SubComments
    class Index
      include Pavlov::Query
      arguments :parent_ids_in, :parent_class

      def execute
        sub_comments.map do |sub_comment|
          KillObject.sub_comment sub_comment
        end
      end

      def sub_comments
        SubComment.any_in(parent_id: parent_ids)
                  .asc(:created_at)
      end

      def parent_ids
        ids = Array(parent_ids_in)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.049164208456243856, 'fraction_numerical': 0.0, 'mean_word_length': 1.9507246376811593, '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': '3743073', 'n_tokens_mistral': 304, 'n_tokens_neox': 292, 'n_words': 70}