<commit_before>require 'tmpdir'

Given /^I don't have a directory called '(.+)'$/ do |virtual_path|
  Dir.should_not exist(expand(virtual_path))
end

Given /^I delete '(.+)'$/ do |virtual_path|
  delete_path expand(virtual_path)
end<commit_msg>Add a step to remove an arbitrary directory<commit_after>require 'tmpdir'

Given /^I don't have a directory called '(.+)'$/ do |virtual_path|
  Dir.should_not exist(expand(virtual_path))
end

Given /^I delete '(.+)'$/ do |virtual_path|
  delete_path expand(virtual_path)
end

When /^I remove the directory "([^"]*)"$/ do |dir_name|
  in_current_dir do
    # FileUtils#rmdir cannot delete non-empty directories.
    FileUtils.rm_r(dir_name)
  end
end
{'fraction_non_alphanumeric': 0.13852813852813853, 'fraction_numerical': 0.0, 'mean_word_length': 4.931623931623932, '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': '5207030', 'n_tokens_mistral': 255, 'n_tokens_neox': 237, 'n_words': 68}