<commit_before>#!/bin/bash
#
# core/deprecated.sh
#
# This file contains deprecated functions that may be removed later.

function deprecated_distro() {
  codename=$(lsb_release --codename | cut -f2)
  if [[ $codename == "trusty" ]]; then
    r="\e[0;32m"
    echo " "
    echo '__ __ __ __'
    echo '\ V\ V\ V / A message from the VVV team'
    echo ' \_/\_/\_/  '
    echo -e " "
    echo -e "We Have Some Good News and Some Bad News"
    echo -e "----------------------------------------"
    echo -e " "
    echo -e "The good news is that you updated to VVV 3+! Thanks for taking "
    echo -e "care of your install!"
    echo -e " "
    echo -e "The bad news is that your VM is still an Ubuntu 14 VM. VVV 3+ needs"
    echo -e "Ubuntu 18, and requires a vagant destroy and a reprovision."
    echo -e " "
    echo -e " "
    echo -e "\e[1;4;33mImportant: Destroying and reprovisioning will erase the database${r}"
    echo -e " "<commit_msg>Avoid running lsb_release if it's not available<commit_after>#!/bin/bash
#
# core/deprecated.sh
#
# This file contains deprecated functions that may be removed later.

function deprecated_distro() {
  local command_exist
  command_exist="$(which lsb_release)"
  if [ -z "${command_exist}" ]; then
    return;
  fi
  codename=$(lsb_release --codename | cut -f2)
  if [[ $codename == "trusty" ]]; then
    r="\e[0;32m"
    echo " "
    echo '__ __ __ __'
    echo '\ V\ V\ V / A message from the VVV team'
    echo ' \_/\_/\_/  '
    echo -e " "
    echo -e "We Have Some Good News and Some Bad News"
    echo -e "----------------------------------------"
    echo -e " "
    echo -e "The good news is that you updated to VVV 3+! Thanks for taking "
    echo -e "care of your install!"
    echo -e " "
    echo -e "The bad news is that your VM is still an Ubuntu 14 VM. VVV 3+ needs"
    echo -e "Ubuntu 18, and requires a vagant destroy and a reprovision."
    echo -e " "
    echo -e " "
    echo -e "\e[1;4;33mImportant: Destroying and reprovisioning will erase the database${r}"
    echo -e " "
{'fraction_non_alphanumeric': 0.15810083210964268, 'fraction_numerical': 0.013705335291238374, 'mean_word_length': 2.154320987654321, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2857912', 'n_tokens_mistral': 725, 'n_tokens_neox': 670, 'n_words': 260}