<commit_before>*** Settings ***
Library       OperatingSystem

*** Variables ***
${MONITOR_JAR}    ../target/ClickMonitor-1.0-SNAPSHOT.jar
${REDIES_CLIENT}    redis-cli

			
*** Keywords ***
Cleanup all alarm data
	Run    ${REDIES_CLIENT} -n 2 FLUSHDB

Process click log
	[Arguments]   ${click_log}   ${alarm_log}
	${rc}   ${output}   Run And Return Rc And Output	java -jar ${MONITOR_JAR} -file ${click_log} -output ${alarm_log}
	Log   ${output}
	Should be equal as Integers   0   ${rc}
	<commit_msg>增加REDIES_HOST 配置在测试<commit_after>*** Settings ***
Library       OperatingSystem

*** Variables ***
${MONITOR_JAR}    ../target/ClickMonitor-1.0-SNAPSHOT.jar
${REDIES_CLIENT}    redis-cli
${REDIES_HOST}    127.0.0.1

			
*** Keywords ***
Cleanup all alarm data
	Run    ${REDIES_CLIENT} -h REDIES_HOST -n 2 FLUSHDB

Process click log
	[Arguments]   ${click_log}   ${alarm_log}
	${rc}   ${output}   Run And Return Rc And Output	java -jar ${MONITOR_JAR} -file ${click_log} -output ${alarm_log}
	Log   ${output}
	Should be equal as Integers   0   ${rc}
	
{'fraction_non_alphanumeric': 0.14394661582459486, 'fraction_numerical': 0.01334604385128694, 'mean_word_length': 3.5454545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6783799', 'n_tokens_mistral': 412, 'n_tokens_neox': 396, 'n_words': 103}