<commit_before>
# Apt get dependencies
sudo apt-get install -y mongodb-server
sudo apt-get install -y curl
sudo apt-get install -y libkrb5-dev
sudo apt-get install -y git
sudo apt-get install -y g++

# Setting up node via nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
if ! type "nvm" > /dev/null; then
  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
  export NVM_DIR="$HOME/.nvm"
  [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
else
  echo "nvm already installed"
fi

cd /vagrant

# Setting up npm
if ! type "npm" > /dev/null; then

  # Install node / npm
  nvm install stable
  nvm alias default stable

  # Install dev-tools
  npm install -g mongo-express
  npm install -g node-inspector

  # Copy mongo express config
  node_ver=`eval node --version`
  cp -v ./mongo-express-config.js ~/.nvm/versions/node/$node_ver/lib/node_modules/mongo-express/config.js
  echo "alias mongo-express='node ~/.nvm/versions/node/'$node_ver'/lib/node_modules/mongo-express/app.js'" >> ~/.bashrc

else
  echo "npm already installed"
fi

# Does the user has already downloaded the dependencies?
export NODE_ENV="development"
if [ ! -d "node_modules" ]; then
  npm install
else
  npm run copy
  echo "node_modules folder is already present"
fi

echo ""
echo "###################################"
echo "        building the client"
echo ""
npm run build-client
echo ""
echo "###################################"<commit_msg>Fix deploy file.<commit_after>
# Apt get dependencies
sudo apt-get install -y mongodb-server
sudo apt-get install -y curl
sudo apt-get install -y libkrb5-dev
sudo apt-get install -y git
sudo apt-get install -y g++

# Setting up node via nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
if ! type "nvm" > /dev/null; then
  curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
  export NVM_DIR="$HOME/.nvm"
  [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
else
  echo "nvm already installed"
fi

cd /vagrant

# Setting up npm
if ! type "npm" > /dev/null; then

  # Install node / npm
  nvm install 6
  nvm alias default 6

  # Install dev-tools
  npm install -g mongo-express
  npm install -g node-inspector

  # Copy mongo express config
  node_ver=`eval node --version`
  cp -v ./mongo-express-config.js ~/.nvm/versions/node/$node_ver/lib/node_modules/mongo-express/config.js
  echo "alias mongo-express='node ~/.nvm/versions/node/'$node_ver'/lib/node_modules/mongo-express/app.js'" >> ~/.bashrc

else
  echo "npm already installed"
fi

# Does the user has already downloaded the dependencies?
export NODE_ENV="development"
if [ ! -d "node_modules" ]; then
  npm install
else
  echo "node_modules folder is already present"
fi

echo ""
echo "###################################"
{'fraction_non_alphanumeric': 0.162227602905569, 'fraction_numerical': 0.0041508128675198895, 'mean_word_length': 3.5543307086614173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4453740', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1015, 'n_words': 301}