<commit_before>'use strict';

define(['src/util/color'], function (Color) {
    return {
        getChart(x, y, options) {
            if(x.length !== y.length || y.length === 0) {
                throw new Error('Invalid data length');
            }
            var chart = {
                data: [],
                axis: [{
                    label: options.xLabel || '',
                }, {
                    label: options.yLabel || '',
                }]
            };

            var colors = Color.getDistinctColors(species.length);

            var species = Object.keys(y[0]);
            for (var i = 0; i < species.length; i++) {
                var data = {};
                chart.data.push(data);
                data.y = y.map(function (y) {
                    return y[species[i]];
                });<commit_msg>chart default options<commit_after>'use strict';

define(['src/util/color'], function (Color) {
    return {
        getChart(x, y, options) {
            options = options || {};
            if(x.length !== y.length || y.length === 0) {
                throw new Error('Invalid data length');
            }
            var chart = {
                data: [],
                axis: [{
                    label: options.xLabel || '',
                }, {
                    label: options.yLabel || '',
                }]
            };

            var colors = Color.getDistinctColors(species.length);

            var species = Object.keys(y[0]);
            for (var i = 0; i < species.length; i++) {
                var data = {};
                chart.data.push(data);
                data.y = y.map(function (y) {
                    return y[species[i]];
                });
{'fraction_non_alphanumeric': 0.14294015107495642, 'fraction_numerical': 0.003486345148169669, 'mean_word_length': 1.131188118811881, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3480402', 'n_tokens_mistral': 470, 'n_tokens_neox': 431, 'n_words': 98}