<commit_before># This is just a collection of handy methods to use while writing tasks
module Caplets::Utils
  def rake(cmd)
    run_current [
      "RAILS_ENV=#{fetch(:environment)}",
      fetch(:bin_cmd,''),
      fetch(:rake, 'rake'),
      cmd
    ].join(' ')
  end

  def run_current(*cmds)
    run ["cd #{fetch(:current_path)}"].concat(cmds).join(' && ')
  end

  def run_multi(*cmds)
    run cmds.join(' ; ')
  end
end<commit_msg>rake no longer auto-prepends bundle exec.<commit_after># This is just a collection of handy methods to use while writing tasks
module Caplets::Utils
  def rake(cmd)
    run_current [
      "RAILS_ENV=#{fetch(:environment)}",
      fetch(:rake, 'rake'),
      cmd
    ].join(' ')
  end

  def run_current(*cmds)
    run ["cd #{fetch(:current_path)}"].concat(cmds).join(' && ')
  end

  def run_multi(*cmds)
    run cmds.join(' ; ')
  end
end
{'fraction_non_alphanumeric': 0.1560364464692483, 'fraction_numerical': 0.0, 'mean_word_length': 3.3300492610837438, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3786139', 'n_tokens_mistral': 299, 'n_tokens_neox': 293, 'n_words': 79}