<commit_before>require 'json'

rightscale_marker :begin

users = JSON.parse(node[:postfix][:users])
users.each do | username, options |
  if options.has_key?("shell")
    shell = "-s #{v['shell']}"
  else
    shell = "-s /sbin/nologin"
  end
  execute "useradd" do
   command "useradd -m #{shell} #{username}"
   creates "/home/#{username}"
  end
  template "/home/#{username}/.forward" do
    source "forward.erb"
    variables(
      :deploy_dir => node[:postfix][:deploy_dir],
      :username => username
    )
  end
  cookbook_file "#{node[:postfix][:deploy_dir]}/#{username}.pl" do
    source "#{username}.pl"
    mode "0644"
  end
end

rightscale_marker :end<commit_msg>permissions for perl scripts<commit_after>require 'json'

rightscale_marker :begin

users = JSON.parse(node[:postfix][:users])
users.each do | username, options |
  if options.has_key?("shell")
    shell = "-s #{v['shell']}"
  else
    shell = "-s /sbin/nologin"
  end
  execute "useradd" do
   command "useradd -m #{shell} #{username}"
   creates "/home/#{username}"
  end
  template "/home/#{username}/.forward" do
    source "forward.erb"
    mode "755"
    variables(
      :deploy_dir => node[:postfix][:deploy_dir],
      :username => username
    )
  end
  cookbook_file "#{node[:postfix][:deploy_dir]}/#{username}.pl" do
    source "#{username}.pl"
    mode "0755"
  end
end

rightscale_marker :end
{'fraction_non_alphanumeric': 0.1649782923299566, 'fraction_numerical': 0.007959479015918957, 'mean_word_length': 3.61, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '394181', 'n_tokens_mistral': 490, 'n_tokens_neox': 481, 'n_words': 110}