<commit_before>json.id           comment.id
json.created_at   comment.created_at
json.created_by do |json|
  json.partial! 'users/user_partial', user: comment.created_by
  json.authority comment.authority
end
json.opinion      comment.opinion #rename: "type"
json.content      comment.content
json.fact_data do |json|
  json.partial! 'facts/fact_data_partial', fact_data: comment.fact_data
end

json.opinions OpinionPresenter.new comment.opinion_object<commit_msg>Returning `negative_active` and `positive_active` for comments.<commit_after># HACK! Refactor this...
current_user_opinion =
  current_user.andand.graph_user.andand.opinion_on(comment)

negative_active =
  (current_user_opinion == :disbelieves) ? ' active' : ''

positive_active =
  (current_user_opinion == :believes) ? ' active' : ''


json.id           comment.id
json.created_at   comment.created_at
json.created_by do |json|
  json.partial! 'users/user_partial', user: comment.created_by
  json.authority comment.authority
end
json.opinion      comment.opinion #rename: "type"
json.content      comment.content
json.fact_data do |json|
  json.partial! 'facts/fact_data_partial', fact_data: comment.fact_data
end

json.opinions OpinionPresenter.new comment.opinion_object

json.negative_active negative_active
json.positive_active positive_active
{'fraction_non_alphanumeric': 0.09665144596651445, 'fraction_numerical': 0.0, 'mean_word_length': 5.032110091743119, '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': '5003490', 'n_tokens_mistral': 444, 'n_tokens_neox': 411, 'n_words': 84}