<commit_before>function releaseEditor(collectionId, data) {
  var setActiveTab, getActiveTab;
  var timeoutId;
  var pageDataRequests = [];
  var pages = {};

  $(".edit-accordion").on('accordionactivate', function (event, ui) {
    setActiveTab = $(".edit-accordion").accordion("option", "active");
    if (setActiveTab !== false) {
      Florence.globalVars.activeTab = setActiveTab;
    }
  });

  getActiveTab = Florence.globalVars.activeTab;
  accordion(getActiveTab);
  getLastPosition();

  $.load(processCollection(collectionId, 'noSave'));

  $("#title").on('input', function () {
    $data.description.title = $(this).val();
    clearTimeout(timeoutId);
    timeoutId = setTimeout(function () {
      autoSaveMetadata(collectionId, data);
    }, 3000);
  });

  dateTmp = data.description.releaseDate;
  var dateTmpFormatted = $.datepicker.formatDate('dd MM yy', new Date(dateTmp));
  $('#releaseDate').val(dateTmpFormatted).datepicker({dateFormat: 'dd MM yy'}).on('change', function () {
    var result = confirm('You will need to add an explanation for this change. Are you sure you want to proceed?');
    if (result === true) {
      saveOldDate(collectionId, data, dateTmp);<commit_msg>Add refresh content on load<commit_after>function releaseEditor(collectionId, data) {
  var setActiveTab, getActiveTab;
  var timeoutId;
  var pageDataRequests = [];
  var pages = {};

  $(".edit-accordion").on('accordionactivate', function (event, ui) {
    setActiveTab = $(".edit-accordion").accordion("option", "active");
    if (setActiveTab !== false) {
      Florence.globalVars.activeTab = setActiveTab;
    }
  });

  getActiveTab = Florence.globalVars.activeTab;
  accordion(getActiveTab);
  getLastPosition();

  processCollection(collectionId, 'noSave');

  $("#title").on('input', function () {
    $data.description.title = $(this).val();
    clearTimeout(timeoutId);
    timeoutId = setTimeout(function () {
      autoSaveMetadata(collectionId, data);
    }, 3000);
  });

  dateTmp = data.description.releaseDate;
  var dateTmpFormatted = $.datepicker.formatDate('dd MM yy', new Date(dateTmp));
  $('#releaseDate').val(dateTmpFormatted).datepicker({dateFormat: 'dd MM yy'}).on('change', function () {
    var result = confirm('You will need to add an explanation for this change. Are you sure you want to proceed?');
    if (result === true) {
      saveOldDate(collectionId, data, dateTmp);
{'fraction_non_alphanumeric': 0.1553156146179402, 'fraction_numerical': 0.0033222591362126247, 'mean_word_length': 4.475, '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': '7388107', 'n_tokens_mistral': 740, 'n_tokens_neox': 723, 'n_words': 161}