<commit_before>(function() {

    const RESIZE_NO_LIMIT = 50000,
        BITFLUX_STOCK_AMOUNT = 1200,
        BITFLUX_INITIAL_PROPORTION = 16 * 7 / BITFLUX_STOCK_AMOUNT, // ~4 months
        CLOSED_SIDEBAR_WIDTH = 50,
        SIDETAB_TOP_HEIGHT = 50,
        TEAROUT_WINDOW_OFFSET = [CLOSED_SIDEBAR_WIDTH, SIDETAB_TOP_HEIGHT],
        TEAROUT_WINDOW_OFFSET_COMPACT = [0, 34],
        TEAROUT_CARD_WIDTH = 230,
        TEAROUT_CARD_DIMENSIONS = [TEAROUT_CARD_WIDTH, 110],
        COMPACT_WINDOW_DIMENSIONS = [TEAROUT_CARD_WIDTH, 500],
        DEFAULT_WINDOW_DIMENSIONS = [1280, 720];

    // Be very careful changing the line below. It is replaced with a string.replace in the grunt build
    // to disable the right click menu in release.
    const allowContextMenu = true;

    /**
     * Stores common configuration for the application.
     */
    class ConfigService {
        createName() {
            return 'window' + Math.floor(Math.random() * 1000) + Math.ceil(Math.random() * 999);
        }

        _getConfig(name, overrides) {
            var sharedConfig = {
                name: name || this.createName(),
                contextMenu: allowContextMenu,
                autoShow: false,
                frame: false,
                shadow: false,
                resizeRegion: {
                    size: 7,
                    topLeftCorner: 14,
                    topRightCorner: 14,
                    bottomRightCorner: 14,
                    bottomLeftCorner: 14
                }
            };

            Object.keys(sharedConfig).forEach((key) => {
                if (overrides[key] === undefined) {
                    overrides[key] = sharedConfig[key];
                }
            });

            return overrides;
        }

        getWindowConfig(name) {
            return this._getConfig(name, {
                showTaskbarIcon: true,
                saveWindowState: true,
                url: 'index.html',
                resizable: true,
                maximizable: true,
                minWidth: 918,
                minHeight: 510,
                maxWidth: RESIZE_NO_LIMIT,
                maxHeight: RESIZE_NO_LIMIT,
                defaultWidth: DEFAULT_WINDOW_DIMENSIONS[0],
                defaultHeight: DEFAULT_WINDOW_DIMENSIONS[1]
            });
        }

        getTearoutConfig(name) {
            return this._getConfig(name, {
                maximizable: false,
                resizable: false,
                showTaskbarIcon: false,
                saveWindowState: false,
                maxWidth: TEAROUT_CARD_DIMENSIONS[0],
                maxHeight: TEAROUT_CARD_DIMENSIONS[1],
                url: 'tearout.html'
            });
        }

        getTearoutCardDimensions() {
            return TEAROUT_CARD_DIMENSIONS;
        }

        getCompactWindowDimensions() {
            return COMPACT_WINDOW_DIMENSIONS;
        }

        getDefaultWindowDimensions() {<commit_msg>Remove maxWidth and height as breaks maximise on latest runtime<commit_after>(function() {

    const RESIZE_NO_LIMIT = 50000,
        BITFLUX_STOCK_AMOUNT = 1200,
        BITFLUX_INITIAL_PROPORTION = 16 * 7 / BITFLUX_STOCK_AMOUNT, // ~4 months
        CLOSED_SIDEBAR_WIDTH = 50,
        SIDETAB_TOP_HEIGHT = 50,
        TEAROUT_WINDOW_OFFSET = [CLOSED_SIDEBAR_WIDTH, SIDETAB_TOP_HEIGHT],
        TEAROUT_WINDOW_OFFSET_COMPACT = [0, 34],
        TEAROUT_CARD_WIDTH = 230,
        TEAROUT_CARD_DIMENSIONS = [TEAROUT_CARD_WIDTH, 110],
        COMPACT_WINDOW_DIMENSIONS = [TEAROUT_CARD_WIDTH, 500],
        DEFAULT_WINDOW_DIMENSIONS = [1280, 720];

    // Be very careful changing the line below. It is replaced with a string.replace in the grunt build
    // to disable the right click menu in release.
    const allowContextMenu = true;

    /**
     * Stores common configuration for the application.
     */
    class ConfigService {
        createName() {
            return 'window' + Math.floor(Math.random() * 1000) + Math.ceil(Math.random() * 999);
        }

        _getConfig(name, overrides) {
            var sharedConfig = {
                name: name || this.createName(),
                contextMenu: allowContextMenu,
                autoShow: false,
                frame: false,
                shadow: false,
                resizeRegion: {
                    size: 7,
                    topLeftCorner: 14,
                    topRightCorner: 14,
                    bottomRightCorner: 14,
                    bottomLeftCorner: 14
                }
            };

            Object.keys(sharedConfig).forEach((key) => {
                if (overrides[key] === undefined) {
                    overrides[key] = sharedConfig[key];
                }
            });

            return overrides;
        }

        getWindowConfig(name) {
            return this._getConfig(name, {
                showTaskbarIcon: true,
                saveWindowState: true,
                url: 'index.html',
                resizable: true,
                maximizable: true,
                minWidth: 918,
                minHeight: 510,
                defaultWidth: DEFAULT_WINDOW_DIMENSIONS[0],
                defaultHeight: DEFAULT_WINDOW_DIMENSIONS[1]
            });
        }

        getTearoutConfig(name) {
            return this._getConfig(name, {
                maximizable: false,
                resizable: false,
                showTaskbarIcon: false,
                saveWindowState: false,
                maxWidth: TEAROUT_CARD_DIMENSIONS[0],
                maxHeight: TEAROUT_CARD_DIMENSIONS[1],
                url: 'tearout.html'
            });
        }

        getTearoutCardDimensions() {
            return TEAROUT_CARD_DIMENSIONS;
        }

        getCompactWindowDimensions() {
            return COMPACT_WINDOW_DIMENSIONS;
        }

        getDefaultWindowDimensions() {
{'fraction_non_alphanumeric': 0.0800817856534333, 'fraction_numerical': 0.021127960470267507, 'mean_word_length': 1.5521739130434782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4763363', 'n_tokens_mistral': 1840, 'n_tokens_neox': 1633, 'n_words': 323}