<commit_before>/*
Function which creates a new list
*/
define(["app", "underscore", "collection/blacklist_collection"], function(app, _, BlacklistCollection) {
  var BlacklistService = function() {
    this.blacklist = {};
  };

  _.extend(BlacklistService.prototype, {

    addId: function(id){
      this.blacklist[id] = id;
    },

    createAdsList: function(models){
      var adsList = [];
      var self = this;

      _.each(models, function(model) {
        if (!_.contains(self.blacklist, model.get("id"))) {
          adsList.push(model);
        }
      });


      return new BlacklistCollection(_.sample(adsList, 10););
    }

  });

    return BlacklistService;
});<commit_msg>Fix syntax error<commit_after>/*
Function which creates a new list
*/
define(["app", "underscore", "collection/blacklist_collection"], function(app, _, BlacklistCollection) {
  var BlacklistService = function() {
    this.blacklist = {};
  };

  _.extend(BlacklistService.prototype, {

    addId: function(id){
      this.blacklist[id] = id;
    },

    createAdsList: function(models){
      var adsList = [];
      var self = this;

      _.each(models, function(model) {
        if (!_.contains(self.blacklist, model.get("id"))) {
          adsList.push(model);
        }
      });


      return new BlacklistCollection(_.sample(adsList, 10));
    }

  });

    return BlacklistService;
});
{'fraction_non_alphanumeric': 0.15223665223665223, 'fraction_numerical': 0.002886002886002886, 'mean_word_length': 2.9291784702549575, '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': '4656128', 'n_tokens_mistral': 438, 'n_tokens_neox': 415, 'n_words': 82}