<commit_before>
var TrashboxClass = Class.create(HomeMarksApp,ActionBoxMixins,BookmarkSortableMixins,{
  
  initialize: function($super) { 
    $super();
    this.superActionAreaMixins();
    this.class = 'Trashbox';
    this.box = $('trashbox');
    this.id = parseInt(this.sortableList().id.sub('trashbox_list_',''));
    this._initTrashboxEvents();
  },
  
  open: function() {
    this.setField(this.legendTrashbox);
    this.loadTrashbox();
    this.showFieldsetProgress();
    this.trashboxList.blindUp({duration: 0.35});
  },
  
  loadTrashbox: function() {
    if (this.trashboxList.loaded) { return true };
    var request = new Ajax.Request('/trashbox/bookmarks',{asynchronous:false,method:'get'});
    var bookmarks = request.transport.responseText.evalJSON();
    this.trashboxList.loaded = true;
  },
  
  
  
  _initTrashboxEvents: function() {
    // this._buildBookmarksSortables();
    // this.legendTrashbox.observe('click',this.showTrashbox.bindAsEventListener(this));
  }
  
});


document.observe('dom:loaded', function(){
  Trashbox = new TrashboxClass;
});
<commit_msg>Nice... trashbox is now working.<commit_after>
var TrashboxClass = Class.create(HomeMarksApp,ActionBoxMixins,BookmarkSortableMixins,{
  
  initialize: function($super) { 
    $super();
    this.superActionAreaMixins();
    this.class = 'Trashbox';
    this.box = $('trashbox');
    this.id = parseInt(this.trashboxList.id.sub('trashbox_list_',''));
    this._initTrashboxEvents();
  },
  
  open: function() {
    this.setField(this.legendTrashbox);
    this.load();
    this.hideProgressAndShowList(this.trashboxList);
  },
  
  load: function() {
    if (this.trashboxList.loaded) { return true };
    var request = new Ajax.Request('/trashbox/bookmarks',{asynchronous:false,method:'get'});
    var bookmarkData = request.transport.responseText.evalJSON();
    bookmarkData.each(function(bm){
      new BookmarkBuilder(this,bm.bookmark);
    }.bind(this));
    this.trashboxList.loaded = true;
  },
  
  _initTrashboxEvents: function() {
    this._buildBookmarksSortables();
    this.legendTrashbox.observe('click',this.open.bindAsEventListener(this));
  }
  
});


document.observe('dom:loaded', function(){
  Trashbox = new TrashboxClass;
});

{'fraction_non_alphanumeric': 0.15453327378293882, 'fraction_numerical': 0.0013398838767306833, 'mean_word_length': 4.209302325581396, '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': '2353202', 'n_tokens_mistral': 772, 'n_tokens_neox': 752, 'n_words': 98}