<commit_before>(function(mapConfig) {

    var CONFIG = {
        debug : false,
        maxZoom : 20,
        container : '#map-container',
        dataUrls : [ './data/numa.html', './data/program.html',
                './data/history.html',
        // './data/info.html',
        // './data/street-art.json',
        // './data/example.html',
        // './data/partners.html'
        ],
        tilesLayer : 'http://{s}.tile.cloudmade.com/d4fc77ea4a63471cab2423e66626cbb6/997/256/{z}/{x}/{y}.png',
        tilesLayer : 'http://{s}.tiles.mapbox.com/v3/guilhemoreau.map-057le4on/{z}/{x}/{y}.png',
        zone : [ [ 2.3474317789077754, 48.86851174046499 ],
                [ 2.350752353668213, 48.86728022412167 ] ]
    };

    var TEMPLATE_DEFAULT_DESCRIPTION = ''
            + '<div data-type="<%=feature.geometry.type%>:<%=feature.properties.type%>">'
            + '<h3><a href="javascript:void(0);" data-action-click="activateLayer"><%=feature.properties.label%></a></h3>'
            + '<div class="visible-when-active">'
            + ' <%=feature.properties.description%>'
            + ' <% if(feature.properties.references){ %><div class="references"><%=feature.properties.references%></div><% } %>'
            + '</div>' + '</div>';
    var TEMPLATE_DEFAULT_POPUP = '<strong data-action-click="activateLayer"><%=feature.properties.label||feature.properties.name%></strong>';
    var TEMPLATE_DEFAULT_DIALOG = '<% var dialogId=obj.getId("-dialog"); %>'
            + '<div id="<%=dialogId%>" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="<%=dialogId%>-title" aria-hidden="true">'
            + ' <div class="modal-header">'
            + ' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>'
            + ' <h3 id="<%=dialogId%>-title"><%=feature.properties.label%></h3>'
            + ' </div>'
            + ' <div class="modal-body">'
            + ' <%=feature.properties.fullContent%>'
            + ' <% if(feature.properties.references){ %><div class="references"><%=feature.properties.references%></div><% } %>'
            + ' </div>'
            + '<div class="modal-footer">'
            + '<button class="btn" data-dismiss="modal" aria-hidden="true">OK</button>'
            + '</div>' + '</div>';
    var TEMPLATE_DEFAULT = {
        popup : TEMPLATE_DEFAULT_POPUP,
        description : TEMPLATE_DEFAULT_DESCRIPTION,
        dialog : TEMPLATE_DEFAULT_DIALOG
    }
    var TEMPLATE_DEFAULT_SLIDABLE = {
        dialog : '<% var dialogId=obj.getId("-dialog"); %>'
                + '<div id="<%=dialogId%>" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="<%=dialogId%>-title" aria-hidden="true">'
                + ' <div class="modal-header">'
                + ' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>'
                + ' <h3 id="<%=dialogId%>-title"><%=feature.properties.label%></h3>'
                + ' </div>'
                + ' <div class="modal-body">'
                + ' <% var next=obj.getNext();  var prev=obj.getPrevious(); %>'
                + ' <div class="row-fluid">'
                + '     <div class="span1">'
                + '         <% if (prev){%><a href="javascript:void(0);" data-action-click="! var o=obj.getPrevious();if(o)o.expandLayer()"><div class="fa fa-chevron-left"></div></a>&nbsp;<% } %>'
                + '     </div>'
                + '     <div class="span10">'
                + '         <%=feature.properties.fullContent?feature.properties.fullContent:feature.properties.description%>'
                + '     </div>'
                + '     <div class="span1">'
                + '         <% if (next){ %><a href="javascript:void(0);" data-action-click="! var o=obj.getNext();if(o)o.expandLayer()"><div class="fa fa-chevron-right"></div></a>&nbsp;<% } %>'
                + '     </div>'
                + ' </div>'
                + ' <% if(feature.properties.references){ %><div class="references"><%=feature.properties.references%></div><% } %>'
                + ' </div>'
                + '<div class="modal-footer">'
                + '<button class="btn" data-dismiss="modal" aria-hidden="true">OK</button>'
                + '</div>' + '</div>',
        description : ''
                + '<div data-type="<%=feature.geometry.type%>:<%=feature.properties.type%>">'
                + '<h3><a href="javascript:void(0);" data-action-click="activateLayer"><%=feature.properties.label||feature.properties.name%></a></h3>'
                + '<div class="visible-when-active">'
                + ' <% var next=obj.getNext();  var prev=obj.getPrevious(); %>'
                + ' <div class="row-fluid">'
                + '     <div class="span1">'
                + '         <% if (prev){%><a href="javascript:void(0);" data-action-click="! var o=obj.getPrevious();if(o)o.activateLayer()"><div class="fa fa-chevron-left"></div></a>&nbsp;<% } %>'
                + '     </div>'
                + '     <div class="span10">'
                + '         <%=feature.properties.description%>'
                + '     </div>'
                + '     <div class="span1">'
                + '         <% if (next){ %><a href="javascript:void(0);" data-action-click="! var o=obj.getNext();if(o)o.activateLayer()"><div class="fa fa-chevron-right"></div></a>&nbsp;<% } %>'
                + '     </div>'
                + ' </div>'
                + ' <% if(feature.properties.references){ %><div class="references"><%=feature.properties.references%></div><% } %>'
                + '</div>' + '</div>',
    }
    function tmpl(options) {
        var array = [ {}, TEMPLATE_DEFAULT ].concat(_.toArray(arguments));
        return _.extend.apply(null, array);

    }
    function setDivIcon(layer, html) {
        if (layer.setIcon) {
            var icon = L.divIcon({
                className : '',
                html : html
            });
            layer.setIcon(icon);
        }
    }
    var TEMPLATES = {
        ':group' : {
            description : '<div><h2><%=feature.properties.label%></h2></div>'
        },
        'Point' : tmpl({
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer, '<div class="fa fa-map-marker fa-lg"'
                        + ' style="color: #00adef;"></div>');
            }
        }),
        'Point:wc' : {
            popup : '<strong>WC</strong>',
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(
                        layer,
                        '<span style="color: maroon; white-space: nowrap;">'
                                + '<div class="fa fa-male fa-lg"></div>'
                                + '<div class="fa fa-female fa-lg"></div></span>');
            }
        },
        'Point:security' : {
            popup : '<div><strong>Agent de sécurité</strong></div>',
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-star-o" style="color: red;"></div>');
            }
        },
        'Point:sos' : {
            popup : '<strong>Poste de secours</strong>',
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-plus-square" style="color: red;"></div>');
            }
        },
        'Point:screen' : tmpl({
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-film fa-lg" style="color: white;"></div>');
            }
        }),
        'Point:sculpture' : tmpl(
                TEMPLATE_DEFAULT_SLIDABLE,
                {
                    updateLayer : function(info) {
                        var layer = info.getMapLayer();
                        setDivIcon(layer,
                                '<div class="fa fa-star fa-lg" style="color: #00adef;"></div>');
                    }
                }),
        'Point:address' : tmpl(
        // TEMPLATE_DEFAULT_SLIDABLE,
        {
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-star fa-lg" style="color: #00adef;"></div>');
            }
        }),
        'Point:cafe' : tmpl({
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-glass fa-lg" style="color: white;"></div>');
            }
        }),
        'Point:artist' : tmpl({
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                var icon = L
                        .divIcon({<commit_msg>Colors were fixed<commit_after>(function(mapConfig) {

    var CONFIG = {
        debug : false,
        maxZoom : 20,
        container : '#map-container',
        dataUrls : [ './data/numa.html', './data/program.html',
                './data/history.html',
        // './data/info.html',
        // './data/street-art.json',
        // './data/example.html',
        // './data/partners.html'
        ],
        tilesLayer : 'http://{s}.tile.cloudmade.com/d4fc77ea4a63471cab2423e66626cbb6/997/256/{z}/{x}/{y}.png',
        tilesLayer : 'http://{s}.tiles.mapbox.com/v3/guilhemoreau.map-057le4on/{z}/{x}/{y}.png',
        zone : [ [ 2.3474317789077754, 48.86851174046499 ],
                [ 2.350752353668213, 48.86728022412167 ] ]
    };

    var TEMPLATE_DEFAULT_DESCRIPTION = ''
            + '<div data-type="<%=feature.geometry.type%>:<%=feature.properties.type%>">'
            + '<h3><a href="javascript:void(0);" data-action-click="activateLayer"><%=feature.properties.label%></a></h3>'
            + '<div class="visible-when-active">'
            + ' <%=feature.properties.description%>'
            + ' <% if(feature.properties.references){ %><div class="references"><%=feature.properties.references%></div><% } %>'
            + '</div>' + '</div>';
    var TEMPLATE_DEFAULT_POPUP = '<strong data-action-click="activateLayer"><%=feature.properties.label||feature.properties.name%></strong>';
    var TEMPLATE_DEFAULT_DIALOG = '<% var dialogId=obj.getId("-dialog"); %>'
            + '<div id="<%=dialogId%>" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="<%=dialogId%>-title" aria-hidden="true">'
            + ' <div class="modal-header">'
            + ' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>'
            + ' <h3 id="<%=dialogId%>-title"><%=feature.properties.label%></h3>'
            + ' </div>'
            + ' <div class="modal-body">'
            + ' <%=feature.properties.fullContent%>'
            + ' <% if(feature.properties.references){ %><div class="references"><%=feature.properties.references%></div><% } %>'
            + ' </div>'
            + '<div class="modal-footer">'
            + '<button class="btn" data-dismiss="modal" aria-hidden="true">OK</button>'
            + '</div>' + '</div>';
    var TEMPLATE_DEFAULT = {
        popup : TEMPLATE_DEFAULT_POPUP,
        description : TEMPLATE_DEFAULT_DESCRIPTION,
        dialog : TEMPLATE_DEFAULT_DIALOG
    }
    var TEMPLATE_DEFAULT_SLIDABLE = {
        dialog : '<% var dialogId=obj.getId("-dialog"); %>'
                + '<div id="<%=dialogId%>" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="<%=dialogId%>-title" aria-hidden="true">'
                + ' <div class="modal-header">'
                + ' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>'
                + ' <h3 id="<%=dialogId%>-title"><%=feature.properties.label%></h3>'
                + ' </div>'
                + ' <div class="modal-body">'
                + ' <% var next=obj.getNext();  var prev=obj.getPrevious(); %>'
                + ' <div class="row-fluid">'
                + '     <div class="span1">'
                + '         <% if (prev){%><a href="javascript:void(0);" data-action-click="! var o=obj.getPrevious();if(o)o.expandLayer()"><div class="fa fa-chevron-left"></div></a>&nbsp;<% } %>'
                + '     </div>'
                + '     <div class="span10">'
                + '         <%=feature.properties.fullContent?feature.properties.fullContent:feature.properties.description%>'
                + '     </div>'
                + '     <div class="span1">'
                + '         <% if (next){ %><a href="javascript:void(0);" data-action-click="! var o=obj.getNext();if(o)o.expandLayer()"><div class="fa fa-chevron-right"></div></a>&nbsp;<% } %>'
                + '     </div>'
                + ' </div>'
                + ' <% if(feature.properties.references){ %><div class="references"><%=feature.properties.references%></div><% } %>'
                + ' </div>'
                + '<div class="modal-footer">'
                + '<button class="btn" data-dismiss="modal" aria-hidden="true">OK</button>'
                + '</div>' + '</div>',
        description : ''
                + '<div data-type="<%=feature.geometry.type%>:<%=feature.properties.type%>">'
                + '<h3><a href="javascript:void(0);" data-action-click="activateLayer"><%=feature.properties.label||feature.properties.name%></a></h3>'
                + '<div class="visible-when-active">'
                + ' <% var next=obj.getNext();  var prev=obj.getPrevious(); %>'
                + ' <div class="row-fluid">'
                + '     <div class="span1">'
                + '         <% if (prev){%><a href="javascript:void(0);" data-action-click="! var o=obj.getPrevious();if(o)o.activateLayer()"><div class="fa fa-chevron-left"></div></a>&nbsp;<% } %>'
                + '     </div>'
                + '     <div class="span10">'
                + '         <%=feature.properties.description%>'
                + '     </div>'
                + '     <div class="span1">'
                + '         <% if (next){ %><a href="javascript:void(0);" data-action-click="! var o=obj.getNext();if(o)o.activateLayer()"><div class="fa fa-chevron-right"></div></a>&nbsp;<% } %>'
                + '     </div>'
                + ' </div>'
                + ' <% if(feature.properties.references){ %><div class="references"><%=feature.properties.references%></div><% } %>'
                + '</div>' + '</div>',
    }
    function tmpl(options) {
        var array = [ {}, TEMPLATE_DEFAULT ].concat(_.toArray(arguments));
        return _.extend.apply(null, array);

    }
    function setDivIcon(layer, html) {
        if (layer.setIcon) {
            var icon = L.divIcon({
                className : '',
                html : html
            });
            layer.setIcon(icon);
        }
    }
    var TEMPLATES = {
        ':group' : {
            description : '<div><h2><%=feature.properties.label%></h2></div>'
        },
        'Point' : tmpl({
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer, '<div class="fa fa-map-marker fa-lg"'
                        + ' style="color: yellow;"></div>');
            }
        }),
        'Point:wc' : {
            popup : '<strong>WC</strong>',
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(
                        layer,
                        '<span style="color: maroon; white-space: nowrap;">'
                                + '<div class="fa fa-male fa-lg"></div>'
                                + '<div class="fa fa-female fa-lg"></div></span>');
            }
        },
        'Point:security' : {
            popup : '<div><strong>Agent de sécurité</strong></div>',
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-star-o" style="color: red;"></div>');
            }
        },
        'Point:sos' : {
            popup : '<strong>Poste de secours</strong>',
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-plus-square" style="color: red;"></div>');
            }
        },
        'Point:screen' : tmpl({
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-film fa-lg" style="color: white;"></div>');
            }
        }),
        'Point:sculpture' : tmpl(
                TEMPLATE_DEFAULT_SLIDABLE,
                {
                    updateLayer : function(info) {
                        var layer = info.getMapLayer();
                        setDivIcon(layer,
                                '<div class="fa fa-star fa-lg" style="color: yellow;"></div>');
                    }
                }),
        'Point:address' : tmpl(
        // TEMPLATE_DEFAULT_SLIDABLE,
        {
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-star fa-lg" style="color: yellow;"></div>');
            }
        }),
        'Point:cafe' : tmpl({
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                setDivIcon(layer,
                        '<div class="fa fa-glass fa-lg" style="color: white;"></div>');
            }
        }),
        'Point:artist' : tmpl({
            updateLayer : function(info) {
                var layer = info.getMapLayer();
                var icon = L
                        .divIcon({
{'fraction_non_alphanumeric': 0.19071273092593627, 'fraction_numerical': 0.014064854607356143, 'mean_word_length': 1.7193807861587493, 'pattern_counts': {'":': 0, '<': 327, '<?xml version=': 0, '>': 327, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2285877', 'n_tokens_mistral': 5611, 'n_tokens_neox': 5218, 'n_words': 747}