<commit_before>#!/bin/bash
set -x #echo on

REPOSRC=$1
LOCALREPO=$2
BRANCH=$3
NPMRUNTASK=$4

LOCALREPO_VC_DIR=$LOCALREPO/.git

if [ ! -d $LOCALREPO_VC_DIR ]
then
    git clone $REPOSRC $LOCALREPO
    cd $LOCALREPO
else
    cd $LOCALREPO
    git pull $REPOSRC $BRANCH
fi

npm install<commit_msg>Use nvm<commit_after>#!/bin/bash

REPOSRC=$1
LOCALREPO=$2
BRANCH=$3
NPMRUNTASK=$4

LOCALREPO_VC_DIR=$LOCALREPO/.git

if [ ! -d $LOCALREPO_VC_DIR ]
then
    git clone $REPOSRC $LOCALREPO
    cd $LOCALREPO
else
    cd $LOCALREPO
    git pull $REPOSRC $BRANCH
fi

. ~/.nvm/nvm.sh > /dev/null
nvm use 5

npm install
{'fraction_non_alphanumeric': 0.11735537190082644, 'fraction_numerical': 0.01487603305785124, 'mean_word_length': 3.734375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6913943', 'n_tokens_mistral': 277, 'n_tokens_neox': 269, 'n_words': 61}