<commit_before>$(function() {
  var notes = (
      'Note: Uploading translation files will take several seconds, ' +
      'and may time out.  If this happens, you can try ' +
      'importing fewer languages at a time, or use the command ' +
      'line tool.  The tool and its instructions are in your ' +
      'CourseBuilder download in the file tools/i18n/i18n.py.');
  $('#cb-oeditor-form > fieldset')
      .append('<hr>')
      .append($('<div/>').text(notes))
      .append('<div id="translation_messages"/>');

  cb_global.onSaveComplete = function(payload) {
    $('#translation_messages')
        .empty()
        .append('<hr>');
    for (var i = 0; i < payload.messages.length; i++) {
      $('#translation_messages')
          .append($('<div/>').text(payload.messages[i]));
    }
  };
});<commit_msg>Show error messages on .po file upload separately to improve legibility. 	Change on 2014/10/03 by mgainer <<EMAIL>> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=76959628<commit_after>$(function() {
  var notes = (
      'Note: Uploading translation files will take several seconds, ' +
      'and may time out.  If this happens, you can try ' +
      'importing fewer languages at a time, or use the command ' +
      'line tool.  The tool and its instructions are in your ' +
      'CourseBuilder download in the file tools/i18n/i18n.py.');
  $('#cb-oeditor-form > fieldset')
      .append('<hr>')
      .append($('<div/>').text(notes))
      .append('<div id="translation_messages"/>');

  cb_global.onSaveComplete = function(payload) {
    $('#translation_messages')
        .empty()
        .append('<hr>');
    for (var i = 0; i < payload.messages.length; i++) {
      $('#translation_messages')
          .append($('<p/>').text(payload.messages[i]));
    }
  };
});
{'fraction_non_alphanumeric': 0.1714129244249726, 'fraction_numerical': 0.014238773274917854, 'mean_word_length': 2.8707627118644066, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3634275', 'n_tokens_mistral': 569, 'n_tokens_neox': 557, 'n_words': 155}