<commit_before>#
# Cookbook Name:: desktop
# Recipe:: default
#
# Copyright 2015, Your Name
#

packages = [
  # Basic packages
  "aptitude",
  "build-essential",
  "curl",
  "dkms",
  "git",
  "htop",
  "nfs-common",
  "nfs-kernel-server",
  "python-pip",
  "sl",
  "unzip",
  "vim",
  "zip",
  # Media packages
  "ubuntu-restricted-extras",
  "vlc"
]

packages.each do |pack|
  package pack
end

# AWS configuration
directory "#{ENV['HOME']}/.aws" do
  owner "#{node["user"]}"
  group "#{node["group"]}"
  mode '0775'
  action :create
end

template "#{ENV['HOME']}/.aws/config" do
  source "config.erb"
  owner "#{node["user"]}"
  group "#{node["group"]}"
  mode '0775'
end

template "#{ENV['HOME']}/.aws/credentials" do
  source "credentials.erb"
  owner "#{node["user"]}"
  group "#{node["group"]}"
  mode '0775'
end

execute "Install AWS-Cli" do
  command "pip install awscli"
  action :run
end

# RVM
execute "Install RVM" do
  command "curl -sSL https://get.rvm.io | bash -s stable --ruby"
  action :run
end

# Git configuration
template "#{ENV['HOME']}/.gitconfig" do
  source "gitconfig.erb"
end

# Ruby Gems
execute "Install Gems" do
  command "gem install --no-ri --no-rdoc bundler capistrano capistrano-ec2_tagged capistrano-symfony chef knife-ec2"
  action :run
end

# VagrantUp
execute "Install VagrantUp" do
  command "wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb && dpkg -i vagrant_1.7.2_x86_64.deb"
  action :run
end

# VirtualBox
execute "Install VirtualBox" do
  command "wget http://download.virtualbox.org/virtualbox/4.3.26/virtualbox-4.3_4.3.26-98988~Ubuntu~raring_amd64.deb && dpkg -i virtualbox-4.3_4.3.26-98988~Ubuntu~raring_amd64.deb"
  action :run
end<commit_msg>Added 'MySQL Workbench' tool<commit_after>#
# Cookbook Name:: desktop
# Recipe:: default
#
# Copyright 2015, Your Name
#

packages = [
  # Basic packages
  "aptitude",
  "build-essential",
  "curl",
  "dkms",
  "git",
  "htop",
  "nfs-common",
  "nfs-kernel-server",
  "python-pip",
  "sl",
  "unzip",
  "vim",
  "zip",
  # Media packages
  "ubuntu-restricted-extras",
  "vlc"
]

packages.each do |pack|
  package pack
end

# AWS configuration
directory "#{ENV['HOME']}/.aws" do
  owner "#{node["user"]}"
  group "#{node["group"]}"
  mode '0775'
  action :create
end

template "#{ENV['HOME']}/.aws/config" do
  source "config.erb"
  owner "#{node["user"]}"
  group "#{node["group"]}"
  mode '0775'
end

template "#{ENV['HOME']}/.aws/credentials" do
  source "credentials.erb"
  owner "#{node["user"]}"
  group "#{node["group"]}"
  mode '0775'
end

execute "Install AWS-Cli" do
  command "pip install awscli"
  action :run
end

# RVM
execute "Install RVM" do
  command "curl -sSL https://get.rvm.io | bash -s stable --ruby"
  action :run
end

# Git configuration
template "#{ENV['HOME']}/.gitconfig" do
  source "gitconfig.erb"
end

# Ruby Gems
execute "Install Gems" do
  command "gem install --no-ri --no-rdoc bundler capistrano capistrano-ec2_tagged capistrano-symfony chef knife-ec2"
  action :run
end

# VagrantUp
execute "Install VagrantUp" do
  command "wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb && dpkg -i vagrant_1.7.2_x86_64.deb"
  action :run
end

# VirtualBox
execute "Install VirtualBox" do
  command "wget http://download.virtualbox.org/virtualbox/4.3.26/virtualbox-4.3_4.3.26-98988~Ubuntu~raring_amd64.deb && dpkg -i virtualbox-4.3_4.3.26-98988~Ubuntu~raring_amd64.deb"
  action :run
end

# MySQL Workbench
execute "Install MySQL Workbench" do
  command "wget http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-6.3.3-1ubu1410-amd64.deb && dpkg -i mysql-workbench-community-6.3.3-1ubu1410-amd64.deb"
  action :run
end
{'fraction_non_alphanumeric': 0.1644131963223364, 'fraction_numerical': 0.038939967550027044, 'mean_word_length': 4.012195121951219, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6421473', 'n_tokens_mistral': 1559, 'n_tokens_neox': 1450, 'n_words': 332}