<commit_before>f(UpgradeNode).
UpgradeNode = fun () ->
  case logplex_app:config(git_branch) of
      "v68" ->
          io:format(whereis(user), "at=upgrade_start cur_vsn=68~n", []);
      "v69" ->
          io:format(whereis(user),
                    "at=upgrade type=retry cur_vsn=68 old_vsn=69~n", []);
      Else ->
          io:format(whereis(user),
                    "at=upgrade_start old_vsn=~p abort=wrong_version", [tl(Else)]),
          erlang:error({wrong_version, Else})
  end,

  %% stateless
  l(logplex_shard),

  application:set_env(logplex, git_branch, "v69"),
  ok
end.

f(NodeVersions).
NodeVersions = fun () ->
                       lists:keysort(3,<commit_msg>Update the live_upgrade script.<commit_after>f(UpgradeNode).
UpgradeNode = fun () ->
  case logplex_app:config(git_branch) of
      "v68" ->
          io:format(whereis(user), "at=upgrade_start cur_vsn=68~n", []);
      "v69" ->
          io:format(whereis(user),
                    "at=upgrade type=retry cur_vsn=68 old_vsn=69~n", []);
      Else ->
          io:format(whereis(user),
                    "at=upgrade_start old_vsn=~p abort=wrong_version", [tl(Else)]),
          erlang:error({wrong_version, Else})
  end,

  %% stateless

  % Minor changes to the shard module, removing node folds
  l(logplex_shard),

  % Added the logplex canary api endpoints
  l(logplex_api),

  % Change to accomidate a changed crypto API
  l(logplex_http_drain),

  application:set_env(logplex, git_branch, "v69"),
  ok
end.

f(NodeVersions).
NodeVersions = fun () ->
                       lists:keysort(3,
{'fraction_non_alphanumeric': 0.1407828282828283, 'fraction_numerical': 0.016414141414141416, 'mean_word_length': 2.711943793911007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5981499', 'n_tokens_mistral': 591, 'n_tokens_neox': 545, 'n_words': 98}