<commit_before>(function Example(window, leaflet, FreeDraw) {

    /**
     * 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('http://b.tile.stamen.com/toner/{z}/{x}/{y}.png').addTo(map);

        var freeDraw = new FreeDraw(map);
        freeDraw.options.allowMultiplePolygons(true);
        freeDraw.options.setHullAlgorithm(false);
        freeDraw.options.setHullAlgorithm('Wildhoney/ConcaveHull');

        freeDraw.enableEdit();

    };

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

})(window, window.L, window.FreeDraw);<commit_msg>Modified example based on latest changes<commit_after>(function Example(window, leaflet, FreeDraw) {

    /**
     * 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: FreeDraw.MODES.DELETE | FreeDraw.MODES.CREATE
        });

        freeDraw.options.setBoundariesAfterEdit(true);
        freeDraw.options.allowMultiplePolygons(true);
        freeDraw.options.exitModeAfterCreate(true);
        freeDraw.options.setHullAlgorithm('Wildhoney/ConcaveHull');
        freeDraw.options.getMarkers(function getMarkers(boundaries, setMarkers) {

            if (boundaries.length) {
                setMarkers([boundaries[boundaries.length - 1][0]]);
                return;
            }

            setMarkers();

        });

        map.addLayer(freeDraw);

    };

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

})(window, window.L, window.FreeDraw);
{'fraction_non_alphanumeric': 0.13360995850622406, 'fraction_numerical': 0.009128630705394191, 'mean_word_length': 2.6809160305343513, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '4853503', 'n_tokens_mistral': 735, 'n_tokens_neox': 693, 'n_words': 124}