<commit_before>require "melatico/version"

module Melatico
  PICKS = 6
  NUMBERS_RANGE = (1..56)

  def self.draw(sets = 1)
    results = []
    until results.size == sets
      results << NUMBERS_RANGE.to_a.sample(PICKS).sort
      results = results.uniq
    end
    return results.flatten if sets == 1
    results
  end
end<commit_msg>Refactors logic after PR.<commit_after>require "melatico/version"

module Melatico
  PICKS = 6
  NUMBERS_RANGE = (1..56)

  def self.draw(sets = 1)
    return pick_numbers if sets == 1
    sets.times.map { pick_numbers }
  end

  private

  def self.pick_numbers
    NUMBERS_RANGE.to_a.sample(PICKS).sort
  end
end
{'fraction_non_alphanumeric': 0.0967741935483871, 'fraction_numerical': 0.018433179723502304, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '865093', 'n_tokens_mistral': 255, 'n_tokens_neox': 238, 'n_words': 55}