<commit_before>*** Settings ***
Documentation  Mongoose FS Storage Driver For Win Tests
Force Tags  FS WIN
Library  Collections
Library  OperatingSystem
Library  Validation
Library  String
Test Teardown  Remove Files

*** Variables ***

${HOME_DIR}   C:\\projects\\mongoose
#${HOME_DIR}   C:\\cygwin64\\home\\kochuv\\mongoose
${MONGOOSE_JAR_PATH}    ${HOME_DIR}\\build\\libs\\mongoose-4.1.1.jar
${ITEM_OUTPUT_PATH}     ${HOME_DIR}\\build\\fs-results
${ITEM_COUNT}    10
${ITEM_SIZE}    10KB
${STEP_ID}   win_fs_robotest
#${LOG_DIR}   %HomeDrive%%HomePath%\\.mongoose\\4.1.1\\log
#${LOG_DIR}   C:\\Users\\kochuv\\.mongoose\\4.1.1\\log



*** Test Cases ***

Should Create Files Test
	Create Directory  ${ITEM_OUTPUT_PATH}
	Start Mongoose
	${log_dir} =  Get Log Directory
	Validate Log File Metrics Total  ${log_dir}\\${STEP_ID}  file_separator=\\  count_succ_min=${10}  count_succ_max=${10}
	...  transfer_size=${10240000}  transfer_size_delta=${10240000}

*** Keywords ***

Get Log Directory
	${cmd} =  Catenate  ECHO %HomeDrive%%HomePath%
	${std_out} =  Run   ${cmd}
	${std_out} =  Strip String  ${std_out}
	[Return]  ${std_out}\\.mongoose\\4.1.1\\log

Start Mongoose
	${cmd} =  Catenate  SEPARATOR=\t
	...  java -jar ${MONGOOSE_JAR_PATH}
	...  --item-data-size=${ITEM_SIZE}
	...  --storage-driver-type=fs
	...  --item-output-path=${ITEM_OUTPUT_PATH}
	...  --load-op-limit-count=${ITEM_COUNT}
	...  --load-step-id=${STEP_ID}
	${std_out} =  Run   ${cmd}
    Log  ${std_out}

Create Directory
	[Arguments]  ${path}
	${cmd} =  Catenate  mkdir ${path}
	${std_out} =  Run   ${cmd}
    Log  ${std_out}

Remove Directory
	[Arguments]  ${path}
#    ${cmd} =  Catenate  mkdir ${path}
    ${std_out} =  Run  ${cmd}
    Log  ${std_out}
<commit_msg>delete comments<commit_after>*** Settings ***
Documentation  Mongoose FS Storage Driver For Win Tests
Force Tags  FS WIN
Library  Collections
Library  OperatingSystem
Library  Validation
Library  String
Test Teardown  Remove Files

*** Variables ***

${HOME_DIR}   C:\\projects\\mongoose
${MONGOOSE_JAR_PATH}    ${HOME_DIR}\\build\\libs\\mongoose-4.1.1.jar
${ITEM_OUTPUT_PATH}     ${HOME_DIR}\\build\\fs-results
${ITEM_COUNT}    10
${ITEM_SIZE}    10KB
${STEP_ID}   win_fs_robotest

*** Test Cases ***

Should Create Files Test
	Create Directory  ${ITEM_OUTPUT_PATH}
	Start Mongoose
	${log_dir} =  Get Log Directory
	Validate Log File Metrics Total  ${log_dir}\\${STEP_ID}  file_separator=\\  count_succ_min=${10}  count_succ_max=${10}
	...  transfer_size=${10240000}  transfer_size_delta=${10240000}

*** Keywords ***

Get Log Directory
	${cmd} =  Catenate  ECHO %HomeDrive%%HomePath%
	${std_out} =  Run   ${cmd}
	${std_out} =  Strip String  ${std_out}
	[Return]  ${std_out}\\.mongoose\\4.1.1\\log

Start Mongoose
	${cmd} =  Catenate  SEPARATOR=\t
	...  java -jar ${MONGOOSE_JAR_PATH}
	...  --item-data-size=${ITEM_SIZE}
	...  --storage-driver-type=fs
	...  --item-output-path=${ITEM_OUTPUT_PATH}
	...  --load-op-limit-count=${ITEM_COUNT}
	...  --load-step-id=${STEP_ID}
	${std_out} =  Run   ${cmd}
    Log  ${std_out}

Create Directory
	[Arguments]  ${path}
	${cmd} =  Catenate  mkdir ${path}
	${std_out} =  Run   ${cmd}
    Log  ${std_out}


{'fraction_non_alphanumeric': 0.1744186046511628, 'fraction_numerical': 0.021370207416719043, 'mean_word_length': 3.586455331412104, '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': '1354330', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1227, 'n_words': 246}