<commit_before><!DOCTYPE html>
<html>

<head>
    <meta content="utf-8" http-equiv="encoding">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
    <title>Map Solver and Mouse Finder</title>

    <script type="text/javascript" src="src/arrays.js"></script>
    <script type="text/javascript" src="src/map.js"></script>
    <script type="text/javascript" src="src/mapbookmarklet.min.js"></script>
    <script type="text/javascript" src="lib/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="lib/jquery.a-tools.js"></script>
    <script type="text/javascript" src="lib/jquery.asuggest.js"></script>
    <script type="text/javascript" src="lib/js-cookie.js"></script>
    <script type="text/javascript" src="lib/jquery.tablesorter.combined.min.js"></script>
    <script type="text/javascript" src="lib/jquery-ui.min.js"></script>
    <script type="text/javascript" src="lib/jquery-ui.touch-punch.min.js"></script>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="print, projection, screen" />
    <link rel="stylesheet" href="css/jquery-ui.css" type="text/css" media="print, projection, screen" />
    <link rel="icon" type="image/x-icon" href="img/favicon.ico">

    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }
        body {
            font-family: Verdana;
            font-size: 12px;
            line-height: 18px;
        }
        h1 {
            font-size: 24px;
            padding-bottom: 10px;
        }
        .container {
            margin: 0 auto;
            padding: 20px;
            position: absolute;
        }
        .header {
        	font-size: 11px;
            width: 250px;
        }
        .invalid {
			color: red;
		}
        #interpretedAs {
            width: 150px;
            max-height: 382px;
            font-size: 14px;
            word-wrap: break-word;
            overflow: auto;
        }
        #map {
            resize: none;
        }
        #ampSlider {
            width: 300px;
        }
        #main {
            float: left;
            width: 500px;
        }
        #location {
            float: left;
            width: 500px;
        }
        #mouselistcontainer {
            clear: both;
            padding-top: 2ex;
        }
    </style>

    <!-- Google Analytics -->
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-61581935-1', 'auto');
      ga('send', 'pageview');
    </script>

    <!-- Attraction slider -->
    <script>
        var sliderDelay;

        $(function() {
            $("#ampSlider").slider({
                range: "min",
                min: 0,
                max: 100,
                step: 1,
                slide: function(event, ui) {
                    if (event.originalEvent) {
                        refreshSlider(ui);
                    }
                    else {
                        var myColor = getColor(attractionBonus);
                        $("#ampSlider .ui-slider-range").css("background-color", myColor);
                        $("#ampSlider .ui-state-default, .ui-widget-content .ui-state-default").css("background-color", myColor);
                        $("#ampText").text("Attraction Bonus: " + attractionBonus + "%");
                    }
                },
                change: function(event, ui) {
                    if (event.originalEvent) {
                        refreshSlider(ui);
                    }
                    else {
                        var myColor = getColor(attractionBonus);
                        $("#ampSlider .ui-slider-range").css("background-color", myColor);
                        $("#ampSlider .ui-state-default, .ui-widget-content .ui-state-default").css("background-color", myColor);
                        $("#ampText").text("Attraction Bonus: " + attractionBonus + "%");
                    }
                }
            });
        });

        function getColor(colorVal) {
            var theColor = "";
            if (colorVal < 50) {
                myRed = 255;
                myGreen = parseInt( ( ( colorVal * 2 ) * 255 ) / 100 );
            }
            else  {
                myRed = parseInt( ( ( 100 - colorVal ) * 2 ) * 255 / 100 );
                myGreen = 255;
            }
            theColor = "rgb(" + myRed + "," + myGreen + ",0)";
            return(theColor);
        }

        function refreshSlider(ui) {
            clearTimeout(sliderDelay);
            var ampSlider = ui.value;
            var myColor = getColor(ampSlider);
            $("#ampSlider .ui-slider-range").css("background-color", myColor);
            $("#ampSlider .ui-state-default, .ui-widget-content .ui-state-default").css("background-color", myColor);
            $("#ampText").text("Attraction Bonus: " + ampSlider + "%");
            attractionBonus = parseInt(ampSlider);
            var mapText = document.getElementById("map").value;
            Cookies.set('savedAttraction', attractionBonus, {
                expires: 30
            });
            sliderDelay = setTimeout(function() { processMap(mapText); }, 500);
        }
    </script>
    <!--###################################################################################-->
</head>

<body>
<div class="container">
    <small><a href="index.html">Back to all tools</a></small>
    
    <h1>Map Solver and Mouse Finder</h1>

    <div id="main">
        <table>
        <tr>
        <td>

        <div class="header">
            <p>based on <NAME>'s and <a href="http://olf.github.io/mhmapsolver/" target="_blank">Olaf's</a><br>
            <a href="https://www.mousehuntgame.com/forum/showthread.php?95543-Catch-Rate-Calculator&goto=newpost" target="_blank">Report bugs and suggest features</a></p><br>
        	<p>Copy and paste mice from maps, or type names leaving a line break between each. Press <b>Enter</b> to autocomplete and <b>Tab</b> to cycle through suggestions.</p><br><commit_msg>Fixed random merge conflict<commit_after><!DOCTYPE html>
<html>

