<commit_before>#!/bin/bash

source pkgs.sh

GIT_DST_DIR="${PWD}/neovim"
NEOVIM_DST_DIR='/opt/neovim'
GIT_REPO='https://github.com/neovim/neovim.git'

sudo mkdir -p "$NEOVIM_DST_DIR"


if [[ -d "$GIT_DST_DIR" ]]; then
    cd "$GIT_DST_DIR"
    git fetch
    cd -
else
    git clone "$GIT_REPO" "$GIT_DST_DIR"
fi

cd "$GIT_DST_DIR"

# Use the most recent version tag to get latest 'stable'
vtag=$(git tag | grep '^v.*' | sort -r | head -n 1)
if [[ -z $vtag ]]; then
    vtag="master"
fi

pr_info "Using Nvim branch/tag $vtag"
sleep 1

git checkout "$vtag"
git merge<commit_msg>Explicitly merge selected branch after checkout<commit_after>#!/bin/bash

source pkgs.sh

GIT_DST_DIR="${PWD}/neovim"
NEOVIM_DST_DIR='/opt/neovim'
GIT_REPO='https://github.com/neovim/neovim.git'

sudo mkdir -p "$NEOVIM_DST_DIR"


if [[ -d "$GIT_DST_DIR" ]]; then
    cd "$GIT_DST_DIR"
    git fetch
    cd -
else
    git clone "$GIT_REPO" "$GIT_DST_DIR"
fi

cd "$GIT_DST_DIR"

# Use the most recent version tag to get latest 'stable'
vtag=$(git tag | grep '^v.*' | sort -r | head -n 1)
if [[ -z $vtag ]]; then
    vtag="master"
fi

pr_info "Using Nvim branch/tag $vtag"
sleep 1

git checkout "$vtag"
git merge "$vtag"
{'fraction_non_alphanumeric': 0.1535234899328859, 'fraction_numerical': 0.003355704697986577, 'mean_word_length': 3.791164658634538, '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': '313745', 'n_tokens_mistral': 549, 'n_tokens_neox': 523, 'n_words': 133}