<commit_before>
function adminGraphGetGroup(entry) {
    var $color,
        $item,
        $listMetrics = listMatch('step-1-metrics'),
        $listSeries = listMatch('step-2-series'),
        $listOpers = listMatch('step-2-groups'),
        group;

    if (entry.attr('data-group')) {
        $item = $listOpers.find('[data-group=' + entry.attr('data-group') + ']');

        group = $.extend({
            series: [],
            options: {}
        }, $item.data('value'));

        $item.find('.groupentry').each(function () {
            if (!$.isEmptyObject(entry.data('source').data('expands')))
                group.series.push($.extend({}, entry.data('source').data('expands')[this.getAttribute('data-serie')]));
            else
                group.series.push($.extend({}, $listMetrics.find('[data-serie=' + this.getAttribute('data-serie') +
                    ']').data('value')));
        });
    } else {
        $item = $listSeries.find('[data-serie=' + entry.attr('data-serie') + ']');

        group = {<commit_msg>Fix missing group options when creating graphs.<commit_after>
function adminGraphGetGroup(entry) {
    var $color,
        $item,
        $listMetrics = listMatch('step-1-metrics'),
        $listSeries = listMatch('step-2-series'),
        $listOpers = listMatch('step-2-groups'),
        group;

    if (entry.attr('data-group')) {
        $item = $listOpers.find('[data-group=' + entry.attr('data-group') + ']');

        group = $.extend($item.data('value'), {
            series: [],
            options: {}
        });

        $item.find('.groupentry').each(function () {
            if (!$.isEmptyObject(entry.data('source').data('expands')))
                group.series.push($.extend({}, entry.data('source').data('expands')[this.getAttribute('data-serie')]));
            else
                group.series.push($.extend({}, $listMetrics.find('[data-serie=' + this.getAttribute('data-serie') +
                    ']').data('value')));
        });
    } else {
        $item = $listSeries.find('[data-serie=' + entry.attr('data-serie') + ']');

        group = {
{'fraction_non_alphanumeric': 0.2073055028462998, 'fraction_numerical': 0.0028462998102466793, 'mean_word_length': 2.3160377358490565, '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': '4473582', 'n_tokens_mistral': 631, 'n_tokens_neox': 628, 'n_words': 81}