<commit_before>// This is example code to set browser cookies. Assuming that your app uses prototypejs
// These methods need to be there ideally on each page.

function set_cookie(cname, cvalue, exdays) {
  var d = new Date();
  d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
  var expires = "expires=" + d.toUTCString();
  document.cookie = cname + "=" + cvalue + "; " + expires;
}

var set_browser_offsets = function() {
  var winterOffset = -1 * (new Date(2010, 11, 21)).getTimezoneOffset() * 60;
  var summerOffset = -1 * (new Date(2010, 5, 21)).getTimezoneOffset() * 60;
  set_cookie('utc_offset_summer', summerOffset, 360);
  set_cookie('utc_offset_winter', winterOffset, 360);
}

document.observe("dom:loaded", function() {
  set_browser_offsets();
});

Ajax.Responders.register({
  onCreate: function () {
    set_browser_offsets();
  }
});
 <commit_msg>Added styling back to readme. Changes to prototype js. Minor cleanups<commit_after>// This is example code to set browser cookies. Assuming that your app uses prototypejs
// These methods need to be there ideally on each page.

var set_cookie = function(cname, cvalue, exdays) {
  var d = new Date();
  d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
  var expires = "expires=" + d.toUTCString();
  document.cookie = cname + "=" + cvalue + "; " + expires;
}

var set_browser_offsets = function() {
  var winterOffset = -1 * (new Date(2010, 11, 21)).getTimezoneOffset() * 60;
  var summerOffset = -1 * (new Date(2010, 5, 21)).getTimezoneOffset() * 60;
  set_cookie('utc_offset_summer', summerOffset, 360);
  set_cookie('utc_offset_winter', winterOffset, 360);
}

document.observe("dom:loaded", function() {
  set_browser_offsets();
});

Ajax.Responders.register({
  onCreate: function () {
    set_browser_offsets();
  }
});
 
{'fraction_non_alphanumeric': 0.1478405315614618, 'fraction_numerical': 0.04097452934662237, 'mean_word_length': 4.362017804154303, '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': '4660903', 'n_tokens_mistral': 677, 'n_tokens_neox': 596, 'n_words': 169}