<commit_before>#!/bin/bash

# get the path to this script
APP_PATH=`dirname "$0"`
APP_PATH=`( cd "$APP_PATH" && pwd )`

read -r -p $'\033[31mInstall TMUX? [y/n] \033[00m' response

response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]]; then

  toilet Installing tmux

  libevent=`ldconfig -p | grep libevent-2.0 | wc -l`
  if [ "$libevent" -lt "1" ]; then

    echo $'\033[31mLibevent not installed, installing... \033[00m' 

    # install libevent
    cd /tmp
    wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
    tar -xvf libevent-2.0.22-stable.tar.gz
    rm libevent-2.0.22-stable.tar.gz
    cd libevent-2.0.22-stable
    ./configure && make >> /dev/null
    sudo make install

  fi
  
  # instal tmux
  cd $APP_PATH/../../submodules/tmux
  sh autogen.sh
  ./configure && make -j4
  sudo make install-binPROGRAMS
  
  # symlink tmux settings
  rm ~/.tmux.conf
  ln -s $APP_PATH/dottmux.conf ~/.tmux.conf

fi<commit_msg>added cleaning after the compilation of tmux<commit_after>#!/bin/bash

# get the path to this script
APP_PATH=`dirname "$0"`
APP_PATH=`( cd "$APP_PATH" && pwd )`

read -r -p $'\033[31mInstall TMUX? [y/n] \033[00m' response

response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]]; then

  toilet Installing tmux

  libevent=`ldconfig -p | grep libevent-2.0 | wc -l`
  if [ "$libevent" -lt "1" ]; then

    echo $'\033[31mLibevent not installed, installing... \033[00m' 

    # install libevent
    cd /tmp
    wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
    tar -xvf libevent-2.0.22-stable.tar.gz
    rm libevent-2.0.22-stable.tar.gz
    cd libevent-2.0.22-stable
    ./configure && make >> /dev/null
    sudo make install

  fi
  
  # instal tmux
  cd $APP_PATH/../../submodules/tmux
  sh autogen.sh
  ./configure && make -j4
  sudo make install-binPROGRAMS
  git clean -fd

  # symlink tmux settings
  rm ~/.tmux.conf
  ln -s $APP_PATH/dottmux.conf ~/.tmux.conf

fi
{'fraction_non_alphanumeric': 0.15990220048899756, 'fraction_numerical': 0.044009779951100246, 'mean_word_length': 2.824299065420561, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3678715', 'n_tokens_mistral': 861, 'n_tokens_neox': 791, 'n_words': 186}