<commit_before>var columnDefs = [
    {
        headerName: 'Athlete Fields',
        children: [
            {
                headerName: 'When and Where',
                children: [
                    {headerName: 'Country', field: 'country', width: 120, rowGroup: true},
                    {headerName: 'Year', field: 'year', width: 75, rowGroup: true}
                ]
            },
            {
                headerName: 'Athlete',
                children: [
                    {headerName: 'Name', field: 'athlete', width: 150},
                    {headerName: 'Name Length', valueGetter: 'data ? data.athlete.length : ""'},
                    {
                        headerName: 'Age',
                        field: 'age',
                        width: 90
                    },
                    {headerName: 'Sport', field: 'sport', width: 120, rowGroup: true}
                ]
            }
        ]
    },
    {
        headerName: 'Medal Fields',
        children: [
            {headerName: 'Date', field: 'date', width: 110},
            {
                headerName: 'Medal Types',
                children: [
                    {headerName: 'Silver', field: 'silver', width: 100},
                    {headerName: 'Bronze', field: 'bronze', width: 100},
                    {headerName: 'Total', field: 'total', width: 100}
                ]
            }
        ]
    },
];

var gridOptions = {
    defaultColDef: {
        sortable: true,
        filter: true
    },
    columnDefs: columnDefs,
    rowSelection: 'multiple',
    pinnedTopRowData: [
        {
            athlete: 'Floating Top Athlete',
            age: 999,
            country: 'Floating Top Country',
            year: 2020,
            date: '01-08-2020',
            sport: 'Floating Top Sport',
            gold: 22,
            silver: 33,
            bronze: 44,
            total: 55
        }
    ],
    pinnedBottomRowData: [
        {
            athlete: 'Floating Bottom Athlete',
            age: 888,
            country: 'Floating Bottom Country',
            year: 2030,
            date: '01-08-2030',
            sport: 'Floating Bottom Sport',
            gold: 222,
            silver: 233,
            bronze: 244,
            total: 255
        }
    ]
};

function getBooleanValue(checkboxSelector) {
    return document.querySelector(checkboxSelector).checked;
}

function getUIValue(checkboxSelector, onWindow) {
    if (!getBooleanValue(checkboxSelector)) {
        return false;
    }
    var factory = document.querySelector(checkboxSelector + 'Value').value;
    return factory();
}

function makeCustomContent () {
    return [
        [],
        [{data: {type: 'String', value: 'Summary'}}],
        [{data: {type: 'String', value: 'Sales'}, mergeAcross: 2}, {data: {type: 'Number', value: '3695.36'}}],
        []
    ]
}

function myCellCallback(params) {
    if (params.value && params.value.toUpperCase) {
        return params.value.toUpperCase();
    } else {
        return params.value;
    }
}
<commit_msg>RTI-75 - fixed export example (fileName option)<commit_after>var columnDefs = [
    {
        headerName: 'Athlete Fields',
        children: [
            {
                headerName: 'When and Where',
                children: [
                    {headerName: 'Country', field: 'country', width: 120, rowGroup: true},
                    {headerName: 'Year', field: 'year', width: 75, rowGroup: true}
                ]
            },
            {
                headerName: 'Athlete',
                children: [
                    {headerName: 'Name', field: 'athlete', width: 150},
                    {headerName: 'Name Length', valueGetter: 'data ? data.athlete.length : ""'},
                    {
                        headerName: 'Age',
                        field: 'age',
                        width: 90
                    },
                    {headerName: 'Sport', field: 'sport', width: 120, rowGroup: true}
                ]
            }
        ]
    },
    {
        headerName: 'Medal Fields',
        children: [
            {headerName: 'Date', field: 'date', width: 110},
            {
                headerName: 'Medal Types',
                children: [
                    {headerName: 'Silver', field: 'silver', width: 100},
                    {headerName: 'Bronze', field: 'bronze', width: 100},
                    {headerName: 'Total', field: 'total', width: 100}
                ]
            }
        ]
    },
];

var gridOptions = {
    defaultColDef: {
        sortable: true,
        filter: true
    },
    columnDefs: columnDefs,
    rowSelection: 'multiple',
    pinnedTopRowData: [
        {
            athlete: 'Floating Top Athlete',
            age: 999,
            country: 'Floating Top Country',
            year: 2020,
            date: '01-08-2020',
            sport: 'Floating Top Sport',
            gold: 22,
            silver: 33,
            bronze: 44,
            total: 55
        }
    ],
    pinnedBottomRowData: [
        {
            athlete: 'Floating Bottom Athlete',
            age: 888,
            country: 'Floating Bottom Country',
            year: 2030,
            date: '01-08-2030',
            sport: 'Floating Bottom Sport',
            gold: 222,
            silver: 233,
            bronze: 244,
            total: 255
        }
    ]
};

function getBooleanValue(checkboxSelector) {
    return document.querySelector(checkboxSelector).checked;
}

function getUIValue(checkboxSelector, onWindow) {
    if (!getBooleanValue(checkboxSelector)) {
        return false;
    }

    return document.querySelector(checkboxSelector + 'Value').value;
}

function makeCustomContent () {
    return [
        [],
        [{data: {type: 'String', value: 'Summary'}}],
        [{data: {type: 'String', value: 'Sales'}, mergeAcross: 2}, {data: {type: 'Number', value: '3695.36'}}],
        []
    ]
}

function myCellCallback(params) {
    if (params.value && params.value.toUpperCase) {
        return params.value.toUpperCase();
    } else {
        return params.value;
    }
}

{'fraction_non_alphanumeric': 0.12450980392156863, 'fraction_numerical': 0.02712418300653595, 'mean_word_length': 1.4174565560821486, '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': '377189', 'n_tokens_mistral': 1859, 'n_tokens_neox': 1662, 'n_words': 402}