<commit_before>

cdb.admin.UserMenu = cdb.ui.common.Dropdown.extend({
  open: function(ev, target) {
    this.isOpen = true;

    target = target || this.options.target;
    this.options.target = target;

    // Positionate
    var targetPos = $(target)[this.options.position || 'offset']()
      , targetWidth = $(target).outerWidth()
      , targetHeight = $(target).outerHeight()

    this.$el.css({
      top: targetPos.top + targetHeight + 10,
      left: targetPos.left + targetWidth - this.options.width + 15,
      width: this.options.width,
      margin: "-10px 0 0 0",
      display: "block",
      opacity: 0
    });

    // Add selected class to the target
    $(target).addClass("selected");

    // Show
    this.$el.animate({
      margin: "0px 0 0 0",
      opacity: 1
    },this.options.speedIn);
  },

  hide: function(done) {
    var self = this;
    this.isOpen = false;

    this.$el.animate({
      margin: "-10px 0 0 0",
      opacity: 0
    },this.options.speedOut, function(){
      // Remove selected class
      $(self.options.target).removeClass("selected");
      // And hide it
      self.$el.hide();
      done && done();
    });
  }
});<commit_msg>changing closing effect to user_menu view<commit_after>

cdb.admin.UserMenu = cdb.ui.common.Dropdown.extend({
  open: function(ev, target) {
    this.isOpen = true;

    target = target || this.options.target;
    this.options.target = target;

    // Positionate
    var targetPos = $(target)[this.options.position || 'offset']()
      , targetWidth = $(target).outerWidth()
      , targetHeight = $(target).outerHeight()

    this.$el.css({
      top: targetPos.top + targetHeight + 10,
      left: targetPos.left + targetWidth - this.options.width + 15,
      width: this.options.width,
      margin: "-10px 0 0 0",
      display: "block",
      opacity: 0
    });

    // Add selected class to the target
    $(target).addClass("selected");

    // Show
    this.$el.animate({
      margin: "0px 0 0 0",
      opacity: 1
    },this.options.speedIn);
  },

  hide: function(done) {
    var self = this;
    this.isOpen = false;

    this.$el.animate({
      margin: "10px 0 0 0",
      opacity: 0
    },this.options.speedOut, function(){
      // Remove selected class
      $(self.options.target).removeClass("selected");
      // And hide it
      self.$el.hide();
      done && done();
    });
  }
});
{'fraction_non_alphanumeric': 0.1579388353581902, 'fraction_numerical': 0.017595307917888565, 'mean_word_length': 2.3492286115007013, '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': '4216997', 'n_tokens_mistral': 792, 'n_tokens_neox': 741, 'n_words': 179}