<commit_before>
  /**
   *  Twitter category item view
   *  - It just needs a twitter category model
   */

  cdb.common.TwitterCategory = cdb.core.View.extend({

    className: 'twitter-category',

    _MAX_CATEGORIES: 4,
    _MAX_TERMS: 29,

    events: {
      'focusout input.text':  '_onInputFocusOut',
      'focusin input.text':   '_onInputFocusIn',
      'keydown input.text':   '_onInputChange',
      'keypress input.text':  '_onInputChange',
      'keyup input.text':     '_onInputChange'
    },

    initialize: function() {
      this.template = cdb.templates.getTemplate('common/views/twitter_categories/twitter_category');
      this._initBinds();
    },

    render: function() {
      this.$el.append(
        this.template({
          terms: this.model.get('terms'),
          category: this.model.get('category'),
          counter: this.model.get('counter')
        })
      );

      // Show category
      this.show();

      return this;
    },

    _initBinds: function() {<commit_msg>twitter category getting template from old common<commit_after>
  /**
   *  Twitter category item view
   *  - It just needs a twitter category model
   */

  cdb.common.TwitterCategory = cdb.core.View.extend({

    className: 'twitter-category',

    _MAX_CATEGORIES: 4,
    _MAX_TERMS: 29,

    events: {
      'focusout input.text':  '_onInputFocusOut',
      'focusin input.text':   '_onInputFocusIn',
      'keydown input.text':   '_onInputChange',
      'keypress input.text':  '_onInputChange',
      'keyup input.text':     '_onInputChange'
    },

    initialize: function() {
      this.template = cdb.templates.getTemplate('old_common/views/twitter_categories/twitter_category');
      this._initBinds();
    },

    render: function() {
      this.$el.append(
        this.template({
          terms: this.model.get('terms'),
          category: this.model.get('category'),
          counter: this.model.get('counter')
        })
      );

      // Show category
      this.show();

      return this;
    },

    _initBinds: function() {
{'fraction_non_alphanumeric': 0.13495145631067962, 'fraction_numerical': 0.002912621359223301, 'mean_word_length': 2.406611570247934, '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': '7395029', 'n_tokens_mistral': 651, 'n_tokens_neox': 620, 'n_words': 122}