<commit_before>CityDashboard.SummaryVisualization = function ( props ) {

  CityDashboard.Visualization.call( this, props );

  this.viz.addClass('summary-viz');
  this.refresh();
  
}

CityDashboard.SummaryVisualization.prototype = Object.create( CityDashboard.Visualization.prototype );


CityDashboard.SummaryVisualization.prototype.refresh  = function () {

  CityDashboard.Visualization.prototype.refresh.call( this );

  this.viz.append( $('<dl>').addClass('deflist') );

  this.createDefList(this.data);

};
<commit_msg>Updated summary block to use new module structure<commit_after>niclabs.insight.info.Summary = (function($) {
    var constructor = function(dashboard, options) {
        var self = niclabs.insight.info.Block(dashboard, options);

        self.$.addClass('summary-viz');

        // Store the refresh method of the parent
        var refresh = self.refresh;

        self.refresh = function() {
            // Call the parent refresh
            refresh();

            self.$.append($('<dl>').addClass('deflist'));
            self.createDeflist(self.data());
        };

        return self;
    };

    // Register the handler
    niclabs.insight.handler('summary-block', 'info-block', constructor);
})(jQuery);
{'fraction_non_alphanumeric': 0.13951612903225807, 'fraction_numerical': 0.0, 'mean_word_length': 3.25, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3293624', 'n_tokens_mistral': 357, 'n_tokens_neox': 351, 'n_words': 64}