<commit_before>"use strict";
/*global alert: true, ODSA */
(function ($) {
  $(document).ready(function () {
    // Process About button: Pop up a message with an Alert
    function about() {
      alert(ODSA.AV.aboutstring(interpret(".avTitle"), interpret("av_Authors")));
    }

    // Insertion Sort
    function inssort() {
      var i, j;
      jsav.umsg(interpret("av_c3"));
      pseudo.setCurrentLine(0);
      arr.highlight([0]);
      arr.highlightBlue(1);
      jsav.step();
      for (i = 1; i < arr.size(); i++) { // Insert i'th record
        arr.highlightBlue(i);
        jsav.umsg(interpret("av_c4"));
        pseudo.setCurrentLine(1);
        jsav.step();
        jsav.umsg(interpret("av_c5"));
        pseudo.setCurrentLine(2);
        jsav.step();
        for (j = i; (j > 0) && (arr.value(j) < arr.value(j - 1)); j--) {
          arr.highlightBlue(j);
          arr.swap(j, j - 1); // swap the two indices
          arr.highlight(j).unhighlight(j - 1); // set highlights correctly
          arr.highlightBlue(j - 1);
          jsav.umsg("Swap");
          pseudo.setCurrentLine(3);
          jsav.step();
        }
        arr.highlight(j);
      }
      pseudo.setCurrentLine(4);
      jsav.umsg("Done sorting!");
    }

    // Execute the "Run" button function
    function runIt() {
      var arrValues = ODSA.AV.processArrayValues();
<commit_msg>Forgot some translation strings in InsertionSortAV<commit_after>"use strict";
/*global alert: true, ODSA */
(function ($) {
  $(document).ready(function () {
    // Process About button: Pop up a message with an Alert
    function about() {
      alert(ODSA.AV.aboutstring(interpret(".avTitle"), interpret("av_Authors")));
    }

    // Insertion Sort
    function inssort() {
      var i, j;
      jsav.umsg(interpret("av_c3"));
      pseudo.setCurrentLine(0);
      arr.highlight([0]);
      arr.highlightBlue(1);
      jsav.step();
      for (i = 1; i < arr.size(); i++) { // Insert i'th record
        arr.highlightBlue(i);
        jsav.umsg(interpret("av_c4"));
        pseudo.setCurrentLine(1);
        jsav.step();
        jsav.umsg(interpret("av_c5"));
        pseudo.setCurrentLine(2);
        jsav.step();
        for (j = i; (j > 0) && (arr.value(j) < arr.value(j - 1)); j--) {
          arr.highlightBlue(j);
          arr.swap(j, j - 1); // swap the two indices
          arr.highlight(j).unhighlight(j - 1); // set highlights correctly
          arr.highlightBlue(j - 1);
          jsav.umsg(interpret("av_c6"));
          pseudo.setCurrentLine(3);
          jsav.step();
        }
        arr.highlight(j);
      }
      pseudo.setCurrentLine(4);
      jsav.umsg(interpret("av_c2"));
    }

    // Execute the "Run" button function
    function runIt() {
      var arrValues = ODSA.AV.processArrayValues();

{'fraction_non_alphanumeric': 0.16439828080229227, 'fraction_numerical': 0.012177650429799427, 'mean_word_length': 2.2140391254315306, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4485447', 'n_tokens_mistral': 936, 'n_tokens_neox': 907, 'n_words': 186}