<commit_before>var defaultApp = 'contactsviewer';
var specialApps = {
    "allApps"  : "allApps",
    "publish"  : "publish",
    "viewAll"  : "viewAll",
    // "exploreApps" : "exploreApps",
    // "registryApp" : "registryApp",
    "connect"  : "connect",
    "settings" : "settings"
};
var defaultSubSections = {};
var loggedIn = true;

$(document).ready(function() {
    $.history.init(function(hash){
        if(hash === "") {
            // initialize your app
            loadDiv(window.location.hash.substring(1) || $('.installed-apps a').data('id') || defaultApp);
        } else {
            loadDiv(window.location.hash.substring(1) || $('.installed-apps a').data('id') || defaultApp);
        }
    }, { unescape: ",/" });

  $('body').delegate('.install', 'click', function(e) {
    var $e = $(e.currentTarget);
    var id = $e.attr('id');
    $.get('/registry/add/' + id, function() {
      window.location = 'you#You-' + id;
    });
    return false;
  });

  $('body').delegate('.oauthLink','click', function(e) {
    var options = "width=" + $(this).data('width') + ",height=" + $(this).data('height') + ",status=no,scrollbars=no,resizable=no";
    var popup = window.open($(this).attr('href'), "account", options);
    popup.focus();
    return false;
  });

  $('.your-apps').click(function() {
    $('.blue').removeClass('blue');
    $(this).addClass('blue');
    if (document.getElementById('appFrame').contentWindow.filterItems) {
      document.getElementById('appFrame').contentWindow.filterItems($(this).attr('id'));
    }
  });

  var modalClosed = true;
  function doModal(sectionNum) {
    if (!modalClosed) return;
    modalClosed = false;
    var modal = $('#basic-modal-content').modal({onClose: function (dialog) {
      modalClosed = true;
      $.modal.close();
    }});
    $('#simplemodal-overlay,#no-thanks,#close-button,#close-this,.gotit-button').click(function(e) {
      $.cookie("firstvisit", null, {path: '/' });
      modal.close();
    });
  }

  if (window.location.hash !== '#You-connect' && $.cookie("firstvisit") === 'true') {
      if (window.location.hash === '#Create-devdocs' || window.location.hash === '#Explore-Featured') {
        $.cookie("firstvisit", null, {path: '/' });
      } else {
        doModal();
      }<commit_msg>Corrected indentation.<commit_after>var defaultApp = 'contactsviewer';
var specialApps = {
  "allApps"  : "allApps",
  "publish"  : "publish",
  "viewAll"  : "viewAll",
  // "exploreApps" : "exploreApps",
  // "registryApp" : "registryApp",
  "connect"  : "connect",
  "settings" : "settings"
};
var defaultSubSections = {};
var loggedIn = true;

$(document).ready(function() {
  $.history.init(function(hash){
    if(hash === "") {
      // initialize your app
      loadDiv(window.location.hash.substring(1) || $('.installed-apps a').data('id') || defaultApp);
    } else {
      loadDiv(window.location.hash.substring(1) || $('.installed-apps a').data('id') || defaultApp);
    }
  }, { unescape: ",/" });

  $('body').delegate('.install', 'click', function(e) {
    var $e = $(e.currentTarget);
    var id = $e.attr('id');
    $.get('/registry/add/' + id, function() {
      window.location = 'you#You-' + id;
    });
    return false;
  });

  $('body').delegate('.oauthLink','click', function(e) {
    var options = "width=" + $(this).data('width') + ",height=" + $(this).data('height') + ",status=no,scrollbars=no,resizable=no";
    var popup = window.open($(this).attr('href'), "account", options);
    popup.focus();
    return false;
  });

  $('.your-apps').click(function() {
    $('.blue').removeClass('blue');
    $(this).addClass('blue');
    if (document.getElementById('appFrame').contentWindow.filterItems) {
      document.getElementById('appFrame').contentWindow.filterItems($(this).attr('id'));
    }
  });

  var modalClosed = true;
  function doModal(sectionNum) {
    if (!modalClosed) return;
    modalClosed = false;
    var modal = $('#basic-modal-content').modal({onClose: function (dialog) {
      modalClosed = true;
      $.modal.close();
    }});
    $('#simplemodal-overlay,#no-thanks,#close-button,#close-this,.gotit-button').click(function(e) {
      $.cookie("firstvisit", null, {path: '/' });
      modal.close();
    });
  }

  if (window.location.hash !== '#You-connect' && $.cookie("firstvisit") === 'true') {
    if (window.location.hash === '#Create-devdocs' || window.location.hash === '#Explore-Featured') {
      $.cookie("firstvisit", null, {path: '/' });
    } else {
      doModal();
    }
{'fraction_non_alphanumeric': 0.22485076276807428, 'fraction_numerical': 0.0008843687817820031, 'mean_word_length': 3.3625843780135005, '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': '7376904', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1440, 'n_words': 237}