<commit_before>(function Example(window) {

    /**
     * Invoked once DOM is ready, and then goodness knows what happens after that.
     *
     * @method beginExample
     * @return {void}
     */
    var beginExample = function beginExample() {

        // Setup Leaflet: http://leafletjs.com/examples/quick-start.html
        var mapContainer = window.document.querySelector('section.map'),
            map          = L.map(mapContainer).setView([51.505, -0.09], 14);
        L.tileLayer('https://tiles.lyrk.org/lr/{z}/{x}/{y}?apikey=<KEY>').addTo(map);

        var freeDraw = window.freeDraw = new L.FreeDraw({
            mode: L.FreeDraw.MODES.DELETE | L.FreeDraw.MODES.CREATE | L.FreeDraw.MODES.EDIT
        });

        freeDraw.options.setBoundariesAfterEdit(true);
        freeDraw.options.allowMultiplePolygons(true);
        freeDraw.options.allowPolygonMerging(true);
        freeDraw.options.exitModeAfterCreate(false);
        freeDraw.options.setPolygonSimplification(true);
        freeDraw.options.setHullAlgorithm('Wildhoney/ConcaveHull');

        freeDraw.on('freedraw/markers', function getMarkers(eventData) {

            var latLngs = [];

            eventData.latLngs.forEach(function forEach(latLngGroup) {
                latLngs = latLngs.concat(latLngGroup);
            });

            freeDraw.setMarkers(latLngs);

        });

        map.addLayer(freeDraw);

    };

    // Hold onto your hats!
    window.document.addEventListener('DOMContentLoaded', beginExample);

})(window);<commit_msg>Removed markers from example<commit_after>(function Example(window) {

    /**
     * Invoked once DOM is ready, and then goodness knows what happens after that.
     *
     * @method beginExample
     * @return {void}
     */
    var beginExample = function beginExample() {

        // Setup Leaflet: http://leafletjs.com/examples/quick-start.html
        var mapContainer = window.document.querySelector('section.map'),
            map          = L.map(mapContainer).setView([51.505, -0.09], 14);
        L.tileLayer('https://tiles.lyrk.org/lr/{z}/{x}/{y}?apikey=<KEY>').addTo(map);

        var freeDraw = window.freeDraw = new L.FreeDraw({
            mode: L.FreeDraw.MODES.DELETE | L.FreeDraw.MODES.CREATE | L.FreeDraw.MODES.EDIT
        });

        freeDraw.options.setBoundariesAfterEdit(true);
        freeDraw.options.allowMultiplePolygons(true);
        freeDraw.options.allowPolygonMerging(true);
        freeDraw.options.exitModeAfterCreate(false);
        freeDraw.options.setPolygonSimplification(true);
        freeDraw.options.setHullAlgorithm('Wildhoney/ConcaveHull');

        freeDraw.on('freedraw/markers', function getMarkers(eventData) {

//            var latLngs = [];
//
//            eventData.latLngs.forEach(function forEach(latLngGroup) {
//                latLngs = latLngs.concat(latLngGroup);
//            });
//
//            freeDraw.setMarkers(latLngs);

        });

        map.addLayer(freeDraw);

    };

    // Hold onto your hats!
    window.document.addEventListener('DOMContentLoaded', beginExample);

})(window);
{'fraction_non_alphanumeric': 0.13329019734713685, 'fraction_numerical': 0.006470397929472662, 'mean_word_length': 2.5704387990762125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7421885', 'n_tokens_mistral': 975, 'n_tokens_neox': 928, 'n_words': 136}