<head>
    <meta content="utf-8" http-equiv="encoding">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
    <title>Map Solver and Mouse Finder</title>

    <script type="text/javascript" src="src/arrays.js"></script>
    <script type="text/javascript" src="src/map.js"></script>
    <script type="text/javascript" src="src/mapbookmarklet.min.js"></script>
    <script type="text/javascript" src="lib/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="lib/jquery.a-tools.js"></script>
    <script type="text/javascript" src="lib/jquery.asuggest.js"></script>
    <script type="text/javascript" src="lib/js-cookie.js"></script>
    <script type="text/javascript" src="lib/jquery.tablesorter.combined.min.js"></script>
    <script type="text/javascript" src="lib/jquery-ui.min.js"></script>
    <script type="text/javascript" src="lib/jquery-ui.touch-punch.min.js"></script>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="print, projection, screen" />
    <link rel="stylesheet" href="css/jquery-ui.css" type="text/css" media="print, projection, screen" />
    <link rel="icon" type="image/x-icon" href="img/favicon.ico">

    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }
        body {
            font-family: Verdana;
            font-size: 12px;
            line-height: 18px;
        }
        h1 {
            font-size: 24px;
            padding-bottom: 10px;
        }
        .container {
            margin: 0 auto;
            padding: 20px;
            position: absolute;
        }
        .header {
        	font-size: 11px;
            width: 250px;
        }
        .invalid {
			color: red;
		}
        #interpretedAs {
            width: 150px;
            max-height: 382px;
            font-size: 14px;
            word-wrap: break-word;
            overflow: auto;
        }
        #map {
            resize: none;
        }
        #ampSlider {
            width: 300px;
        }
        #main {
            float: left;
            width: 500px;
        }
        #location {
            float: left;
            width: 500px;
        }
        #mouselistcontainer {
            clear: both;
            padding-top: 2ex;
        }
    </style>

    <!-- Google Analytics -->
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-61581935-1', 'auto');
      ga('send', 'pageview');
    </script>

    <!-- Attraction slider -->
    <script>
        var sliderDelay;

        $(function() {
            $("#ampSlider").slider({
                range: "min",
                min: 0,
                max: 100,
                step: 1,
                slide: function(event, ui) {
                    if (event.originalEvent) {
                        refreshSlider(ui);
                    }
                    else {
                        var myColor = getColor(attractionBonus);
                        $("#ampSlider .ui-slider-range").css("background-color", myColor);
                        $("#ampSlider .ui-state-default, .ui-widget-content .ui-state-default").css("background-color", myColor);
                        $("#ampText").text("Attraction Bonus: " + attractionBonus + "%");
                    }
                },
                change: function(event, ui) {
                    if (event.originalEvent) {
                        refreshSlider(ui);
                    }
                    else {
                        var myColor = getColor(attractionBonus);
                        $("#ampSlider .ui-slider-range").css("background-color", myColor);
                        $("#ampSlider .ui-state-default, .ui-widget-content .ui-state-default").css("background-color", myColor);
                        $("#ampText").text("Attraction Bonus: " + attractionBonus + "%");
                    }
                }
            });
        });

        function getColor(colorVal) {
            var theColor = "";
            if (colorVal < 50) {
                myRed = 255;
                myGreen = parseInt( ( ( colorVal * 2 ) * 255 ) / 100 );
            }
            else  {
                myRed = parseInt( ( ( 100 - colorVal ) * 2 ) * 255 / 100 );
                myGreen = 255;
            }
            theColor = "rgb(" + myRed + "," + myGreen + ",0)";
            return(theColor);
        }

        function refreshSlider(ui) {
            clearTimeout(sliderDelay);
            var ampSlider = ui.value;
            var myColor = getColor(ampSlider);
            $("#ampSlider .ui-slider-range").css("background-color", myColor);
            $("#ampSlider .ui-state-default, .ui-widget-content .ui-state-default").css("background-color", myColor);
            $("#ampText").text("Attraction Bonus: " + ampSlider + "%");
            attractionBonus = parseInt(ampSlider);
            var mapText = document.getElementById("map").value;
            Cookies.set('savedAttraction', attractionBonus, {
                expires: 30
            });
            sliderDelay = setTimeout(function() { processMap(mapText); }, 500);
        }
    </script>
    <!--###################################################################################-->
</head>

<body>
<div class="container">
    <small><a href="index.html">Back to all tools</a></small>

    <h1>Map Solver and Mouse Finder</h1>

    <div id="main">
        <table>
        <tr>
        <td>

        <div class="header">
            <p>based on <NAME>'s and <a href="http://olf.github.io/mhmapsolver/" target="_blank">Olaf's</a><br>
            <a href="https://www.mousehuntgame.com/forum/showthread.php?95543-Catch-Rate-Calculator&goto=newpost" target="_blank">Report bugs and suggest features</a></p><br>
        	<p>Copy and paste mice from maps, or type names leaving a line break between each. Press <b>Enter</b> to autocomplete and <b>Tab</b> to cycle through suggestions.</p><br>
{'fraction_non_alphanumeric': 0.17029951387799905, 'fraction_numerical': 0.01552454132037008, 'mean_word_length': 1.794697633654689, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 143, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '3445365', 'n_tokens_mistral': 3928, 'n_tokens_neox': 3698, 'n_words': 662}