<commit_before>#!/bin/bash

LOCAL_DIR=`pwd`
VIM=.vim
VIMRC=.vimrc
ZSH=.zsh
ZSHRC=.zshrc
BASH_PROFILE=.bash_profile
LOCAL_VIM=$LOCAL_DIR/$VIM
LOCAL_VIMRC=$LOCAL_DIR/$VIMRC
LOCAL_ZSHRC=$LOCAL_DIR/$ZSHRC
LOCAL_BASH_PROFILE=$LOCAL_DIR/$BASH_PROFILE
HOME_VIM=$HOME/$VIM
HOME_VIMRC=$HOME/$VIMRC
HOME_ZSH=$HOME/$ZSH
HOME_ZSHRC=$HOME/$ZSHRC
HOME_BASH_PROFILE=$HOME/$BASH_PROFILE
VIM_BUNDLE=$HOME_VIM/bundle
VIM_AUTOLOAD=$HOME_VIM/autoload
ZSH_COMPLETION=$HOME_ZSH/functions/Completion

main () {
  if [ ! -x `which git` ]
  then
    echo ERROR: git is not exist.
    exit 1
  fi
  if [ ! -x `which zsh` ]
  then
    echo ERROR: zsh is not exist.
    exit 1
  fi
  if [ -d $HOME_VIM ]
  then
    rm -rf $HOME_VIM
  fi
  setup_vim
  if [ -f $HOME_VIMRC ]
  then
    rm -rf $HOME_VIMRC
  fi
  setup_vimrc
  if [ -d $HOME_ZSH ]
  then
    rm -rf $HOME_ZSH
  fi
  setup_zsh
  if [ -f $HOME_ZSHRC ]
  then
    rm -rf $HOME_ZSHRC
  fi
  setup_zshrc
  if [ -f $HOME_BASH_PROFILE ]
  then
    rm -rf $HOME_BASH_PROFILE
  fi
  setup_bash_profile
}

setup_vim () {
  mkdir -p $HOME_VIM
  cd $HOME_VIM
  git init
  mkdir $VIM_BUNDLE $VIM_AUTOLOAD
  git submodule add git://github.com/tpope/vim-pathogen.git $VIM_BUNDLE/vim-pathogen
  git submodule add git://github.com/altercation/vim-colors-solarized.git $VIM_BUNDLE/vim-colors-solarized
  git submodule add git://github.com/Shougo/neocomplcache.git $VIM_BUNDLE/neocomplcache
  ln -s $HOME_VIM/bundle/vim-pathogen/autoload/pathogen.vim $VIM_AUTOLOAD
}

setup_vimrc () {
  cp $LOCAL_VIMRC $HOME_VIMRC
}

setup_zsh () {
  mkdir -p $ZSH_COMPLETION
  cd $ZSH_COMPLETION
  curl -O https://raw.github.com/knu/zsh-git-escape-magic/master/git-escape-magic
}

setup_zshrc () {
  cp $LOCAL_ZSHRC $HOME_ZSHRC
}

setup_bash_profile () {
  cp $LOCAL_BASH_PROFILE $HOME_BASH_PROFILE
}

main
<commit_msg>Added -k option with curl.<commit_after>#!/bin/bash

LOCAL_DIR=`pwd`
VIM=.vim
VIMRC=.vimrc
ZSH=.zsh
ZSHRC=.zshrc
BASH_PROFILE=.bash_profile
LOCAL_VIM=$LOCAL_DIR/$VIM
LOCAL_VIMRC=$LOCAL_DIR/$VIMRC
LOCAL_ZSHRC=$LOCAL_DIR/$ZSHRC
LOCAL_BASH_PROFILE=$LOCAL_DIR/$BASH_PROFILE
HOME_VIM=$HOME/$VIM
HOME_VIMRC=$HOME/$VIMRC
HOME_ZSH=$HOME/$ZSH
HOME_ZSHRC=$HOME/$ZSHRC
HOME_BASH_PROFILE=$HOME/$BASH_PROFILE
VIM_BUNDLE=$HOME_VIM/bundle
VIM_AUTOLOAD=$HOME_VIM/autoload
ZSH_COMPLETION=$HOME_ZSH/functions/Completion

main () {
  if [ ! -x `which git` ]
  then
    echo ERROR: git is not exist.
    exit 1
  fi
  if [ ! -x `which zsh` ]
  then
    echo ERROR: zsh is not exist.
    exit 1
  fi
  if [ -d $HOME_VIM ]
  then
    rm -rf $HOME_VIM
  fi
  setup_vim
  if [ -f $HOME_VIMRC ]
  then
    rm -rf $HOME_VIMRC
  fi
  setup_vimrc
  if [ -d $HOME_ZSH ]
  then
    rm -rf $HOME_ZSH
  fi
  setup_zsh
  if [ -f $HOME_ZSHRC ]
  then
    rm -rf $HOME_ZSHRC
  fi
  setup_zshrc
  if [ -f $HOME_BASH_PROFILE ]
  then
    rm -rf $HOME_BASH_PROFILE
  fi
  setup_bash_profile
}

setup_vim () {
  mkdir -p $HOME_VIM
  cd $HOME_VIM
  git init
  mkdir $VIM_BUNDLE $VIM_AUTOLOAD
  git submodule add git://github.com/tpope/vim-pathogen.git $VIM_BUNDLE/vim-pathogen
  git submodule add git://github.com/altercation/vim-colors-solarized.git $VIM_BUNDLE/vim-colors-solarized
  git submodule add git://github.com/Shougo/neocomplcache.git $VIM_BUNDLE/neocomplcache
  ln -s $HOME_VIM/bundle/vim-pathogen/autoload/pathogen.vim $VIM_AUTOLOAD
}

setup_vimrc () {
  cp $LOCAL_VIMRC $HOME_VIMRC
}

setup_zsh () {
  mkdir -p $ZSH_COMPLETION
  cd $ZSH_COMPLETION
  curl -k -O https://raw.github.com/knu/zsh-git-escape-magic/master/git-escape-magic
}

setup_zshrc () {
  cp $LOCAL_ZSHRC $HOME_ZSHRC
}

setup_bash_profile () {
  cp $LOCAL_BASH_PROFILE $HOME_BASH_PROFILE
}

main

{'fraction_non_alphanumeric': 0.11405908096280087, 'fraction_numerical': 0.0010940919037199124, 'mean_word_length': 3.6704980842911876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1575902', 'n_tokens_mistral': 1690, 'n_tokens_neox': 1653, 'n_words': 295}