<commit_before>#!/bin/bash
# Script written by: JM.
# This script install and configure IntelliJ-IDEA IDE.

if [ -d "/opt/idea-IC/" ]; then
  echo $'\n IntelliJ IDEA is already installed.'
else
  # Installing IntelliJ IDEA dependencies.
  sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6

  # Downloading IntelliJ IDEA.
  wget -P $HOME/Downloads/ https://download-cf.jetbrains.com/idea/ideaIC-2017.1.5.tar.gz

  # Extracting IntelliJ IDEA into Download folder.
  tar zxvf $HOME/Downloads/ideaIC-2017.1.5.tar.gz -C $HOME/Downloads/

  # Renaming the folder to a simpler name.
  mv $HOME/Downloads/idea-IC* $HOME/Downloads/idea-IC

  # Moving idea-IC folder from Download to the opt folder.
  sudo mv $HOME/Downloads/idea-IC /opt/

  # Setting up the IntelliJ IDEA launcher on Ubuntu dash.
  sudo echo "[Desktop Entry]" >> /usr/share/applications/jetbrains-idea.desktop
  sudo echo "Version=1.0" >> /usr/share/applications/jetbrains-idea.desktop
  sudo echo "Type=Application" >> /usr/share/applications/jetbrains-idea.desktop
  sudo echo "Name=IntelliJ IDEA" >> /usr/share/applications/jetbrains-idea.desktop
  sudo echo "Icon=/opt/idea-IC/bin/idea.png" >> /usr/share/applications/jetbrains-idea.desktop
  sudo echo "Exec="/opt/idea-IC/bin/idea.sh" %f" >> /usr/share/applications/jetbrains-idea.desktop
  sudo echo "Comment=Develop with pleasure!" >> /usr/share/applications/jetbrains-idea.desktop
  sudo echo "Categories=Development;IDE;" >> /usr/share/applications/jetbrains-idea.desktop

  # Executing Intellij IDEA to generate the .IdeaIC folder.
  sh /opt/idea-IC/bin/idea.sh

  # Downloading custom configs of IntelliJ IDEA from Github if needed.
  if [ ! -d "$HOME/Projects/intellij-idea-config" ]; then
    cd $HOME/Projects && git clone git clone git<EMAIL>.com:jackmiras/intellij-idea-config.git && cd $HOME
  fi

  if [ -d "$HOME/Projects/intellij-idea-config" ]; then
    # Removing current configurations of IntelliJ IDEA.
    rm -rf $HOME/.IdeaIC2017.1/config/codestyles
    rm -rf $HOME/.IdeaIC2017.1/config/colors
    rm -rf $HOME/.IdeaIC2017.1/config/plugins
    rm -rf $HOME/.IdeaIC2017.1/config/templates
    rm -rf $HOME/.IdeaIC2017.1/config/options/colors.scheme.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/debugger.renderers.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/debugger.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/editor.codeinsight.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/editor.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/ide.general.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/markdown_navigator.local.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/markdown_navigator.shared.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/path.macros.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/vim_settings.xml

    # Creating a symbolic link of the new IntelliJ IDEA configurations into .IdeaIC folder.
    ln -s $HOME/Projects/intellij-idea-config/codestyles/ $HOME/.IdeaIC2017.1/config/
    ln -s $HOME/Projects/intellij-idea-config/colors/ $HOME/.IdeaIC2017.1/config/
    ln -s $HOME/Projects/intellij-idea-config/plugins/ $HOME/.IdeaIC2017.1/config/
    ln -s $HOME/Projects/intellij-idea-config/templates/ $HOME/.IdeaIC2017.1/config/
    ln -s $HOME/Projects/intellij-idea-config/options/colors.scheme.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/debugger.renderers.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/debugger.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/editor.codeinsight.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/editor.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/ide.general.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/markdown_navigator.local.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/markdown_navigator.shared.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/path.macros.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/vim_settings.xml $HOME/.IdeaIC2017.1/config/options/
  fi
  # Removing IntelliJ IDEA tar.gz file from Download folder.
  rm -rf $HOME/Downloads/ideaIC-2017.1.5.tar.gz

  echo $'\n IntelliJ IDEA has been successfully installed.'
fi
<commit_msg>Restoring the intelli-ide-installer.sh script<commit_after>#!/bin/bash
# Script written by: JM.
# This script install and configure IntelliJ-IDEA IDE.

if [ -d "/opt/idea-IC/" ]; then
  echo $'\n IntelliJ IDEA is already installed.'
