<commit_before>class Partybus::CommandRunner

  def run_command(command, options={})

    cwd     = options[:cwd]     || Dir.pwd
    env     = options[:env]     || ENV
    returns = options[:returns] || [0]

    Dir.chdir(cwd) do
      Bundler.clean_system(env, command)
    end

    exit_code = $?.exitstatus

    unless returns.include?(exit_code)
      raise "Partybus failed to execute command '#{command}' exitstatus: #{exit_code}"
    end
  end

end<commit_msg>Avoid deprecation warning when running partybus migrations<commit_after>class Partybus::CommandRunner

  def run_command(command, options={})

    cwd     = options[:cwd]     || Dir.pwd
    env     = options[:env]     || ENV
    returns = options[:returns] || [0]

    Dir.chdir(cwd) do
      Bundler.unbundled_system(env, command)
    end

    exit_code = $?.exitstatus

    unless returns.include?(exit_code)
      raise "Partybus failed to execute command '#{command}' exitstatus: #{exit_code}"
    end
  end

end
{'fraction_non_alphanumeric': 0.11800610376398779, 'fraction_numerical': 0.002034587995930824, 'mean_word_length': 3.1171548117154813, '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': '1208130', 'n_tokens_mistral': 319, 'n_tokens_neox': 310, 'n_words': 75}