<commit_before>$('<%= "#answer_#{@answer.id}"%>').replaceWith(
    '<%= escape_javascript(render partial: 'course/assessment/answer/answer', object: @new_answer) %>'
);

<% if @assessment.guided? && guided_next_unanswered_question.nil? %>
  $('input.finalise').show();
<% end %><commit_msg>Shorten expected value text when answer is reloaded.<commit_after>$('<%= "#answer_#{@answer.id}"%>').replaceWith(
    '<%= escape_javascript(render partial: 'course/assessment/answer/answer', object: @new_answer) %>'
);

<% if @assessment.guided? && guided_next_unanswered_question.nil? %>
  $('input.finalise').show();
<% end %>

$('.expected').shorten({
  'showChars': 140,
  'moreText': I18n.t('common.show_more'),
  'lessText': I18n.t('common.show_less')
});
{'fraction_non_alphanumeric': 0.22872340425531915, 'fraction_numerical': 0.009308510638297872, 'mean_word_length': 6.53, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1117340', 'n_tokens_mistral': 280, 'n_tokens_neox': 258, 'n_words': 38}