<commit_before>define([
    'underscore',
    'tools/tool'
], function(_, Tool) {

    var helloWorld = Tool.extend({
        init: function(context, options) {
            this.name = 'hello-world';
            this.placeholder = options.placeholder;
            this.state = _.extend({
                show: {
                    'world': {

                    }
                },
                time: '1980',
                timeRange: [1800, 2000],
                yaxis: {
                    indicator: 'gdp'
                },
                waffle: {
                    path: '../src/tools/hello-world/waffles/'
                },
                stats: {
                    path: '../src/tools/hello-world/waffles/stats/'
                }
            }, options.state);

            //todo: refactor the way we pass the state forward
            options.state = this.state;

            //todo: selectors should be improved
            this.components = {
                "barchart": ".vizabi-tool-viz",
                'timeslider': '.vizabi-tool-timeslider',
                'buttonlist': '.vizabi-tool-buttonlist'
                // "title": ".vizabi-tool-title",
            };

            this._super(context, options);
        },

        // At tool level, we only pass the callback and return the defered
        // from super to vizabi.js
        render: function() {
            return this._super(function() {
            });<commit_msg>Fixed bar-chart path on Hello World<commit_after>define([
    'underscore',
    'tools/tool'
], function(_, Tool) {

    var helloWorld = Tool.extend({
        init: function(context, options) {
            this.name = 'hello-world';
            this.placeholder = options.placeholder;
            this.state = _.extend({
                show: {
                    'world': {

                    }
                },
                time: '1980',
                timeRange: [1800, 2000],
                yaxis: {
                    indicator: 'gdp'
                },
                waffle: {
                    path: '../src/tools/hello-world/waffles/'
                },
                stats: {
                    path: '../src/tools/hello-world/waffles/stats/'
                }
            }, options.state);

            //todo: refactor the way we pass the state forward
            options.state = this.state;

            //todo: selectors should be improved
            this.components = {
                'bar-chart': '.vizabi-tool-viz',
                'timeslider': '.vizabi-tool-timeslider',
                'buttonlist': '.vizabi-tool-buttonlist'
                // "title": ".vizabi-tool-title",
            };

            this._super(context, options);
        },

        // At tool level, we only pass the callback and return the defered
        // from super to vizabi.js
        render: function() {
            return this._super(function() {
            });
{'fraction_non_alphanumeric': 0.12131480853947814, 'fraction_numerical': 0.008132836326668925, 'mean_word_length': 1.12987012987013, 'pattern_counts': {'":': 3, '<': 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': '7470189', 'n_tokens_mistral': 818, 'n_tokens_neox': 741, 'n_words': 167}