<commit_before>SELECT
  workouts.name as workout_name,
  to_char(workouts.date, 'YYYY-MM-DD') as workout_date,
  workout_activities.comment,
  workout_activities.sets
FROM
  workouts,
  jsonb_to_recordset(workouts.activities) AS workout_activities(id uuid, comment text, sets jsonb)
WHERE
    workouts.user_id = ${user_id}
  AND
    workout_activities.id in (SELECT id FROM activities WHERE activity_id = ${id} or id = ${id})<commit_msg>include all aliases in history<commit_after>SELECT
  workouts.name as workout_name,
  to_char(workouts.date, 'YYYY-MM-DD') as workout_date,
  workout_activities.comment,
  workout_activities.sets
FROM
  workouts,
  jsonb_to_recordset(workouts.activities) AS workout_activities(id uuid, comment text, sets jsonb)
WHERE
    workouts.user_id = ${user_id}
  AND
    workout_activities.id in (
      SELECT activities.id
      FROM activities
      LEFT JOIN activities AS aliases ON aliases.activity_id = activities.id
      WHERE
        activities.activity_id = ${id}
        OR
        activities.id = ${id}
        OR
        aliases.id = ${id}
    )
{'fraction_non_alphanumeric': 0.08555657773689053, 'fraction_numerical': 0.0, 'mean_word_length': 3.689655172413793, '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': '6580049', 'n_tokens_mistral': 358, 'n_tokens_neox': 362, 'n_words': 86}