<commit_before>define(["pilotstats/PilotColumns", "pilotstats/ui/Connector", "pilotstats/ui/FilterUI", "ui/FactionUI", "ui/ShipSilhouetteUI", "../../../../../../coreweb/src/main/js/ui/DataTable"], function(PilotColumns, Connector, FilterUI, FactionUI, ShipSilhouetteUI, DataTable)
{
    "use strict";
    var cellFunctions = {
        "factionKey": function(data)
        {
            return React.createElement(FactionUI,
            {
                factionKey: data.factionKey,
                isSmall: true,
            });
        },
        "shipKey": function(data)
        {
            return React.createElement(ShipSilhouetteUI,
            {
                shipKey: data.shipKey,
                showName: true,
            });
        },
        "description": function(data)
        {
            var answer = data.description;
            if (data.isFlavorText)
            {
                answer = React.DOM.span(
                {
                    className: "flavorText",
                }, data.description);
            }
            return answer;
        },
        "isImplemented": function(data)
        {
            var implementedName = (data.isImplemented ? "accept" : "delete");
            var fileString = iconBase + implementedName + ".png";
            return React.DOM.img(
            {
                className: "isImplementedImage",
                src: fileString,
                title: data.isImplemented,
                value: implementedName,
            });
        },
        "ratioPrimaryWeaponAgility": function(data)
        {
            var value = data.ratioPrimaryWeaponAgility;
            return Math.vizziniFormat(value, 2);
        },
        "ratioSumStatsSquadPointCost": function(data)
        {
            var value = data.ratioSumStatsSquadPointCost;
            return Math.vizziniFormat(value, 4);
        },
    };

    var PilotTable = React.createClass(
    {
        contextTypes:
        {
            store: React.PropTypes.object.isRequired,
        },

        propTypes:
        {
            rowData: React.PropTypes.array.isRequired,
        },

        render: function()
        {
            var myRowData = [];<commit_msg>Changed to save the filters to local storage.<commit_after>define(["pilotstats/PilotColumns", "pilotstats/ui/Connector", "pilotstats/ui/FilterUI", "ui/FactionUI", "ui/ShipSilhouetteUI", "../../../../../../coreweb/src/main/js/ui/DataTable"], function(PilotColumns, Connector, FilterUI, FactionUI, ShipSilhouetteUI, DataTable)
{
    "use strict";
    var cellFunctions = {
        "factionKey": function(data)
        {
            return React.createElement(FactionUI,
            {
                factionKey: data.factionKey,
                isSmall: true,
            });
        },
        "shipKey": function(data)
        {
            return React.createElement(ShipSilhouetteUI,
            {
                shipKey: data.shipKey,
                showName: true,
            });
        },
        "description": function(data)
        {
            var answer = data.description;
            if (data.isFlavorText)
            {
                answer = React.DOM.span(
                {
                    className: "flavorText",
                }, data.description);
            }
            return answer;
        },
        "isImplemented": function(data)
        {
            var implementedName = (data.isImplemented ? "accept" : "delete");
            var fileString = iconBase + implementedName + ".png";
            return React.DOM.img(
            {
                className: "isImplementedImage",
                src: fileString,
                title: data.isImplemented,
                value: implementedName,
            });
        },
        "ratioPrimaryWeaponAgility": function(data)
        {
            var value = data.ratioPrimaryWeaponAgility;
            return Math.vizziniFormat(value, 2);
        },
        "ratioSumStatsSquadPointCost": function(data)
        {
            var value = data.ratioSumStatsSquadPointCost;
            return Math.vizziniFormat(value, 4);
        },
    };

    var PilotTable = React.createClass(
    {
        contextTypes:
        {
            store: React.PropTypes.object.isRequired,
        },

        propTypes:
        {
            filters: React.PropTypes.object.isRequired,
            rowData: React.PropTypes.array.isRequired,
        },

        render: function()
        {
            var myRowData = [];
{'fraction_non_alphanumeric': 0.11047027506654836, 'fraction_numerical': 0.0008873114463176575, 'mean_word_length': 1.4720394736842106, 'pattern_counts': {'":': 12, '<': 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': '5526734', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1179, 'n_words': 203}