<commit_before>$.ajax('/versions.json')
  .done(function(data) {
    var versionSelectBox = $(".version-select");
    versionSelectBox.select2({
      data: data
    });
    var slugs = window.location.href.split('/');
    var currentRevision = slugs[slugs.length - 2];
    versionSelectBox.val(currentRevision).change();

    versionSelectBox.on('change', function() {
      var version = this.value;

      window.location = window.location.href.replace(currentRevision, version);
    });
  });
<commit_msg>move version for version switching to publishing step<commit_after>$.ajax('/versions.json')
  .done(function(data) {
    var versionSelectBox = $(".version-select");
    versionSelectBox.select2({
      data: data
    });
    var currentRevision = 'CURRENT_REVISION_WILL_APPEAR_HERE_WHEN_DEPLOYED';
    versionSelectBox.val(currentRevision).change();

    versionSelectBox.on('change', function() {
      var version = this.value;

      window.location = window.location.href.replace(currentRevision, version);
    });
  });

{'fraction_non_alphanumeric': 0.14492753623188406, 'fraction_numerical': 0.002898550724637681, 'mean_word_length': 3.7962962962962963, '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': '3395957', 'n_tokens_mistral': 313, 'n_tokens_neox': 301, 'n_words': 51}