<commit_before>App.views.Project.addChild('ProjectBackers', _.extend({
  el: '#project_backers',

  activate: function(){
    this.$loader = this.$("#backers-loading img");
    this.$loaderDiv = this.$("#backers-loading");
    this.$results = this.$(".results");
    this.path = this.$el.data('path');
    this.filter = {available_to_count: true};
    this.setupScroll();
    this.parent.on('selectTab', this.fetchPage);
  },

  events:{
    "click input[type='radio'][name=backer_state]": "showBackers"
  },

  showBackers: function(){
    var state = $('input:radio[name=backer_state]:checked').val();
    this.filter = {};
    this.filter[state] = true;
    this.firstPage();
    this.fetchPage();
  }

}, Skull.InfiniteScroll));
<commit_msg>fix bug in pending backers filter inside project show for admin<commit_after>App.views.Project.addChild('ProjectBackers', _.extend({
  el: '#project_backers',

  activate: function(){
    this.$loader = this.$("#backers-loading img");
    this.$loaderDiv = this.$("#backers-loading");
    this.$results = this.$(".results");
    this.path = this.$el.data('path');
    this.filter = {available_to_count: true};
    this.setupScroll();
    this.parent.on('selectTab', this.fetchPage);
  },

  events:{
    "click input[type='radio'][name=backer_state]": "showBackers"
  },

  showBackers: function(){
    var state = $('input:radio[name=backer_state]:checked').val();
    if(state == 'waiting_confirmation'){
      this.filter = {with_state: 'waiting_confirmation'};
    }
    else{
      this.filter = {available_to_count: true};
    }
    this.firstPage();
    this.fetchPage();
  }

}, Skull.InfiniteScroll));

{'fraction_non_alphanumeric': 0.18840579710144928, 'fraction_numerical': 0.0, 'mean_word_length': 4.006042296072508, 'pattern_counts': {'":': 2, '<': 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': '5039729', 'n_tokens_mistral': 542, 'n_tokens_neox': 535, 'n_words': 88}