<commit_before>#!/bin/bash
set -x
(
	yum_command=${1}; package=${2}; log_label=${3}; 
	echo "yum ${yum_command} ${package}" | tee -a ~/install-log/${log_label}_yum.log; 
	date >> ~/install-log/${log_label}_yum.log; 
	yum ${yum_command} ${package} 2>&1 | tee -a ~/install-log/${log_label}_yum.log;
	rpm -ql ${package} | tee -a ~/install-log/${log_label}_yum.log;
)<commit_msg>add argument check, package query list<commit_after>#!/bin/bash
set -o xtrace
if [ ${#} -eq 3 ]; then
	yum_command=${1}
	package=${2}
	log_label=${3}
	echo "****  yum ${yum_command} ${package}  ****" | tee -a ~/install-log/${log_label}_yum.log
	date >> ~/install-log/${log_label}_yum.log
	yum ${yum_command} ${package} 2>&1 | tee -a ~/install-log/${log_label}_yum.log
	rpm -ql ${package} | tee -a ~/install-log/${log_label}_yum.log
else
	echo "missing 3 arguments: yum_command package log_label"
fi
{'fraction_non_alphanumeric': 0.21649484536082475, 'fraction_numerical': 0.013745704467353952, 'mean_word_length': 4.675324675324675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2712494', 'n_tokens_mistral': 371, 'n_tokens_neox': 359, 'n_words': 75}