<commit_before>Puppet::Type.newtype(:sensu_api_validator) do
  desc <<-DESC
Verify that a connection can be successfully established between a node
and the sensu-backend server.  Its primary use is as a precondition to
prevent configuration changes from being applied if the sensu_backend
server cannot be reached, but it could potentially be used for other
purposes such as monitoring.

@example Verify API connectivity to localhost:8080
  sensu_api_validator { 'sensu':
    sensu_api_server => 'localhost',
    sensu_api_ort    => 8080,
  }
DESC

  ensurable do
    defaultvalues
    defaultto :present
  end

  newparam(:name, :namevar => true) do
    desc 'An arbitrary name used as the identity of the resource.'
  end

  newparam(:sensu_api_server) do
    desc 'The DNS name or IP address of the server where sensu_api should be running.'
    defaultto 'localhost'
  end

  newparam(:sensu_api_port) do
    desc 'The port that the sensu_api server should be listening on.'
    defaultto '8080'
  end<commit_msg>Defaults removed, mostly just to appease puppet strings<commit_after>Puppet::Type.newtype(:sensu_api_validator) do
  desc <<-DESC
Verify that a connection can be successfully established between a node
and the sensu-backend server.  Its primary use is as a precondition to
prevent configuration changes from being applied if the sensu_backend
server cannot be reached, but it could potentially be used for other
purposes such as monitoring.

@example Verify API connectivity to localhost:8080
  sensu_api_validator { 'sensu':
    sensu_api_server => 'localhost',
    sensu_api_ort    => 8080,
  }
DESC

  ensurable

  newparam(:name, :namevar => true) do
    desc 'An arbitrary name used as the identity of the resource.'
  end

  newparam(:sensu_api_server) do
    desc 'The DNS name or IP address of the server where sensu_api should be running.'
    defaultto 'localhost'
  end

  newparam(:sensu_api_port) do
    desc 'The port that the sensu_api server should be listening on.'
    defaultto '8080'
  end
{'fraction_non_alphanumeric': 0.05725567620927937, 'fraction_numerical': 0.011846001974333662, 'mean_word_length': 4.105793450881612, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '7574136', 'n_tokens_mistral': 610, 'n_tokens_neox': 575, 'n_words': 249}