<commit_before>def selection_sort array
  0.upto(array.size-1) do |i|
    min = i
    (i+1).upto(array.size-1) do |j|
      min = j if (array[j] <=> array[min]) == -1
    end
    array[i], array[min] = array[min], array[i]
  end
  array
end<commit_msg>Compacted selection-sort.rb<commit_after>def selection_sort(array)
  0.upto(array.size - 1) do |i|
    min = i
    (i + 1).upto(array.size - 1) { |j| min = j if (array[j] <=> array[min]) == -1 }
    array[i], array[min] = array[min], array[i]
  end
  array
end

{'fraction_non_alphanumeric': 0.1871345029239766, 'fraction_numerical': 0.01949317738791423, 'mean_word_length': 3.015625, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1664353', 'n_tokens_mistral': 220, 'n_tokens_neox': 215, 'n_words': 50}