<commit_before>require 'eye-http'

# Setups Eye global conf if not already
Eye.config do
  logger '/var/log/eye-global.log'
  http :enable => true, :host => "0.0.0.0", :port => 12345
end

# Adding application
Eye.application '<%= fetch(:application)%>' do
  load_env '<%= shared_path %>/.rbenv-vars'

  env RBENV_ROOT: "<%= fetch(:rbenv_path) %>"
  env RBENV_VERSION: "<%=fetch(:rbenv_ruby) %>"
  env RAILS_ENV: "<%= fetch(:rails_env) %>"

  # All options inherits down to the config leafs.
  # except `env`, which merging down
  working_dir '<%= current_path %>'
  stdall '<%= shared_path %>/log/eye.log'

  trigger :flapping, times: 10, within: 1.minute, retry_in: 10.minutes

  check :cpu, every: 10.seconds, below: 100, times: 3 # global check for all processes

<% processes.each do |process_name, options| -%><commit_msg>chore(eye): remove eye-http support from the application template<commit_after># Adding application
Eye.application '<%= fetch(:application)%>' do
  load_env '<%= shared_path %>/.rbenv-vars'

  env RBENV_ROOT: "<%= fetch(:rbenv_path) %>"
  env RBENV_VERSION: "<%=fetch(:rbenv_ruby) %>"
  env RAILS_ENV: "<%= fetch(:rails_env) %>"

  # All options inherits down to the config leafs.
  # except `env`, which merging down
  working_dir '<%= current_path %>'
  stdall '<%= shared_path %>/log/eye.log'

  trigger :flapping, times: 10, within: 1.minute, retry_in: 10.minutes

  check :cpu, every: 10.seconds, below: 100, times: 3 # global check for all processes

<% processes.each do |process_name, options| -%>
{'fraction_non_alphanumeric': 0.16177429876060012, 'fraction_numerical': 0.020221787345075015, 'mean_word_length': 4.557971014492754, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6714551', 'n_tokens_mistral': 592, 'n_tokens_neox': 517, 'n_words': 149}