<commit_before>bash_it_version = version_string_for('bash_it')
bash_it_config = node['sprout']['bash_it']
bash_it_dir = bash_it_config['dir']

git "#{Chef::Config[:file_cache_path]}/bash_it" do
  repository bash_it_config['repository']
  revision bash_it_version
  destination "#{Chef::Config[:file_cache_path]}/bash_it"
  action :sync
end

directory bash_it_dir do
  owner node['current_user']
  mode '0777'
end

execute "Copying bash-it's .git to #{node['bash_it']['dir']}" do
  command "rsync -axSH #{Chef::Config[:file_cache_path]}/bash_it/ #{bash_it_dir}"
  user node['current_user']
end

template bash_it_config['bashrc_path'] do
  source 'bash_it/bashrc.erb'
  cookbook 'sprout-base'
  owner node['current_user']
  variables bash_it_dir: bash_it_dir, bash_it_theme: bash_it_config['theme']
  mode '0777'
end

include_recipe 'sprout-bash-it::custom_plugins'
include_recipe 'sprout-bash-it::enabled_plugins'<commit_msg>Do not use sprout-base cookbook for bashrc.erb file<commit_after>bash_it_version = version_string_for('bash_it')
bash_it_config = node['sprout']['bash_it']
bash_it_dir = bash_it_config['dir']

git "#{Chef::Config[:file_cache_path]}/bash_it" do
  repository bash_it_config['repository']
  revision bash_it_version
  destination "#{Chef::Config[:file_cache_path]}/bash_it"
  action :sync
end

directory bash_it_dir do
  owner node['current_user']
  mode '0777'
end

execute "Copying bash-it's .git to #{node['bash_it']['dir']}" do
  command "rsync -axSH #{Chef::Config[:file_cache_path]}/bash_it/ #{bash_it_dir}"
  user node['current_user']
end

template bash_it_config['bashrc_path'] do
  source 'bash_it/bashrc.erb'
  cookbook 'sprout-bash-it'
  owner node['current_user']
  variables bash_it_dir: bash_it_dir, bash_it_theme: bash_it_config['theme']
  mode '0777'
end

include_recipe 'sprout-bash-it::custom_plugins'
include_recipe 'sprout-bash-it::enabled_plugins'
{'fraction_non_alphanumeric': 0.13605082053996823, 'fraction_numerical': 0.008470089994706194, 'mean_word_length': 7.253275109170306, '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': '5767769', 'n_tokens_mistral': 760, 'n_tokens_neox': 699, 'n_words': 130}