<commit_before>export default Ember.Route.extend({
  model: function() {
    return ['red', 'yellow', 'blue'];
  }
});<commit_msg>added redirect handler which will check for search parameters in the url and if access_token is present it will save it into localStorage<commit_after>export default Ember.Route.extend({
  model: function() {
    return ['red', 'yellow', 'blue'];
  },
  redirect: function() {
    var hash = window.location.search;
    if (hash !== "") {
      var pars = hash.split('&');
      var tmp = pars[0].split("=")
      if (tmp[0] == "?access_token")
        localStorage.setItem("access_token", tmp[1]);
    }
  }
});
{'fraction_non_alphanumeric': 0.16510903426791276, 'fraction_numerical': 0.004672897196261682, 'mean_word_length': 3.592857142857143, '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': '5173691', 'n_tokens_mistral': 199, 'n_tokens_neox': 194, 'n_words': 58}