<commit_before><% mongrel_servers.times do |counter| -%>
  check process mongrel-<%=mongrel_port+counter%> with pidfile <%= mongrel_pid_dir %>/mongrel.<%=mongrel_port+counter%>.pid
	group mongrel_<%= application %>
	start program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails start -d -e production -a 127.0.0.1 -c <%= deploy_to %>/current --user <%= mongrel_user %> --group <%= mongrel_group %> -p <%=mongrel_port+counter%> -P <%= mongrel_pid_dir %>/mongrel.<%=mongrel_port+counter%>.pid -l <%= mongrel_log_dir %>/mongrel.<%=mongrel_port+counter%>.log"
	stop program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails stop -P <%= mongrel_pid_dir %>/mongrel.<%=mongrel_port+counter%>.pid"
	
	if failed host 127.0.0.1 port <%=mongrel_port+counter%> protocol http
    	with timeout 10 seconds
    	then alert

	if totalmem > 100 Mb then restart
	if cpu > 60% for 2 cycles then alert
	if cpu > 80% for 5 cycles then restart
	if loadavg(5min) > 10 for 8 cycles then restart
	if 3 restarts within 5 cycles then timeout

<% end -%><commit_msg>Commit some uncommited update from deprec2. It's so nice to give some love to centostrano after a while ;)<commit_after><% mongrel_servers.times do |counter| -%>
  check process mongrel-<%=mongrel_port+counter%> with pidfile <%= mongrel_pid_dir %>/mongrel.<%=mongrel_port+counter%>.pid
	group mongrel_<%= application %>
	start program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails cluster::start --clean -C <%= mongrel_conf %> --only <%=mongrel_port+counter%>"
	stop program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails cluster::stop -C <%= mongrel_conf %> --only <%=mongrel_port+counter%>"
		
	if failed host 127.0.0.1 port <%=mongrel_port+counter%> protocol http
    	with timeout 10 seconds
    	then alert

	if totalmem > 100 Mb then restart
	if cpu > 60% for 2 cycles then alert
	if cpu > 80% for 5 cycles then restart
	if loadavg(5min) > 10 for 8 cycles then restart
	if 3 restarts within 5 cycles then timeout

<% end -%>
{'fraction_non_alphanumeric': 0.14055415617128464, 'fraction_numerical': 0.026700251889168764, 'mean_word_length': 4.310160427807487, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '663660', 'n_tokens_mistral': 758, 'n_tokens_neox': 652, 'n_words': 204}