<commit_before>var dispatcher = require('focus').dispatcher;

var detailMixin = {
  /**
   * Register the cartridge.
   */
  _registerCartridge: function registerCartridge(){
    if(!this.cartridgeConfiguration){
      this.cartridgeConfiguration = {};
      console.warn(`
        Your detail page does not have any cartrige configuration, this is not mandarory but recommended.
        It should be a component attribute.
        cartridgeConfiguration = {
          summary: {component: "A React Component"},
          cartridge: {component: "A React Component"}
        };
      `);
    }
    dispatcher.handleServerAction({
      data: {
        cartridgeComponent: this.cartridgeConfiguration.cartridge,
        summaryComponent: this.cartridgeConfiguration.summary
      },
      type: 'update'
    });<commit_msg>[detail] Add component mount method.<commit_after>var dispatcher = require('focus').dispatcher;

var detailMixin = {
  /**
   * Register the cartridge.
   */
  _registerCartridge: function registerCartridge(){
    if(!this.cartridgeConfiguration){
      this.cartridgeConfiguration = {};
      console.warn(`
        Your detail page does not have any cartrige configuration, this is not mandarory but recommended.
        It should be a component attribute.
        cartridgeConfiguration = {
          summary: {component: "A React Component"},
          cartridge: {component: "A React Component"}
        };
      `);
    }
    dispatcher.handleViewAction({
      data: {
        cartridgeComponent: this.cartridgeConfiguration.cartridge,
        summaryComponent: this.cartridgeConfiguration.summary
      },
      type: 'update'
    });
  },
  componentWillMount: function pageMixinWillMount(){
    this._registerCartridge();
{'fraction_non_alphanumeric': 0.09874429223744292, 'fraction_numerical': 0.0, 'mean_word_length': 2.9129464285714284, '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': '6233389', 'n_tokens_mistral': 466, 'n_tokens_neox': 439, 'n_words': 116}