<commit_before><!DOCTYPE html>
<html itemscope itemtype="http://schema.org/Map" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'/>
    <meta name="viewport" content="width=device-width"/>

    <title>FiskInfo Kartklient</title>
    <meta itemprop="name" content="Fiskinfo"/>
    <meta itemprop="description" name="description" content="Interactive charting application"/>
    <meta itemprop="author" name="author" content="<NAME>"/>

    <meta property="og:type" content="website"/>
    <meta property="og:title" content="Fiskinfo"/>
    <meta property="og:description" content="Interactive charting application"/>
    <meta property="og:url" content="https://peterharo.github.io/"/>
    <meta property="og:image" content="https://peterharo.github.io/preview"/>

    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="alternate" hreflang="x-default" href="https://peterharo.github.io/"/>
    <link rel="alternate" hreflang="no" href="https://peterharo.github.io//no"/>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.4/ol.css" type="text/css">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> <!-- TODO: REMOVE ME -- >
    <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
    <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
    <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol.js"></script> -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol-debug.js"></script>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css"
          integrity="sha256-e22BQKCF7bb/h/4MFJ1a4lTRR2OuAe8Hxa/3tgU5Taw=" crossorigin="anonymous"/>
    <link rel="stylesheet" type="text/css" href="styles.css"/>

    <style>
        .map {
            height: 100%;
            width: 100%;
            background-color: #e6ffff;
        }

        .map {
            position: absolute;
            height: calc(100vw);
            width: 100vw;
        }

        .materialize-icon-aligner {
            padding-top: 40px;
        }

        .align-material-c-to-title {
            margin-top: -10px;
        }

        .align-material-text-to-icon {
            padding-top: 6px;
        }

    </style>

</head>
<body data-lang="en">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
    your browser</a> to improve your experience.</p>
<![endif]-->
<div id="map" class="map" tabindex="0">
    <div class="row">
        <div class="col s12">
            <div class="row">
                <div class="input-field col s12 m4 l8">
                    <i class="material-icons prefix">textsms</i>
                    <input type="text" id="autocomplete-input" class="autocomplete">
                    <label for="autocomplete-input">Søk etter fartøy</label>
                </div>
            </div>
        </div>
    </div>
    <div id="popup" class="ol-popup" title="Closed field">
        <a href="#" id="popup-closer" class="ol-popup-closer"></a>
        <div id="popup-content"></div>
    </div>
</div>

<div id="bottom_sheet" class="modal bottom-sheet">
    <div id="bottom_sheet_container" class="modal-content">
    </div>
</div>

<!-- JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"
        integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-alpha.3/js/materialize.min.js"></script>
<script src="javascript/AisShipTypeNumberTranslator.js"></script>
<script src="javascript/openlayers-sidebar.js"></script>
<script src="javascript/FiskInfoUtility.js"></script>
<script src="javascript/animatedCluster.js"></script>
<script src="javascript/BarentswatchLayersTranslator.js"></script>
<script src="javascript/VesselAisSearchModule.js"></script>
<script src="javascript/statenskartverk_opencache.js"></script>
<script src="javascript/BarentswatchStylesRepository.js"></script>
<script src="javascript/barentswatch_map_services_communicator.js"></script>
<script src="javascript/ComputerBackend.js"></script>
<script src="javascript/Backend.js"></script>
<script src="javascript/BackendFactory.js"></script>
<script src="javascript/AndroidBackend.js"></script>
<script src="javascript/Geolocator.js"></script>
<script src="javascript/SimpleHtmlBuilder.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/BarentswatchApiObjectTypes.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/Ais.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/CoastallinesCod.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/CoralReef.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/IceConsentration.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/JMessage.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/OngoingSeismic.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/PlannedSeismic.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/SeaBottomInstallation.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/Tool.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/BarentswatchApiObjectFactory.js"></script>
<script src="javascript/OpenLayersMapClient.js"></script>
<script>
    $(document).ready(function () {
        $('.modal').modal();
    });
</script>
<script>
    var layers = getLayersBySaneNameAndVisibilityState();
    for (var i in layers) {
        console.log(layers[i].name);
    }


