<commit_before>'use strict';
//Firebase.enableLogging(true);
chrome.tabs.query({currentWindow: true, active: true}, function(tabs){
  var currentTab = CryptoJS.SHA1(tabs[0].url);
  var f = new Firebase('https://dazzling-heat-2465.firebaseio.com/web/data/' + currentTab);

  f.transaction(function(curr) {
    if (isNaN(parseFloat(curr))) {
      return 1; // initialize to 1.
    }
    else {
      return curr + 1; // increment.
    }
  }, function() {
      // Once the transaction has completed, update the UI (and watch for updates).<commit_msg>Changes location of site data from root data store to its own node.<commit_after>'use strict';
//Firebase.enableLogging(true);
chrome.tabs.query({currentWindow: true, active: true}, function(tabs){
  var currentTab = CryptoJS.SHA1(tabs[0].url);
  var f = new Firebase('https://dazzling-heat-2465.firebaseio.com/web/data/sites/' + currentTab);

  f.transaction(function(curr) {
    if (isNaN(parseFloat(curr))) {
      return 1; // initialize to 1.
    }
    else {
      return curr + 1; // increment.
    }
  }, function() {
      // Once the transaction has completed, update the UI (and watch for updates).
{'fraction_non_alphanumeric': 0.14680483592400692, 'fraction_numerical': 0.015544041450777202, 'mean_word_length': 3.406844106463878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2121181', 'n_tokens_mistral': 376, 'n_tokens_neox': 362, 'n_words': 95}