else
  # Installing IntelliJ IDEA dependencies.
  sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6

  # Downloading IntelliJ IDEA.
  wget -P $HOME/Downloads/ https://download-cf.jetbrains.com/idea/ideaIC-2017.1.5.tar.gz

  # Extracting IntelliJ IDEA into Download folder.
  tar zxvf $HOME/Downloads/ideaIC-2017.1.5.tar.gz -C $HOME/Downloads/

  # Renaming the folder to a simpler name.
  mv $HOME/Downloads/idea-IC* $HOME/Downloads/idea-IC

  # Moving idea-IC folder from Download to the opt folder.
  sudo mv $HOME/Downloads/idea-IC /opt/

  # Setting up the IntelliJ IDEA launcher on Ubuntu dash.
  echo "[Desktop Entry]" >> $HOME/jetbrains-idea.desktop
  echo "Version=1.0" >> $HOME/jetbrains-idea.desktop
  echo "Type=Application" >> $HOME/jetbrains-idea.desktop
  echo "Name=IntelliJ IDEA" >> $HOME/jetbrains-idea.desktop
  echo "Icon=/opt/idea-IC/bin/idea.png" >> $HOME/jetbrains-idea.desktop
  echo "Exec="/opt/idea-IC/bin/idea.sh" %f" >> $HOME/jetbrains-idea.desktop
  echo "Comment=Develop with pleasure!" >> $HOME/jetbrains-idea.desktop
  echo "Categories=Development;IDE;" >> $HOME/jetbrains-idea.desktop

  # Moving the jetbrains-studio.destop to the usr/share/applications folder.
  sudo mv $HOME/jetbrains-idea.desktop /usr/share/applications/

  # Executing Intellij IDEA to generate the .IdeaIC folder.
  sh /opt/idea-IC/bin/idea.sh

  # Downloading custom configs of IntelliJ IDEA from Github if needed.
  if [ ! -d "$HOME/Projects/intellij-idea-config" ]; then
    cd $HOME/Projects && git clone git clone <EMAIL>:jackmiras/intellij-idea-config.git && cd $HOME
  fi

  if [ -d "$HOME/Projects/intellij-idea-config" ]; then
    # Removing current configurations of IntelliJ IDEA.
    rm -rf $HOME/.IdeaIC2017.1/config/codestyles
    rm -rf $HOME/.IdeaIC2017.1/config/colors
    rm -rf $HOME/.IdeaIC2017.1/config/plugins
    rm -rf $HOME/.IdeaIC2017.1/config/templates
    rm -rf $HOME/.IdeaIC2017.1/config/options/colors.scheme.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/debugger.renderers.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/debugger.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/editor.codeinsight.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/editor.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/ide.general.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/markdown_navigator.local.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/markdown_navigator.shared.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/path.macros.xml
    rm -rf $HOME/.IdeaIC2017.1/config/options/vim_settings.xml

    # Creating a symbolic link of the new IntelliJ IDEA configurations into .IdeaIC folder.
    ln -s $HOME/Projects/intellij-idea-config/codestyles/ $HOME/.IdeaIC2017.1/config/
    ln -s $HOME/Projects/intellij-idea-config/colors/ $HOME/.IdeaIC2017.1/config/
    ln -s $HOME/Projects/intellij-idea-config/plugins/ $HOME/.IdeaIC2017.1/config/
    ln -s $HOME/Projects/intellij-idea-config/templates/ $HOME/.IdeaIC2017.1/config/
    ln -s $HOME/Projects/intellij-idea-config/options/colors.scheme.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/debugger.renderers.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/debugger.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/editor.codeinsight.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/editor.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/ide.general.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/markdown_navigator.local.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/markdown_navigator.shared.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/path.macros.xml $HOME/.IdeaIC2017.1/config/options/
    ln -s $HOME/Projects/intellij-idea-config/options/vim_settings.xml $HOME/.IdeaIC2017.1/config/options/
  fi
  # Removing IntelliJ IDEA tar.gz file from Download folder.
  rm -rf $HOME/Downloads/ideaIC-2017.1.5.tar.gz

  echo $'\n IntelliJ IDEA has been successfully installed.'
fi

{'fraction_non_alphanumeric': 0.13689482470784642, 'fraction_numerical': 0.03761825264329438, 'mean_word_length': 3.5544855549923975, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 40}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4132650', 'n_tokens_mistral': 3652, 'n_tokens_neox': 3223, 'n_words': 600}