<commit_before>ActivityLog.register(:blog_entry, BlogEntryLogDecorator, %{
  SELECT
    'blog_entry' AS type,
    updated_at AS created_at,
    (SELECT name FROM users WHERE id = updater_id) AS user_name,
    'updated' AS event,
    title AS name,
    id,
    NULL::integer AS parent_id
  FROM blog_entries
  ORDER BY updated_at
})
<commit_msg>Use update_status function in activity logs.<commit_after>ActivityLog.register(:blog_entry, BlogEntryLogDecorator, %{
  SELECT
    'blog_entry' AS type,
    updated_at AS created_at,
    (SELECT name FROM users WHERE id = updater_id) AS user_name,
    update_status(created_at, updated_at) AS event,
    title AS name,
    id,
    NULL::integer AS parent_id
  FROM blog_entries
  ORDER BY updated_at
})

{'fraction_non_alphanumeric': 0.0749665327978581, 'fraction_numerical': 0.0, 'mean_word_length': 3.986666666666667, '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': '2199095', 'n_tokens_mistral': 245, 'n_tokens_neox': 238, 'n_words': 72}