<commit_before>var MenuView = Backbone.Marionette.ItemView.extend({
  template: "#menu-template",

  events: {
    "click #privateEvents": "privateEvents",
    "click #publicEvents":  "publicEvents",
    "click #pullRequests":  "pullRequests",
    "click #quit": "exit"
  },

  privateEvents: function() {
    if(this.isSelected("#privateEvents")) return;

    this.select("#privateEvents");

    var eventsCollection = new EventsCollection(DashCat.user.get("login"));
    var view = this;
    var eventsView = new EventsView({
      collection: eventsCollection
    });

    eventsCollection.fetch({
      success: function() {
        DashCat.Main.app.content.show(eventsView);
      }
    });
  },

  pullRequests: function() {
    if(this.isSelected("#pullRequests")) return;

    this.select("#pullRequests");

    var pullRequestsCollection = new PullRequestsCollection();
    var pullRequestsView = new PullRequestsView({
      collection: pullRequestsCollection
    });

    pullRequestsCollection.fetch({
      success: function() {
        DashCat.Main.app.content.show(pullRequestsView);
      }
    });
  },

  publicEvents: function() {
    if(this.isSelected("#publicEvents")) return;

    this.select("#publicEvents");

    var publicEventsCollection = new PublicEventsCollection();
    var eventsView = new EventsView({
      collection: publicEventsCollection
    });

    publicEventsCollection.fetch({
      success: function() {
        DashCat.Main.app.content.show(eventsView);
      }
    });
  },

  onRender: function() {
    this.privateEvents();
  },

  isSelected: function(id) {
    return this.$(id).find(".menu-icon.selected").length > 0;
  },

  select: function(id) {
    this.$(".menu-icon").removeClass("selected");
    this.$(id).find(".menu-icon").addClass("selected");
  },

  exit: function() {<commit_msg>Up up and away when clicking on an already clicked menu item<commit_after>var MenuView = Backbone.Marionette.ItemView.extend({
  template: "#menu-template",

  events: {
    "click #privateEvents": "privateEvents",
    "click #publicEvents":  "publicEvents",
    "click #pullRequests":  "pullRequests",
    "click #quit": "exit"
  },

  privateEvents: function() {
    if(this.isSelected("#privateEvents")) {
      $(window).scrollTop(0);
      return;
    }

    this.select("#privateEvents");

    var eventsCollection = new EventsCollection(DashCat.user.get("login"));
    var view = this;
    var eventsView = new EventsView({
      collection: eventsCollection
    });

    eventsCollection.fetch({
      success: function() {
        DashCat.Main.app.content.show(eventsView);
      }
    });
  },

  pullRequests: function() {
    if(this.isSelected("#pullRequests")) {
      $(window).scrollTop(0);
      return;
    }

    this.select("#pullRequests");

    var pullRequestsCollection = new PullRequestsCollection();
    var pullRequestsView = new PullRequestsView({
      collection: pullRequestsCollection
    });

    pullRequestsCollection.fetch({
      success: function() {
        DashCat.Main.app.content.show(pullRequestsView);
      }
    });
  },

  publicEvents: function() {
    if(this.isSelected("#publicEvents")) {
      $(window).scrollTop(0);
      return;
    }

    this.select("#publicEvents");

    var publicEventsCollection = new PublicEventsCollection();
    var eventsView = new EventsView({
      collection: publicEventsCollection
    });

    publicEventsCollection.fetch({
      success: function() {
        DashCat.Main.app.content.show(eventsView);
      }
    });
  },

  onRender: function() {
    this.privateEvents();
  },

  isSelected: function(id) {
    return this.$(id).find(".menu-icon.selected").length > 0;
  },

  select: function(id) {
    this.$(".menu-icon").removeClass("selected");
    this.$(id).find(".menu-icon").addClass("selected");
  },

  exit: function() {
{'fraction_non_alphanumeric': 0.15120186094598087, 'fraction_numerical': 0.0012923235978288964, 'mean_word_length': 3.2527472527472527, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 5, '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': '5370936', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1119, 'n_words': 198}