<commit_before>#!/bin/bash -e

# download required JS libraries.
JQUERY=2.1.1
BOOTSTRAP=3.2.0
HANDLEBARS=1.3.0
EMBERJS=1.7.0
EMBERDATA=1.0.0-beta.9
FONTAWESOME=4.2.0

function FetchIfNotExists {
  CheckFile=$1
  FileURL=$2
  if [ ! -f "$CheckFile" ]; then 
    echo "Retreiving $FileURL ..."
    curl --insecure -Lso "$CheckFile" "$FileURL"
  fi
}

mkdir -p js css lib
# should improve: (but we need a place where httpd may write siteconfig.php)
chmod 777 data
FetchIfNotExists js/jquery.min.js http://code.jquery.com/jquery-${JQUERY}.min.js
FetchIfNotExists js/jquery.min.map http://code.jquery.com/jquery-${JQUERY}.min.map
FetchIfNotExists js/handlebars.js http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v${HANDLEBARS}.js<commit_msg>ember data 1.0-beta10 is out<commit_after>#!/bin/bash -e

# download required JS libraries.
JQUERY=2.1.1
BOOTSTRAP=3.2.0
HANDLEBARS=1.3.0
EMBERJS=1.7.0
EMBERDATA=1.0.0-beta.10
FONTAWESOME=4.2.0

function FetchIfNotExists {
  CheckFile=$1
  FileURL=$2
  if [ ! -f "$CheckFile" ]; then 
    echo "Retreiving $FileURL ..."
    curl --insecure -Lso "$CheckFile" "$FileURL"
  fi
}

mkdir -p js css lib
# should improve: (but we need a place where httpd may write siteconfig.php)
chmod 777 data
FetchIfNotExists js/jquery.min.js http://code.jquery.com/jquery-${JQUERY}.min.js
FetchIfNotExists js/jquery.min.map http://code.jquery.com/jquery-${JQUERY}.min.map
FetchIfNotExists js/handlebars.js http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v${HANDLEBARS}.js
{'fraction_non_alphanumeric': 0.14834437086092717, 'fraction_numerical': 0.03642384105960265, 'mean_word_length': 4.053511705685619, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '871866', 'n_tokens_mistral': 617, 'n_tokens_neox': 593, 'n_words': 119}