<commit_before>#!/bin/bash

uid=`stat --printf %u /import`
gid=`stat --printf %g /import`

if [[ $uid != '1450' ]] && [[ $gid != '1450' ]]; then

    groupadd -r galaxy -g $gid && \
    useradd -u $uid -r -g galaxy -d /home/ipython -c "IPython user" galaxy && \
    chown galaxy:galaxy /home/ipython -R
    su galaxy -c 'ipython trust /import/ipython_galaxy_notebook.ipynb'
    su galaxy -c '/monitor_traffic.sh' & 
    su galaxy -c 'ipython notebook --no-browser'

else

    ipython trust /import/ipython_galaxy_notebook.ipynb
    /monitor_traffic.sh &
    ipython notebook --no-browser

fi<commit_msg>Fix startup.sh for Galaxy's running with UID 1450.<commit_after>#!/bin/bash

uid=`stat --printf %u /import`
gid=`stat --printf %g /import`

if [[ $uid != '1450' ]] && [[ $gid != '1450' ]]; then

    groupadd -r galaxy -g $gid && \
    useradd -u $uid -r -g galaxy -d /home/ipython -c "IPython user" galaxy && \
    chown galaxy:galaxy /home/ipython -R
    su galaxy -c 'ipython trust /import/ipython_galaxy_notebook.ipynb'
    su galaxy -c '/monitor_traffic.sh' & 
    su galaxy -c 'ipython notebook --no-browser'

else

    su ipython -c 'ipython trust /import/ipython_galaxy_notebook.ipynb'
    su ipython -c '/monitor_traffic.sh' &
    su ipython -c 'ipython notebook --no-browser'

fi
{'fraction_non_alphanumeric': 0.15182029434546862, 'fraction_numerical': 0.015491866769945779, 'mean_word_length': 2.8452380952380953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7073461', 'n_tokens_mistral': 526, 'n_tokens_neox': 493, 'n_words': 137}