<commit_before>#
# Cookbook Name:: cookbooks/micro-qa
# Recipe:: default
#
# Copyright 2014, Eucalyptus Systems
#
# All rights reserved - Do Not Redistribute
#

package 'git'
git "/vagrant" do
  repository "https://github.com/eucalyptus/micro-qa.git"
  not_if "ls /vagrant"
end

if platform?("redhat", "centos", "fedora")
  remote_file "/tmp/epel-release.rpm" do
    source "http://downloads.eucalyptus.com/software/eucalyptus/3.4/centos/6/x86_64/epel-release-6.noarch.rpm"
    not_if "rpm -qa | grep 'epel-release'"
  end
  execute 'yum install -y *epel*.rpm' do
    cwd '/tmp'
    not_if "ls /etc/yum.repos.d/epel*"
  end
elsif platform?("ubuntu", "debian")
  # code for debian
end<commit_msg>Create rsa keypair on the box<commit_after>#
# Cookbook Name:: cookbooks/micro-qa
# Recipe:: default
#
# Copyright 2014, Eucalyptus Systems
#
# All rights reserved - Do Not Redistribute
#

package 'git'
git "/vagrant" do
  repository "https://github.com/eucalyptus/micro-qa.git"
  not_if "ls /vagrant"
end

if platform?("redhat", "centos", "fedora")
  remote_file "/tmp/epel-release.rpm" do
    source "http://downloads.eucalyptus.com/software/eucalyptus/3.4/centos/6/x86_64/epel-release-6.noarch.rpm"
    not_if "rpm -qa | grep 'epel-release'"
  end
  execute 'yum install -y *epel*.rpm' do
    cwd '/tmp'
    not_if "ls /etc/yum.repos.d/epel*"
  end
  execute "generate ssh keys" do
    command "ssh-keygen -t rsa -q -f /root/.ssh/id_rsa -P \"\""
    creates "/root/.ssh/id_rsa.pub"
  end
elsif platform?("ubuntu", "debian")
  # code for debian
end
{'fraction_non_alphanumeric': 0.15275080906148866, 'fraction_numerical': 0.015533980582524271, 'mean_word_length': 3.56047197640118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3936778', 'n_tokens_mistral': 654, 'n_tokens_neox': 611, 'n_words': 142}