<commit_before>property :enable_discovery, kind_of: [TrueClass, FalseClass], default: false
property :lumberjack_port

load_current_value do
  if ::File.exist?('/etc/logstash-forwarder.conf') and node['commons']['logstash'] and node['commons']['logstash']['ec2'] and node['commons']['logstash']['ec2']['run_discovery']
    enable_discovery true
  end
end

action :run do
  logstash_servers = []

  # Run EC2 discovery
  ec2_discovery_output = Ec2Discovery.discover(node['commons']['ec2_discovery'])
<commit_msg>adding defautl action for logstash<commit_after>property :enable_discovery, kind_of: [TrueClass, FalseClass], default: false
property :lumberjack_port

load_current_value do
  if ::File.exist?('/etc/logstash-forwarder.conf') and node['commons']['logstash'] and node['commons']['logstash']['ec2'] and node['commons']['logstash']['ec2']['run_discovery']
    enable_discovery true
  end
end

default_action :run

action :run do
  logstash_servers = []

  # Run EC2 discovery
  ec2_discovery_output = Ec2Discovery.discover(node['commons']['ec2_discovery'])

{'fraction_non_alphanumeric': 0.14567669172932332, 'fraction_numerical': 0.011278195488721804, 'mean_word_length': 7.4523809523809526, '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': '3807166', 'n_tokens_mistral': 350, 'n_tokens_neox': 339, 'n_words': 70}