<commit_before>define :openldap_set_config_admin_creds, :cn => nil, :password => <PASSWORD> do
  if `ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b "cn=config" "(olcRootPw=*)"` =~ /numEntries/
    openldap_execute_ldif do
      executable "ldapadd"
      source "deleteConfigAdminPassword.ldif"
      type :remote_file
    end
  end

  template ldif_filepath do
    source "setConfigAdminCreds.ldif.erb"
    variables(:config_admin_cn => params[:cn], :config_admin_password => params[:password])
  end

  openldap_execute_ldif do
    executable "ldapadd"
    source "setConfigAdminCreds.ldif.erb"
    type :template
    config_admin_cn params[:cn]
    config_admin_password params[:password]
  end
end<commit_msg>A template resource still hanging around which shouldn't have been there<commit_after>define :openldap_set_config_admin_creds, :cn => nil, :password => <PASSWORD> do
  if `ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b "cn=config" "(olcRootPw=*)"` =~ /numEntries/
    openldap_execute_ldif do
      executable "ldapadd"
      source "deleteConfigAdminPassword.ldif"
      type :remote_file
    end
  end

  openldap_execute_ldif do
    executable "ldapadd"
    source "setConfigAdminCreds.ldif.erb"
    type :template
    config_admin_cn params[:cn]
    config_admin_password params[:password]
  end
end
{'fraction_non_alphanumeric': 0.10107197549770292, 'fraction_numerical': 0.0, 'mean_word_length': 4.026923076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5831427', 'n_tokens_mistral': 454, 'n_tokens_neox': 446, 'n_words': 103}