<commit_before>#!/usr/bin/env bash

set -ex
mkdir -p ~/.ssh
# what is messing up $HOME?
sudo grep -ri ENV /etc/sudoers*

# Generate ssh keys on StackStorm box and copy over public key into remote box.
ssh-keygen -f ~/.ssh/st2_id_rsa -P ""

# Authorize key-base acces
sudo bash -xc "cat ~/.ssh/st2_id_rsa.pub >> ~/.ssh/authorized_keys"
sudo chmod 0600 ~/.ssh/authorized_keys
sudo chmod 0700 ~/.ssh
sudo chown -R "${ST2_CI_USER}:${ST2_CI_USER}" ~/.ssh<commit_msg>use sudo -E to preserve env vars<commit_after>#!/usr/bin/env bash

set -ex
mkdir -p ~/.ssh

# Generate ssh keys on StackStorm box and copy over public key into remote box.
ssh-keygen -f ~/.ssh/st2_id_rsa -P ""

# sudo -E = preserve HOME var
# Authorize key-base acces
sudo -E bash -xc "cat ~/.ssh/st2_id_rsa.pub >> ~/.ssh/authorized_keys"
sudo -E chmod 0600 ~/.ssh/authorized_keys
sudo -E chmod 0700 ~/.ssh
sudo -E chown -R "${ST2_CI_USER}:${ST2_CI_USER}" ~/.ssh
{'fraction_non_alphanumeric': 0.14626218851570963, 'fraction_numerical': 0.02600216684723727, 'mean_word_length': 3.4854368932038833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7232081', 'n_tokens_mistral': 410, 'n_tokens_neox': 357, 'n_words': 118}