<commit_before>#!/bin/bash
set -e
# check to see if the swig_1.3.40 folder is empty
if [ ! -d "$HOME/swig_1.3.40/lib" ]; then
    # get swig 1.3.40 source
    wget https://sourceforge.net/projects/swig/files/swig/swig-1.3.40/swig-1.3.40.tar.gz;
    # quietly untar
    tar xzf swig-1.3.40.tar.gz;
    # make swig
    echo 'Making SWIG 1.3.40...';
    cd swig-1.3.40 && ./configure --prefix=$HOME/swig_1.3.40 && make && make install;
else
    echo 'Using cached directory.';
fi
<commit_msg>swig script should look for bin dir, not lib<commit_after>#!/bin/bash
set -e
# check to see if the swig_1.3.40 folder is empty
if [ ! -d "$HOME/swig_1.3.40/bin" ]; then
    # get swig 1.3.40 source
    wget https://sourceforge.net/projects/swig/files/swig/swig-1.3.40/swig-1.3.40.tar.gz;
    # quietly untar
    tar xzf swig-1.3.40.tar.gz;
    # make swig
    echo 'Making SWIG 1.3.40...';
    cd swig-1.3.40 && ./configure --prefix=$HOME/swig_1.3.40 && make && make install;
else
    echo 'Using cached directory.';
fi

{'fraction_non_alphanumeric': 0.16749256689791872, 'fraction_numerical': 0.07135777998017839, 'mean_word_length': 2.543859649122807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1965622', 'n_tokens_mistral': 449, 'n_tokens_neox': 418, 'n_words': 100}