<commit_before>#!/bin/bash

if [[ ! -a "$HOME/.vimrc" ]]; then
  touch "$HOME/.vimrc"
fi

vimrc_changed=`diff -q vimrc $HOME/.vimrc`

# Check if user has vim and git
check_requirements() {
	local vimloc=`which vim`
	if [[ ! -x $vimloc ]]; then
	        echo "vim is required"
	        exit 1
	fi

	local gitloc=`which git`
	if [[ ! -x $gitloc ]]; then
	        echo "git is required"
	        exit 1
	fi
}

# Copy .vimrc file to $HOME
copy_vimrc() {
	if [[ -z $vimrc_changed ]]; then
		return
	fi

	echo "Copying .vimrc..."
	cp vimrc $HOME/<commit_msg>Fix vimrc copy filename<commit_after>#!/bin/bash

if [[ ! -a "$HOME/.vimrc" ]]; then
  touch "$HOME/.vimrc"
fi

vimrc_changed=`diff -q vimrc $HOME/.vimrc`

# Check if user has vim and git
check_requirements() {
	local vimloc=`which vim`
	if [[ ! -x $vimloc ]]; then
	        echo "vim is required"
	        exit 1
	fi

	local gitloc=`which git`
	if [[ ! -x $gitloc ]]; then
	        echo "git is required"
	        exit 1
	fi
}

# Copy .vimrc file to $HOME
copy_vimrc() {
	if [[ -z $vimrc_changed ]]; then
		return
	fi

	echo "Copying .vimrc..."
	cp vimrc $HOME/.vimrc
{'fraction_non_alphanumeric': 0.14910714285714285, 'fraction_numerical': 0.0035714285714285713, 'mean_word_length': 2.5362776025236595, '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': '5122661', 'n_tokens_mistral': 481, 'n_tokens_neox': 431, 'n_words': 134}