<commit_before>applications_root = node[:rails][:applications_root]

if node[:active_applications]
  node[:active_applications].each do |app, app_info|

    deploy_user = app_info['deploy_user'] || "deploy"
    env_vars = app_info["env_vars"] || {}
    template "#{applications_root}/#{app}/shared/.rbenv-vars" do
      source "app_env_vars.erb"
      mode 0600
      owner deploy_user
      group deploy_user
      variables env_vars: app_info["env_vars"]
    end<commit_msg>Fix env_vars variable. Should really do this in a PR :)<commit_after>applications_root = node[:rails][:applications_root]

if node[:active_applications]
  node[:active_applications].each do |app, app_info|

    deploy_user = app_info['deploy_user'] || "deploy"
    env_vars = app_info["env_vars"] || {}
    template "#{applications_root}/#{app}/shared/.rbenv-vars" do
      source "app_env_vars.erb"
      mode 0600
      owner deploy_user
      group deploy_user
      variables(env_vars: env_vars)
    end
{'fraction_non_alphanumeric': 0.12105798575788403, 'fraction_numerical': 0.008138351983723296, 'mean_word_length': 4.151832460732984, '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': '402060', 'n_tokens_mistral': 335, 'n_tokens_neox': 322, 'n_words': 64}