<commit_before>#!/bin/bash -e

if [ "$#" -lt "1" ]; then echo "please give at least a remote host name"; exit ; fi
if [ "$#" -lt "2" ]; then user="centos" ; else user="$2" ; fi
echo "useradd -d /home/${user} -m ${user} && echo ${user}:${user} | chpasswd && echo '${user} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" | ssh -tt root@$1<commit_msg>createuser.sh extensions<commit_after>#!/bin/bash -exv

if [ "$#" -lt "1" ]; then echo "please give at least a remote host name; optionally also the new username and the remote sudo user to work as"; exit ; fi
if [ "$#" -lt "2" ]; then user="centos" ; else user="$2" ; fi
if [ "$#" -lt "3" ]; then remote_user="root" ; else remote_user="$3" ; fi
echo "sudo useradd -d /home/${user} -m ${user}" | ssh -t $remote_user@$1
echo "echo ${user}:${user} | sudo chpasswd " | ssh -t $remote_user@$1
echo "echo \"${user} ALL=(ALL) NOPASSWD: ALL\" sudo tee -a /etc/sudoers" | ssh -t $remote_user@$1
#echo "useradd -d /home/${user} -m ${user} && echo ${user}:${user} | chpasswd && echo '${user} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" | ssh -tt root@$1
{'fraction_non_alphanumeric': 0.22068328716528163, 'fraction_numerical': 0.012003693444136657, 'mean_word_length': 4.018518518518518, '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': '6221279', 'n_tokens_mistral': 426, 'n_tokens_neox': 408, 'n_words': 138}