<commit_before>#!/bin/sh
PYTHON_VER=`python -V 2>&1 | sed "s/Python \([0-9][0-9]*\)\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1.\2/"`
PYTHON_24_DIR='python2.4/site-packages'
PYTHON_25_DIR='python2.5/site-packages'
PYTHON_26_DIR='python2.6/dist-packages'

if [ "$PYTHON_VER"  = "2.4" ]
then
    PYTHON_DIR=$PYTHON_24_DIR
elif [ "$PYTHON_VER"  = "2.5" ]
then
    PYTHON_DIR=$PYTHON_25_DIR
elif [ "$PYTHON_VER"  = "2.6" ]
then
    PYTHON_DIR=$PYTHON_26_DIR
fi

PREFIX=/usr/local
TARGET=$PREFIX/lib/$PYTHON_DIR/gstgengui
echo Detected python$PYTHON_VER, installing to $TARGET
sudo mkdir -p $PREFIX/lib/$PYTHON_DIR
sudo ln -sf `pwd`/gstgengui $TARGET 
sudo ln -sf `pwd`/gstgengui/gst-gengui.py $PREFIX/bin/gst-gengui
sudo chmod +x $PREFIX/bin/gst-gengui<commit_msg>fixed setup<commit_after>#!/bin/sh
PYTHON_VER=`python -V 2>&1 | sed "s/Python \([0-9][0-9]*\)\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1.\2/"`
PYTHON_DIR="python$PYTHON_VER/site-packages"

PREFIX=/usr/local
TARGET=$PREFIX/lib/$PYTHON_DIR/gstgengui
echo Detected python$PYTHON_VER, installing to $TARGET
sudo mkdir -p $PREFIX/lib/$PYTHON_DIR
sudo ln -sf `pwd`/gstgengui $TARGET 
sudo ln -sf `pwd`/gstgengui/gst-gengui.py $PREFIX/bin/gst-gengui
sudo chmod +x $PREFIX/bin/gst-gengui
{'fraction_non_alphanumeric': 0.19950738916256158, 'fraction_numerical': 0.04597701149425287, 'mean_word_length': 4.566210045662101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1928758', 'n_tokens_mistral': 614, 'n_tokens_neox': 578, 'n_words': 86}