</script>
</body>
</html><commit_msg>Readded two js functions<commit_after><!DOCTYPE html>
<html itemscope itemtype="http://schema.org/Map" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'/>
    <meta name="viewport" content="width=device-width"/>

    <title>FiskInfo Kartklient</title>
    <meta itemprop="name" content="Fiskinfo"/>
    <meta itemprop="description" name="description" content="Interactive charting application"/>
    <meta itemprop="author" name="author" content="<NAME>"/>

    <meta property="og:type" content="website"/>
    <meta property="og:title" content="Fiskinfo"/>
    <meta property="og:description" content="Interactive charting application"/>
    <meta property="og:url" content="https://peterharo.github.io/"/>
    <meta property="og:image" content="https://peterharo.github.io/preview"/>

    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="alternate" hreflang="x-default" href="https://peterharo.github.io/"/>
    <link rel="alternate" hreflang="no" href="https://peterharo.github.io//no"/>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.4/ol.css" type="text/css">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> <!-- TODO: REMOVE ME -- >
    <!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
    <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
    <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol.js"></script> -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.6.5/ol-debug.js"></script>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css"
          integrity="sha256-e22BQKCF7bb/h/4MFJ1a4lTRR2OuAe8Hxa/3tgU5Taw=" crossorigin="anonymous"/>
    <link rel="stylesheet" type="text/css" href="styles.css"/>

    <style>
        .map {
            height: 100%;
            width: 100%;
            background-color: #e6ffff;
        }

        .map {
            position: absolute;
            height: calc(100vw);
            width: 100vw;
        }

        .materialize-icon-aligner {
            padding-top: 40px;
        }

        .align-material-c-to-title {
            margin-top: -10px;
        }

        .align-material-text-to-icon {
            padding-top: 6px;
        }

    </style>

</head>
<body data-lang="en">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
    your browser</a> to improve your experience.</p>
<![endif]-->
<div id="map" class="map" tabindex="0">
    <div class="row">
        <div class="col s12">
            <div class="row">
                <div class="input-field col s12 m4 l8">
                    <i class="material-icons prefix">textsms</i>
                    <input type="text" id="autocomplete-input" class="autocomplete">
                    <label for="autocomplete-input">Søk etter fartøy</label>
                </div>
            </div>
        </div>
    </div>
    <div id="popup" class="ol-popup" title="Closed field">
        <a href="#" id="popup-closer" class="ol-popup-closer"></a>
        <div id="popup-content"></div>
    </div>
</div>

<div id="bottom_sheet" class="modal bottom-sheet">
    <div id="bottom_sheet_container" class="modal-content">
    </div>
</div>

<!-- JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"
        integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-alpha.3/js/materialize.min.js"></script>
<script src="javascript/AisShipTypeNumberTranslator.js"></script>
<script src="javascript/openlayers-sidebar.js"></script>
<script src="javascript/FiskInfoUtility.js"></script>
<script src="javascript/animatedCluster.js"></script>
<script src="javascript/BarentswatchLayersTranslator.js"></script>
<script src="javascript/VesselAisSearchModule.js"></script>
<script src="javascript/statenskartverk_opencache.js"></script>
<script src="javascript/BarentswatchStylesRepository.js"></script>
<script src="javascript/barentswatch_map_services_communicator.js"></script>
<script src="javascript/ComputerBackend.js"></script>
<script src="javascript/Backend.js"></script>
<script src="javascript/BackendFactory.js"></script>
<script src="javascript/AndroidBackend.js"></script>
<script src="javascript/Geolocator.js"></script>
<script src="javascript/SimpleHtmlBuilder.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/BarentswatchApiObjectTypes.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/Ais.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/CoastallinesCod.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/CoralReef.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/IceConsentration.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/JMessage.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/OngoingSeismic.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/PlannedSeismic.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/SeaBottomInstallation.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/Tool.js"></script>
<script src="javascript/BarentswatchApiBaseObjects/BarentswatchApiObjectFactory.js"></script>
<script src="javascript/OpenLayersMapClient.js"></script>
<script>
    $(document).ready(function () {
        $('.modal').modal();
    });
</script>
<script>
    var layers = getLayersBySaneNameAndVisibilityState();
    for (var i in layers) {
        console.log(layers[i].name);
    }


</script>
<script>
        function getLayersAndState() {
            //var retval = getLayersByNameAndVisibilityState();
            var retval = getLayersBySaneNameAndVisibilityState();
            message = JSON.stringify(retval);
            Android.setMessage(message);
        }

</script>
<script>
        function toggleLayers(layers) {

            var allLayers = getLayersByNameAndVisibilityState();
            for (var i = 0; i < allLayers.length; i++) {
                setVsibilityOfLayerByName(allLayers[i].name, false);
            }

            for (var i = 0; i < layers.length; i++) {
                //setVsibilityOfLayerByName(layers[i], true);
                setVsibilityOfLayerByPrettyName(layers[i], true);
            }
        }

</script>

</body>
</html>
{'fraction_non_alphanumeric': 0.17293175752954631, 'fraction_numerical': 0.012199771254288982, 'mean_word_length': 3.843426883308715, 'pattern_counts': {'":': 0, '<': 283, '<?xml version=': 0, '>': 281, 'https://': 24, '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': '6945862', 'n_tokens_mistral': 4388, 'n_tokens_neox': 4204, 'n_words': 626}