<commit_before>#!/bin/bash
#
# The install directory is hard-coded. TOOD: allow the directory to be specified on the command line.
#


function rails_jquery {
  curl -o public/javascripts/rails.js http://github.com/rails/jquery-ujs/raw/master/src/rails.js
}

function jquery_install {
  curl -o public/javascripts/jquery.js http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
}

function  jquery_ui_install {
  curl -o public/javascripts/jquery_ui.js http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js
}<commit_msg>Allow specifying jQuery/jQuery UI version number and update defaults<commit_after>#!/bin/bash
#
# The install directory is hard-coded. TOOD: allow the directory to be specified on the command line.
#

[[ -z "$JQUERY_VERSION_NUMBER" ]] && JQUERY_VERSION_NUMBER="1.6.1"
[[ -z "$JQUERY_UI_VERSION_NUMBER" ]] && JQUERY_UI_VERSION_NUMBER="1.8.13"

function rails_jquery {
  curl -o public/javascripts/rails.js http://github.com/rails/jquery-ujs/raw/master/src/rails.js
}

function jquery_install {
  if [ -z "$1" ]
  then
      version=$JQUERY_VERSION_NUMBER
  else
      version="$1"
  fi
  curl -o public/javascripts/jquery.js "http://ajax.googleapis.com/ajax/libs/jquery/$version/jquery.min.js"
}

function jquery_ui_install {
  if [ -z "$1" ]
  then
      version=$JQUERY_UI_VERSION_NUMBER
  else
      version="$1"
  fi

  curl -o public/javascripts/jquery_ui.js "http://ajax.googleapis.com/ajax/libs/jqueryui/$version/jquery-ui.min.js"
}
{'fraction_non_alphanumeric': 0.1368846931894808, 'fraction_numerical': 0.011463250168577209, 'mean_word_length': 3.8815789473684212, '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': '6707539', 'n_tokens_mistral': 549, 'n_tokens_neox': 517, 'n_words': 100}