<commit_before>#!/bin/bash

source _variables.sh

mkdir -p /tmp/bosh_agent

pushd /tmp/bosh_agent
    cp $SRC_DIR/_bosh_agent.tar /tmp/bosh_agent
    tar -xvf _bosh_agent.tar
    $bosh_dir/bin/gem install *.gem --no-ri --no-rdoc
    chmod +x $bosh_dir/agent/bin/bosh_agent

    # configure bosh agent
    mkdir -p /etc/sv/agent/log
    echo '#!/bin/bash
    export PATH=/var/vcap/bosh/bin:$PATH
    exec 2>&1
    exec /var/vcap/bosh/bin/bosh_agent --configure --infrastructure=`cat /etc/infrastructure`
    ' > /etc/sv/agent/run

    echo '#!/bin/bash
    svlogd -tt /var/vcap/bosh/log
    ' > /etc/sv/agent/log/run

    # runit
    chmod +x /etc/sv/agent/run /etc/sv/agent/log/run

    ln -s /etc/sv/agent /etc/service/agent

    cp $SRC_DIR/_empty_state.yml $bosh_dir/state.yml

    # The bosh agent installs a config that rotates on size
    mv /etc/cron.daily/logrotate /etc/cron.hourly/logrotate

popd<commit_msg>fix bugs<commit_after>#!/bin/bash

source _variables.sh

mkdir -p /tmp/bosh_agent

pushd /tmp/bosh_agent
    cp $SRC_DIR/_bosh_agent.tar /tmp/bosh_agent
    tar -xvf _bosh_agent.tar
    $bosh_dir/bin/gem install *.gem --no-ri --no-rdoc
    chmod +x $bosh_dir/bin/bosh_agent

    # configure bosh agent
    mkdir -p /etc/sv/agent/log
    echo '#!/bin/bash
    export PATH=/var/vcap/bosh/bin:$PATH
    exec 2>&1
    exec /var/vcap/bosh/bin/bosh_agent --configure --infrastructure=`cat /etc/infrastructure`
    ' > /etc/sv/agent/run

    echo '#!/bin/bash
    svlogd -tt /var/vcap/bosh/log
    ' > /etc/sv/agent/log/run

    # runit
    chmod +x /etc/sv/agent/run /etc/sv/agent/log/run

    ln -s /etc/sv/agent /etc/service/agent

    cp $SRC_DIR/_empty_state.yml $bosh_dir/state.yml

    # The bosh agent installs a config that rotates on size
    mv /etc/cron.daily/logrotate /etc/cron.hourly/logrotate

popd
{'fraction_non_alphanumeric': 0.13753424657534247, 'fraction_numerical': 0.002191780821917808, 'mean_word_length': 2.504798464491363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '793915', 'n_tokens_mistral': 778, 'n_tokens_neox': 725, 'n_words': 144}