<commit_before>'use strict';
module.exports = function (str) {
  console.log(str || 'Rainbow');
};<commit_msg>sort algorithm<commit_after>'use strict';

/**
 * Bubble Sort with O(n^2) complexity
 * @param {Array} input array
 * @returns {Array} shell sorted array
*/

module.exports = function(arr) {
  var h = 1;
  while (h < arr.length / 3) {
    h = 3 * h + 1;
  }

  while (h > 0) {
    for (var i = h; i < arr.length; i += h) {
      for (var n = i; n > 0 && arr[n] < arr[n-h]; n -= h) {
        var arr = arr[n];
        arr[n] = arr[n-h];
        arr[n-h] = arr;
      }
    }
    h = --h / 3;
  }

  return arr;
};
{'fraction_non_alphanumeric': 0.19292604501607716, 'fraction_numerical': 0.012861736334405145, 'mean_word_length': 2.1624365482233503, 'pattern_counts': {'":': 0, '<': 6, '<?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': '4563349', 'n_tokens_mistral': 255, 'n_tokens_neox': 244, 'n_words': 70}