<commit_before>#
# Cookbook Name:: web-development
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#

git "/Users/" + node["username"] + "/.rbenv" do
  repository "git://github.com/sstephenson/rbenv.git"
  reference "master"
  action :checkout
  user node["username"]
  group "staff"
end

directory "/Users/" + node["username"] + "/.rbenv/plugins" do
  owner node["username"]
  group "staff"
end

git "/Users/" + node["username"] + "/.rbenv/plugins/ruby-build" do
  repository "git://github.com/sstephenson/ruby-build.git"
  reference "master"
  action :checkout
  user node["username"]
  group "staff"
end

bash "Install rbenv" do
  cwd "/Users/" + node["username"] + "/.rbenv/plugins/ruby-build"
  code <<-EOH
    sudo ./install.sh
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ../../../.bash_profile
  EOH

  not_if "which rbenv"
end


bash "Download JsTestDriver" do
  cwd "/Users/" + node["username"] + "/java"
  code <<-EOC
    curl -O https://js-test-driver.googlecode.com/files/JsTestDriver-1.3.5.jar
    echo 'export JSTESTDRIVER_HOME="$HOME/java"' >> ../.bash_profile
  EOC
  creates "JsTestDriver-1.3.5.jar"
end

gem_package "jstdutil" do
  action :install
end
<commit_msg>apply the modifying of .bash_profile<commit_after>#
# Cookbook Name:: web-development
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#

git "/Users/" + node["username"] + "/.rbenv" do
  repository "git://github.com/sstephenson/rbenv.git"
  reference "master"
  action :checkout
  user node["username"]
  group "staff"
end

directory "/Users/" + node["username"] + "/.rbenv/plugins" do
  owner node["username"]
  group "staff"
end

git "/Users/" + node["username"] + "/.rbenv/plugins/ruby-build" do
  repository "git://github.com/sstephenson/ruby-build.git"
  reference "master"
  action :checkout
  user node["username"]
  group "staff"
end

bash "Install rbenv" do
  cwd "/Users/" + node["username"] + "/.rbenv/plugins/ruby-build"
  code <<-EOH
    sudo ./install.sh
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ../../../.bash_profile
    source ../../../.bash_profile
  EOH

  not_if "which rbenv"
end


bash "Download JsTestDriver" do
  cwd "/Users/" + node["username"] + "/java"
  code <<-EOC
    curl -O https://js-test-driver.googlecode.com/files/JsTestDriver-1.3.5.jar
    echo 'export JSTESTDRIVER_HOME="$HOME/java"' >> ../.bash_profile
  EOC
  creates "JsTestDriver-1.3.5.jar"
end

gem_package "jstdutil" do
  action :install
end

{'fraction_non_alphanumeric': 0.17013752455795678, 'fraction_numerical': 0.007858546168958742, 'mean_word_length': 3.498233215547703, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '5210554', 'n_tokens_mistral': 957, 'n_tokens_neox': 910, 'n_words': 216}