<commit_before>var ActionTypes = require('butter-component-action-types')

function arrayToi18nHash(a) {
    return a.reduce((a, c) => {
        a[c] = c;
        return a;
    }, {});
}

var i18n = {
    __: (a) => (a)
}

export default {
    "action": {
        goBack: console.log.bind(console, "GO BACK pressed")
    },
    "tabs": [{
        title: "General",
        id: "general",
        items: [{
            id: "activateTorrentCollection",
            icon: "collections_bookmark",
            title: "Torrent Collection",
            helper: "Display a view with your Torrent Collection",
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "activateWatchlist",
            icon: "remove_red_eye",
            title: "Watchlist",
            helper: "Display a view with your Watchlist",
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "activateRandomize",
            icon: "shuffle",
            title: "Randomize Button",
            helper: "Display a button to select a Random Movie in the Current View",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "movies_quality",
            icon: "sort",
            title: "Content Quality",
            helper: "Only show content in this quality",
            advanced: true,
            action: {
                type: ActionTypes.DROPDOWN,
                options: arrayToi18nHash(["all", "1080p", "720p"])
            }
        }, {
            id: "moviesShowQuality",
            icon: "high_quality",
            title: "Show Quality",
            helper: "Display Content Quality in List view",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "alwaysFullscreen",
            icon: "fullscreen",
            title: "Fullscreen",
            helper: "Always start playback in FullScreen mode",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "playNextEpisodeAuto",
            icon: "queue_play_next",
            title: "Play Next",
            helper: "Automatically play next Episode",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "connectionLimit",
            icon: "settings_applications",
            title: "Connection Limit",
            helper: "Limit the amount of Outbound Connection Butter will open",
            advanced: true,
            action: {
                type: ActionTypes.TEXT
            }
        }, {
            id: "streamPort",
            icon: "settings_applications",
            title: "Stream Port",
            helper: "Port to stream on, randomlly choosen if 0",
            advanced: true,
            action: {
                type: ActionTypes.TEXT
            }
        }, {
            id: "overallRatio",
            icon: "settings_applications",
            title: "Overall Ratio",
            helper: "Downloaded so far:",
            advanced: true,
            action: {
                type: ActionTypes.TEXT
            }
        }, {
            id: "cache-directory",
            icon: "folder",
            title: "Cache Directory",
            helper: "Open the Directory where Butter keeps it's Cache",
            advanced: true,
            action: {
                type: ActionTypes.BUTTON,
                title: "Open"
            }
        }, {
            id: "deleteTmpOnClose",
            icon: "delete",
            title: "Clear Cache",
            helper: "Delete temp folder after closing the App",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }]
    }, {
        title: "Interface",
        id: "interface",
        items: [{
            icon: "collections_bookmark",
            title: "Torrent Collection",
            helper: "Display a view with your Torrent Collection",
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            icon: "folder",
            title: "Cache Directory",
            helper: "Open the Directory where Butter keep it's cache",
            action: {
                type: ActionTypes.BUTTON,
                title: "Open"
            }
        }, {
            icon: "format_paint",
            title: "Theme",
            helper: "Select a different Look&Feel for the App",
            action: {
                type: ActionTypes.DROPDOWN,
                options: arrayToi18nHash(["dark", "pink"]),
                apply: (theme) =>
                    (document.getElementById('root').className = `theme-${theme}`)
            }
        }, {
            icon: "location_on",
            title: "IP Adress",
            helper: "Set this machine's IP Adress",
            action: {
                type: ActionTypes.TEXT
            }
        }]
    }, {
        title: "Test",
        id: "Test",
        items: [{
            id: "color_test",
            icon: "color_lens",
            title: "Color",
            helper: "Color component test",
            advanced: true,
            action: {
                type: ActionTypes.COLOR,
                options: arrayToi18nHash(["#FFFFFF", "#f1c40f", "#e74c3c", "#2ecc71", "#9b59b6", "#3498db"])
            }
        },
        {
            id: "dropdown_test",
            icon: "arrow_drop_down",
            title: "Dropdown",
            helper: "Dropdown component test",
            advanced: true,
            action: {
                type: ActionTypes.DROPDOWN,
                options: arrayToi18nHash(["item 1", "item 2", "item 3", "item 4", "item 5", "item 6",  "item 7", "item 8", "item 9", "item 10"])
            }
        }
    ]
    }, {<commit_msg>implement sections in test tab-panel<commit_after>var ActionTypes = require('butter-component-action-types')

function arrayToi18nHash(a) {
    return a.reduce((a, c) => {
        a[c] = c;
        return a;
    }, {});
}

var i18n = {
    __: (a) => (a)
}

export default {
    "action": {
        goBack: console.log.bind(console, "GO BACK pressed")
    },
    "tabs": [{
        title: "General",
        id: "general",
        items: [{
            id: "activateTorrentCollection",
            icon: "collections_bookmark",
            title: "Torrent Collection",
            helper: "Display a view with your Torrent Collection",
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "activateWatchlist",
            icon: "remove_red_eye",
            title: "Watchlist",
            helper: "Display a view with your Watchlist",
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "activateRandomize",
            icon: "shuffle",
            title: "Randomize Button",
            helper: "Display a button to select a Random Movie in the Current View",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "movies_quality",
            icon: "sort",
            title: "Content Quality",
            helper: "Only show content in this quality",
            advanced: true,
            action: {
                type: ActionTypes.DROPDOWN,
                options: arrayToi18nHash(["all", "1080p", "720p"])
            }
        }, {
            id: "moviesShowQuality",
            icon: "high_quality",
            title: "Show Quality",
            helper: "Display Content Quality in List view",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "alwaysFullscreen",
            icon: "fullscreen",
            title: "Fullscreen",
            helper: "Always start playback in FullScreen mode",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "playNextEpisodeAuto",
            icon: "queue_play_next",
            title: "Play Next",
            helper: "Automatically play next Episode",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            id: "connectionLimit",
            icon: "settings_applications",
            title: "Connection Limit",
            helper: "Limit the amount of Outbound Connection Butter will open",
            advanced: true,
            action: {
                type: ActionTypes.TEXT
            }
        }, {
            id: "streamPort",
            icon: "settings_applications",
            title: "Stream Port",
            helper: "Port to stream on, randomlly choosen if 0",
            advanced: true,
            action: {
                type: ActionTypes.TEXT
            }
        }, {
            id: "overallRatio",
            icon: "settings_applications",
            title: "Overall Ratio",
            helper: "Downloaded so far:",
            advanced: true,
            action: {
                type: ActionTypes.TEXT
            }
        }, {
            id: "cache-directory",
            icon: "folder",
            title: "Cache Directory",
            helper: "Open the Directory where Butter keeps it's Cache",
            advanced: true,
            action: {
                type: ActionTypes.BUTTON,
                title: "Open"
            }
        }, {
            id: "deleteTmpOnClose",
            icon: "delete",
            title: "Clear Cache",
            helper: "Delete temp folder after closing the App",
            advanced: true,
            action: {
                type: ActionTypes.SWITCH
            }
        }]
    }, {
        title: "Interface",
        id: "interface",
        items: [{
            icon: "collections_bookmark",
            title: "Torrent Collection",
            helper: "Display a view with your Torrent Collection",
            action: {
                type: ActionTypes.SWITCH
            }
        }, {
            icon: "folder",
            title: "Cache Directory",
            helper: "Open the Directory where Butter keep it's cache",
            action: {
                type: ActionTypes.BUTTON,
                title: "Open"
            }
        }, {
            icon: "format_paint",
            title: "Theme",
            helper: "Select a different Look&Feel for the App",
            action: {
                type: ActionTypes.DROPDOWN,
                options: arrayToi18nHash(["dark", "pink"]),
                apply: (theme) =>
                    (document.getElementById('root').className = `theme-${theme}`)
            }
        }, {
            icon: "location_on",
            title: "IP Adress",
            helper: "Set this machine's IP Adress",
            action: {
                type: ActionTypes.TEXT
            }
        }]
    }, {
        title: "Test",
        id: "Test",
        sections: [{
            id: "dropdowns_test",
            title: "Dropdowns",
            advanced: false,
            items: [{
                id: "color_test",
                icon: "color_lens",
                title: "Color",
                helper: "Color component test",
                action: {
                    type: ActionTypes.COLOR,
                    options: arrayToi18nHash(["#FFFFFF", "#f1c40f", "#e74c3c", "#2ecc71", "#9b59b6", "#3498db"])
                }
            },
            {
                id: "dropdown_test",
                icon: "arrow_drop_down",
                title: "Dropdown",
                helper: "Dropdown component test",
                action: {
                    type: ActionTypes.DROPDOWN,
                    options: arrayToi18nHash(["item 1", "item 2", "item 3", "item 4", "item 5", "item 6",  "item 7", "item 8", "item 9", "item 10"])
                }
            }]

            }]
    }, {
{'fraction_non_alphanumeric': 0.11134974392863044, 'fraction_numerical': 0.00792995208987279, 'mean_word_length': 1.245780003709887, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5644368', 'n_tokens_mistral': 3238, 'n_tokens_neox': 3063, 'n_words': 821}