<commit_before>FullScreenMario.prototype.settings.mods = {
    "store_locally": true,
    "prefix": "FullScreenMarioMods",
    "mods": [
        {
            "name": "High Speed",
            "description": "Mario's maximum speed is quadrupled.",
            "enabled": false,
            "events": {
                "onModEnable": function (mod) {
                    var stats = this.ObjectMaker.getFunction("Player").prototype;
                    mod.value_old = stats.maxspeedsave;
                    stats.maxspeedsave = stats.maxspeed = stats.scrollspeed = mod.value_old * 4;
                },
                "onModDisable": function (mod) {
                    var stats = this.ObjectMaker.getFunction("Player").prototype;
                    stats.maxspeedsave = stats.maxspeed = stats.scrollspeed = mod.value_old;
                }
            }
        },
        {
            "name": "Gradient Skies",
            "description": "Skies fade out to black in the heavens above.",
            "enabled": false,
            "events": {
                "onModEnable": function (mod) {
                    if(this.MapsHandler.getMap()) {
                        mod.events.onSetLocation.call(this, mod);
                    }
                },
                "onModDisable": function (mod) {
                    this.MapsHandler.getArea().background = mod.settings.backgroundOld;
                },
                "onSetLocation": (function (gradients) {
                    return function (mod) { 
                        var area = this.MapsHandler.getArea(),
                            setting = area.setting,
                            context = this.canvas.getContext("2d"),
                            background = context.createLinearGradient(
                                0, 0,
                                this.MapScreener.width,
                                this.MapScreener.height
                            ), gradient, i;
                        
                        for(i in gradients) {
                            if(setting.indexOf(i) !== -1) {
                                gradient = gradients[i]
                                break;
                            }
                        }
                        
                        if(!gradient) {
                            gradient = gradients["default"];
                        }
                        
                        for(i in gradient) {
                            background.addColorStop(i, gradient[i]);
                        }
                        
                        mod.settings.backgroundOld = area.background;
                        
                        area.background = background;
                    };
                })({
                    "Underwater": {
                        "0": "#77dddd",
                        "0.21": "#5cbaf9",
                        "1": "#2149bb"
                    },
                    "Night": {
                        "0": "#000000",
                        "0.42": "#000035",
                        "0.84": "#560056",
                        "1": "#350000"
                    },
                    "Underworld": {
                        "0.14": "#000000",
                        "1": "#005649"
                    },
                    "Castle": {
                        "0.21": "#000000",
                        "1": "#980000"
                    },
					"Womb": {
						"0.14": "#703521",
						"1": "#770014"
					},
                    "default": {
                        "0.21": "#5C94FC",
                        "0.35": "#77AAFF",
                        "0.7": "#FFCCAA",
                        "1": "#FFFFFF"
                    }
                })
            },
            "settings": {}
        },
        {
            "name": "Invincibility",
            "description": "Mario is constantly given star power.",
            "enabled": false,
            "events": {
                "onModEnable": function () {
                    if(this.player) {
                        FSM.playerStarUp(this.player, Infinity);
                    }
                },
                "onModDisable": function () {
                    FSM.playerStarDown(this.player);
                },
                "onSetLocation": function () {
                    FSM.playerStarUp(this.player, Infinity);
                }
            }
        },
        {
            "name": "<NAME>",
            "description": "Clouds in the sky scroll at about 63% the normal rate.",
            "enabled": false,
            "events": {
                "onModEnable": function () {
                    this.ObjectMaker.getFunction("Cloud").prototype.parallax = .63;
                },
                "onModDisable": function () {
                    this.ObjectMaker.getFunction("Cloud").prototype.parallax = undefined;
                }
            }
        },
        {
            "name": "Luigi",
            "description": "The little brother who couldl!",
            "enabled": false,
            "events": {
                "onModEnable": function () {
                    this.StatsHolder.set("luigi", true);
                    this.ObjectMaker.getFunction("Player").prototype.title = "Luigi";
                    
                    if(this.player) {
                        this.player.title = "Luigi";
                        this.PixelDrawer.setThingSprite(this.player);
                    }
                },
                "onModDisable": function () {
                    this.StatsHolder.set("luigi", false);
                    this.ObjectMaker.getFunction("Player").prototype.title = "Player";
                    
                    if(this.player) {
                        this.player.title = "Player";
                        this.PixelDrawer.setThingSprite(this.player);<commit_msg>Added "Low Gravity" mod<commit_after>FullScreenMario.prototype.settings.mods = {
    "store_locally": true,
    "prefix": "FullScreenMarioMods",
    "mods": [
        {
            "name": "High Speed",
            "description": "Mario's maximum speed is quadrupled.",
            "enabled": false,
            "events": {
                "onModEnable": function (mod) {
                    var stats = this.ObjectMaker.getFunction("Player").prototype;
                    mod.value_old = stats.maxspeedsave;
                    stats.maxspeedsave = stats.maxspeed = stats.scrollspeed = mod.value_old * 4;
                },
                "onModDisable": function (mod) {
                    var stats = this.ObjectMaker.getFunction("Player").prototype;
                    stats.maxspeedsave = stats.maxspeed = stats.scrollspeed = mod.value_old;
                }
            }
        },
        {
            "name": "Gradient Skies",
            "description": "Skies fade out to black in the heavens above.",
            "enabled": false,
            "events": {
                "onModEnable": function (mod) {
                    if(this.MapsHandler.getMap()) {
                        mod.events.onSetLocation.call(this, mod);
                    }
                },
                "onModDisable": function (mod) {
                    this.MapsHandler.getArea().background = mod.settings.backgroundOld;
                },
                "onSetLocation": (function (gradients) {
                    return function (mod) { 
                        var area = this.MapsHandler.getArea(),
                            setting = area.setting,
                            context = this.canvas.getContext("2d"),
                            background = context.createLinearGradient(
                                0, 0,
                                this.MapScreener.width,
                                this.MapScreener.height
                            ), gradient, i;
                        
                        for(i in gradients) {
                            if(setting.indexOf(i) !== -1) {
                                gradient = gradients[i]
                                break;
                            }
                        }
                        
                        if(!gradient) {
                            gradient = gradients["default"];
                        }
                        
                        for(i in gradient) {
                            background.addColorStop(i, gradient[i]);
                        }
                        
                        mod.settings.backgroundOld = area.background;
                        
                        area.background = background;
                    };
                })({
                    "Underwater": {
                        "0": "#77dddd",
                        "0.21": "#5cbaf9",
                        "1": "#2149bb"
                    },
                    "Night": {
                        "0": "#000000",
                        "0.42": "#000035",
                        "0.84": "#560056",
                        "1": "#350000"
                    },
                    "Underworld": {
                        "0.14": "#000000",
                        "1": "#005649"
                    },
                    "Castle": {
                        "0.21": "#000000",
                        "1": "#980000"
                    },
					"Womb": {
						"0.14": "#703521",
						"1": "#770014"
					},
                    "default": {
                        "0.21": "#5C94FC",
                        "0.35": "#77AAFF",
                        "0.7": "#FFCCAA",
                        "1": "#FFFFFF"
                    }
                })
            },
            "settings": {}
        },
        {
            "name": "Invincibility",
            "description": "Mario is constantly given star power.",
            "enabled": false,
            "events": {
                "onModEnable": function () {
                    if(this.player) {
                        FSM.playerStarUp(this.player, Infinity);
                    }
                },
                "onModDisable": function () {
                    FSM.playerStarDown(this.player);
                },
                "onSetLocation": function () {
                    FSM.playerStarUp(this.player, Infinity);
                }
            }
        },
        {
            "name": "<NAME>",
            "description": "Clouds in the sky scroll at about 63% the normal rate.",
            "enabled": false,
            "events": {
                "onModEnable": function () {
                    this.ObjectMaker.getFunction("Cloud").prototype.parallax = .63;
                },
                "onModDisable": function () {
                    this.ObjectMaker.getFunction("Cloud").prototype.parallax = undefined;
                }
            }
        },
        {
            "name": "Low Gravity",
            "description": "I believe I can fly!",
            "enabled": false,
            "events": {
                "onModEnable": function () {
                    this.ObjectMaker.getFunction("Player").prototype.gravity 
                            = this.ObjectMaker.getFunction("Area").prototype.gravity / 1.4
                },
                "onModDisable": function () {
                    this.ObjectMaker.getFunction("Player").prototype.gravity 
                            = this.ObjectMaker.getFunction("Area").prototype.gravity;
                }
            }
        },
        {
            "name": "Luigi",
            "description": "The little brother who couldl!",
            "enabled": false,
            "events": {
                "onModEnable": function () {
                    this.StatsHolder.set("luigi", true);
                    this.ObjectMaker.getFunction("Player").prototype.title = "Luigi";
                    
                    if(this.player) {
                        this.player.title = "Luigi";
                        this.PixelDrawer.setThingSprite(this.player);
                    }
                },
                "onModDisable": function () {
                    this.StatsHolder.set("luigi", false);
                    this.ObjectMaker.getFunction("Player").prototype.title = "Player";
                    
                    if(this.player) {
                        this.player.title = "Player";
                        this.PixelDrawer.setThingSprite(this.player);
{'fraction_non_alphanumeric': 0.1141182139415355, 'fraction_numerical': 0.018792161901702537, 'mean_word_length': 0.8833938294010889, 'pattern_counts': {'":': 124, '<': 5, '<?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': '3988986', 'n_tokens_mistral': 3174, 'n_tokens_neox': 2792, 'n_words': 483}