<commit_before>## Begin Xhprof manifest

if $php_values == undef {
  $php_values = hiera('php', false)
} if $xhprof_values == undef {
  $xhprof_values = hiera('xhprof', false)
} if $apache_values == undef {
  $apache_values = hiera('apache', false)
} if $nginx_values == undef {
  $nginx_values = hiera('nginx', false)
}

if hash_key_equals($xhprof_values, 'install', 1) and hash_key_equals($php_values, 'install', 1) {
  if $::operatingsystem == 'ubuntu' {
    apt::key { '<KEY>':
      key_server => 'hkp://keyserver.ubuntu.com:80'
    }

    apt::ppa { 'ppa:brianmercer/php5-xhprof': require => Apt::Key['<KEY>'] }
  }

  if hash_key_equals($apache_values, 'install', 1) {
    $xhprof_webroot_location = $puphpet::params::apache_webroot_location
    $xhprof_webserver_service = 'httpd'
  } elsif hash_key_equals($nginx_values, 'install', 1) {
    $xhprof_webroot_location = $puphpet::params::nginx_webroot_location
    $xhprof_webserver_service = 'nginx'
  } else {
    $xhprof_webroot_location = $xhprof_values['location']
    $xhprof_webserver_service = undef
  }

  ensure_packages( ['graphviz'] )

  class { 'puphpet::xhprof':
    php_version       => $php_values['version'],
    webroot_location  => $xhprof_webroot_location,
    webserver_service => $xhprof_webserver_service
  }
}<commit_msg>ensure_packages => ! defined()<commit_after>## Begin Xhprof manifest

if $php_values == undef {
  $php_values = hiera('php', false)
} if $xhprof_values == undef {
  $xhprof_values = hiera('xhprof', false)
} if $apache_values == undef {
  $apache_values = hiera('apache', false)
} if $nginx_values == undef {
  $nginx_values = hiera('nginx', false)
}

if hash_key_equals($xhprof_values, 'install', 1)
  and hash_key_equals($php_values, 'install', 1)
{
  if $::operatingsystem == 'ubuntu' {
    apt::key { '<KEY>':
      key_server => 'hkp://keyserver.ubuntu.com:80'
    }

    apt::ppa { 'ppa:brianmercer/php5-xhprof': require => Apt::Key['<KEY>'] }
  }

  if hash_key_equals($apache_values, 'install', 1) {
    $xhprof_webroot_location = $puphpet::params::apache_webroot_location
    $xhprof_webserver_service = 'httpd'
  } elsif hash_key_equals($nginx_values, 'install', 1) {
    $xhprof_webroot_location = $puphpet::params::nginx_webroot_location
    $xhprof_webserver_service = 'nginx'
  } else {
    $xhprof_webroot_location = $xhprof_values['location']
    $xhprof_webserver_service = undef
  }

  if ! defined(Package['graphviz']) {
    package { 'graphviz':
      ensure  => present,
    }
  }

  class { 'puphpet::xhprof':
    php_version       => $php_values['version'],
    webroot_location  => $xhprof_webroot_location,
    webserver_service => $xhprof_webserver_service
  }
}
{'fraction_non_alphanumeric': 0.1517292673856452, 'fraction_numerical': 0.005206396429899591, 'mean_word_length': 4.675105485232067, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '1118259', 'n_tokens_mistral': 1051, 'n_tokens_neox': 1007, 'n_words': 161}