<commit_before>json.partial! 'app_review', app_review: app_feedback

json.comments do
  json.array! app_feedback[:comments] do |app_comment|
    json.partial! 'comment', app_comment: app_comment
  end
end<commit_msg>Filter out rejected comments from feedbacks<commit_after>json.partial! 'app_review', app_review: app_feedback

json.comments do
  json.array! app_feedback[:comments] do |app_comment|
    next if app_comment['status'] == 'rejected'
    json.partial! 'comment', app_comment: app_comment
  end
end
{'fraction_non_alphanumeric': 0.10588235294117647, 'fraction_numerical': 0.0, 'mean_word_length': 6.197183098591549, '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': '2406495', 'n_tokens_mistral': 164, 'n_tokens_neox': 159, 'n_words': 40}