<commit_before>define(["./textTagView", "backbone","jquery","handlebar"], function(TextTagView){

  var textTagsView = Backbone.View.extend({

    initialize: function(options) {
      _.extend(this, options);
      this.model.textTags.on('add', this.render, this);//could be updated in future.

      this.model.addTag();
    },

    render: function(textTagModel) {
      //to do : add connection lines;
      console.log(textTagModel,'textTagModel');
      this.currentMarker = new TextTagView({
        model: textTagModel,
        category: this.model,
        map: this.map
      });
      //another way to do it is to set('category', this.model) in textTag.js)
    }

  });

  return textTagsView;
});<commit_msg>add hasView controller<commit_after>define(["./textTagView", "backbone","jquery","handlebar"], function(TextTagView){

  var textTagsView = Backbone.View.extend({

    initialize: function(options) {
      _.extend(this, options);
      this.collection.on('renderNext', this.render, this);//could be updated in future.
    },

    render: function(i) {
      //to do : add connection lines;
      i = i || 0;
      var textTagModel = this.collection.models[i];
      console.log(textTagModel,'textTagModel');
      if (textTagModel.get('hasView')) {
        textTagModel.trigger('showView');
      } else {
        this.currentMarker = new TextTagView({
          model: textTagModel,
          map: this.map
        });
      }
      //another way to do it is to set('category', this.model) in textTag.js)
    }

  });

  return textTagsView;
});
{'fraction_non_alphanumeric': 0.14550095724313974, 'fraction_numerical': 0.0006381620931716656, 'mean_word_length': 2.824390243902439, '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': '1062372', 'n_tokens_mistral': 479, 'n_tokens_neox': 464, 'n_words': 105}