<commit_before>#!/bin/bash

ROOT=`pwd`"/vendor/assets"
TMP="`pwd`/tmp/yui3"
# Pull down yui3 sources
git clone  git://github.com/yui/yui3.git tmp/yui3
git fetch
if [  -n "$1" ]
then
    cd $TMP
    echo "checking out ref $1"
    git checkout $1
    cd ../..
else
    echo "you could run this with a checkout ref option, e.g. v3.8.1"
fi

# Copy js/ to javascripts/
find $TMP/build/yui/ -iname '*coverage.js' -exec rm '{}' \;
cp -r $TMP/build/yui/* $ROOT/javascripts/

# remove leftovers
rm -rf $TMP<commit_msg>BF yui src leaves the @VERSION@ in there, pull from the cdn<commit_after>#!/bin/bash

ROOT=`pwd`"/vendor/assets"
if [  -n "$1" ]
then
    echo "downloading $1"
    cd $ROOT/javascripts/
    rm yui.js yui-min.js yui-debug.js
    wget "http://yui.yahooapis.com/$1/build/yui/yui-min.js"
    wget "http://yui.yahooapis.com/$1/build/yui/yui.js"
    wget "http://yui.yahooapis.com/$1/build/yui/yui-debug.js"
    cd ../..
else
    echo "run this with the version number, e.g. ./update_yui.sh 3.8.1"
fi
{'fraction_non_alphanumeric': 0.17347956131605186, 'fraction_numerical': 0.01794616151545364, 'mean_word_length': 2.7602996254681647, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6365570', 'n_tokens_mistral': 441, 'n_tokens_neox': 423, 'n_words': 105}