<commit_before>webdriver_location = "http://selenium.googlecode.com/files/chromedriver_mac_13.0.775.0.zip"

run_unless_marker_file_exists("selenium_webdriver_13_0_775") do
  execute "download webdriver" do
    command "curl -o /tmp/webdriver.zip #{webdriver_location}"
    user WS_USER
  end
  
  execute "unzip" do
    command "unzip -o /tmp/webdriver.zip chromedriver -d /usr/bin/"
  end
end<commit_msg>updating webdriver recipe to make symlinks<commit_after>webdriver_location = "http://selenium.googlecode.com/files/chromedriver_mac_13.0.775.0.zip"

run_unless_marker_file_exists("selenium_webdriver_13_0_775_3") do
  execute "download webdriver" do
    command "curl -o /tmp/webdriver.zip #{webdriver_location}"
    user WS_USER
  end
  
  execute "unzip" do
    command "unzip -o /tmp/webdriver.zip chromedriver -d /usr/bin/"
  end
end

file "/usr/bin/chromedriver" do
  mode "0755"
end

execute "create chromium.app symlink" do
  command 'rm  -f "/Applications/Chromium.app" && ln -s "/Applications/Google Chrome.app" "/Applications/Chromium.app"'
end

execute "create contents symlink" do
  command 'rm -f "/Applications/Chromium.app/Contents/MacOS/Chromium" && ln -s "/Applications/Chromium.app/Contents/MacOS/Google Chrome" "/Applications/Chromium.app/Contents/MacOS/Chromium"'
end
{'fraction_non_alphanumeric': 0.11696359411309062, 'fraction_numerical': 0.024012393493415957, 'mean_word_length': 4.451476793248945, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3283772', 'n_tokens_mistral': 489, 'n_tokens_neox': 453, 'n_words': 96}