<commit_before># Add symlinks to where your SSH public/private keys probably are
SSH_KEY_DIR=salt-config/pki/ssh
mkdir -p $SSH_KEY_DIR
ln -s ~/.ssh/id_rsa $SSH_KEY_DIR/salt-ssh.rsa
ln -s ~/.ssh/id_rsa.pub $SSH_KEY_DIR/salt-ssh.rsa.pub

# Create a config file with sensible settings for running salt not as root
mkdir salt-config/master.d
pwd=`pwd`
echo "cachedir: $pwd/cache/
log_file: $pwd/log
ssh_log_file: $pwd/ssh_log
pki_dir: $pwd/salt-config/pki/
user: $USER" > salt-config/master.d/localuser.conf
<commit_msg>setup_for_non_root.sh: Tweak commands so this script can be re-run without warnings.<commit_after># Add symlinks to where your SSH public/private keys probably are
SSH_KEY_DIR=salt-config/pki/ssh
mkdir -p $SSH_KEY_DIR
ln -sf ~/.ssh/id_rsa $SSH_KEY_DIR/salt-ssh.rsa
ln -sf ~/.ssh/id_rsa.pub $SSH_KEY_DIR/salt-ssh.rsa.pub

# Create a config file with sensible settings for running salt not as root
mkdir -p salt-config/master.d
pwd=`pwd`
echo "cachedir: $pwd/cache/
log_file: $pwd/log
ssh_log_file: $pwd/ssh_log
pki_dir: $pwd/salt-config/pki/
user: $USER" > salt-config/master.d/localuser.conf

{'fraction_non_alphanumeric': 0.12003610108303249, 'fraction_numerical': 0.0, 'mean_word_length': 4.601010101010101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4854044', 'n_tokens_mistral': 475, 'n_tokens_neox': 446, 'n_words': 113}