<commit_before>step "Install development build of PuppetDB on the PuppetDB server" do
  os = test_config[:os_families][database.name]

  case test_config[:install_type]
  when :git
    raise "No PUPPETDB_REPO_PUPPETDB set" unless test_config[:repo_puppetdb]

    case os
    when :redhat, :fedora
      on database, "yum install -y git-core ruby rubygem-rake"
    when :debian
      on database, "apt-get install -y git-core ruby rake"
    else
      raise "OS #{os} not supported"
    end

    on database, "rm -rf #{GitReposDir}/puppetdb"
    repo = extract_repo_info_from(test_config[:repo_puppetdb].to_s)
    install_from_git database, GitReposDir, repo,
      :refspec => '+refs/pull/*:refs/remotes/origin/pr/*'

    if (test_config[:database] == :postgres)
      install_postgres(database)
    end
    install_puppetdb_via_rake(database)
    start_puppetdb(database)
    install_puppetdb_termini_via_rake(master, database)
  when :package
    Log.notify("Installing puppetdb from package; install mode: '#{test_config[:install_mode].inspect}'")

    install_puppetdb(database, test_config[:database])

    if test_config[:validate_package_version]
      validate_package_version(database)
    end<commit_msg>(maint) Fix old acceptance test refspec issue<commit_after>step "Install development build of PuppetDB on the PuppetDB server" do
  os = test_config[:os_families][database.name]

  case test_config[:install_type]
  when :git
    raise "No PUPPETDB_REPO_PUPPETDB set" unless test_config[:repo_puppetdb]

    case os
    when :redhat, :fedora
      on database, "yum install -y git-core ruby rubygem-rake"
    when :debian
      on database, "apt-get install -y git-core ruby rake"
    else
      raise "OS #{os} not supported"
    end

    on database, "rm -rf #{GitReposDir}/puppetdb"
    repo = extract_repo_info_from(test_config[:repo_puppetdb].to_s)
    install_from_git database, GitReposDir, repo,
      :refspec => '+refs/heads/*:refs/remotes/origin/* +refs/pull/*:refs/remotes/origin/pr/*'

    if (test_config[:database] == :postgres)
      install_postgres(database)
    end
    install_puppetdb_via_rake(database)
    start_puppetdb(database)
    install_puppetdb_termini_via_rake(master, database)
  when :package
    Log.notify("Installing puppetdb from package; install mode: '#{test_config[:install_mode].inspect}'")

    install_puppetdb(database, test_config[:database])

    if test_config[:validate_package_version]
      validate_package_version(database)
    end
{'fraction_non_alphanumeric': 0.10056089743589744, 'fraction_numerical': 0.0, 'mean_word_length': 4.21294363256785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5996677', 'n_tokens_mistral': 865, 'n_tokens_neox': 825, 'n_words': 186}