<commit_before>#!/bin/bash

# Add local user
# Either use the HOST_USER_ID if passed in at runtime or
# fallback

USER_ID=${HOST_USER_ID:-9001}
USER_NAME=${HOST_USER:-user}

echo "Starting with UID : $USER_ID"
useradd --shell /bin/bash -u $USER_ID -o -c "" --create-home -G sudo $USER_NAME > /dev/null 2>&1
export HOME=/home/$USER_NAME

exec /bootstrap/su-exec $USER_NAME "$@"
<commit_msg>if no command is given, then default to bash<commit_after>#!/bin/bash

# Add local user
# Either use the HOST_USER_ID if passed in at runtime or
# fallback

USER_ID=${HOST_USER_ID:-9001}
USER_NAME=${HOST_USER:-user}

echo "Starting with UID : $USER_ID"
useradd --shell /bin/bash -u $USER_ID -o -c "" --create-home -G sudo $USER_NAME > /dev/null 2>&1
export HOME=/home/$USER_NAME

if [ ${#@} -eq 0 ]; then
    exec /bootstrap/su-exec $USER_NAME /bin/bash
else
    exec /bootstrap/su-exec $USER_NAME "$@"
fi

{'fraction_non_alphanumeric': 0.14748603351955308, 'fraction_numerical': 0.01452513966480447, 'mean_word_length': 3.923076923076923, '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': '7282924', 'n_tokens_mistral': 357, 'n_tokens_neox': 331, 'n_words': 98}