<commit_before>#!/bin/bash

flag=0 #checks for error during installation

sudo apt-get -y update && sudo apt-get update -y upgrade

sudo apt-get -y install python-pip python-dev build-essential || flag=1
sudo pip install --upgrade pip || flag=1

#Numpy
sudo apt-get -y install python-numpy || flag=1

#Scipy
sudo apt-get -y install python-scipy || flag=1

#Matplotlib
sudo apt-get -y install python-matplotlib || flag=1

#Ipython
sudo apt-get -y install ipython || flag=1

#Ipython-Notebook
sudo apt-get -y install ipython-notebook || flag=1

#Pandas
sudo apt-get -y install python-pandas || flag=1

#Seaborn
yes | sudo pip install seaborn || flag=1

#scikit-learn
yes | sudo pip install -U scikit-learn || flag=1


if [ $flag == 1 ]
then
  echo "--------------- Failed ! Please retry ----------------"
  exit
fi

echo "---------------- Successfull ! ---------------"<commit_msg>Little update<commit_after>#!/bin/bash

flag=0 #checks for error during installation

sudo apt-get -y update && sudo apt-get update -y upgrade

sudo apt-get -y install python-pip python-dev build-essential || flag=1
sudo pip install --upgrade pip || flag=1

#Numpy
sudo apt-get -y install python-numpy || flag=1

#Scipy
sudo apt-get -y install python-scipy || flag=1

#Matplotlib
sudo apt-get -y install python-matplotlib || flag=1

#Ipython
sudo apt-get -y install ipython || flag=1

#Ipython-Notebook
sudo apt-get -y install ipython-notebook || flag=1

#Pandas
sudo apt-get -y install python-pandas || flag=1

#Seaborn
yes | sudo pip install seaborn || flag=1

#scikit-learn
yes | sudo pip install -U scikit-learn || flag=1


if [ $flag == 1 ]
then
  echo "------------------------- Note ---------------------------"
  echo "Some package have not been installed. Please run the script again. Already downloaded packages will not be downloaded again.
  exit
fi

echo "---------------- Successfull ! ---------------"
{'fraction_non_alphanumeric': 0.17730870712401056, 'fraction_numerical': 0.012664907651715039, 'mean_word_length': 2.695906432748538, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6390599', 'n_tokens_mistral': 650, 'n_tokens_neox': 604, 'n_words': 217}