<commit_before>/**
 * @requires OpenLayers/Control.js
 * @requires OpenLayers/Util/hideFromOldIE.js
 */
OpenLayers.Control.FullScreen = 
    OpenLayers.Class( OpenLayers.Control, {
    
    is_full_screen_on: false,
    
    // remember that suffixes are added to this class: ItemActive or ItemInactive
    btnClass: 'olControlButtonFullScreen',

    // css classess of control panels to be hidden/show on toggling fullscreen
    classElemToHide:  ['.selZoom'],
    
    elemsToHideSelector: '',

    btn: null,
    
    title: "FullScreen",
    
    initialize: function(options) {
        var that = this;
        OpenLayers.Control.prototype.initialize.apply(this,[options]);
        $(document).bind("keydown", function (e) {
            var code = e.keyCode || e.which;
            if (code === 122) { //F11                
                that.is_full_screen_on = ! that.is_full_screen_on;
                that.toggleControls();
            } else if (code === 27) {// Escape
                // escape button can be used for leaving FS enabled by our button
                if (that.is_full_screen_on === true) {
                    that.is_full_screen_on = false;
                    that.toggleControls();
                } // endif
            } // endif    
        }); // bind
        
        this.elemsToHideSelector = this.classElemToHide.join(',');
        this.type = OpenLayers.Control.TYPE_BUTTON;
    }, // initialize
    
    draw: function () {
        var position, 
            size, 
            imgLocation,
            btn,
            className = "fullscreen-button";
        
        imgLocation = OpenLayers.Util.getImageLocation("norges_fs.png");
        btn = OpenLayers.Util.createButton(
                'OpenLayers_Control_FullScreen' + this.map.id,
                null,
                null,
                null,
                "static");
                    
        OpenLayers.Event.observe(btn, 'click', 
            OpenLayers.Function.bind(this.toggleFullScreen, this)
        );
        
        btn.title = this.title;
        btn.className = btn.className === "" ? className : btn.className + " " + className;
        btn.innerHTML = OpenLayers.Util.hideFromOldIE('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" preserveAspectRatio="xMidYMid meet" viewBox="0 0 20 20" class="icon fullscreen"><path d="M14.949,3.661l1.429,1.428l1.539-1.54l1.612,1.612V0.485h-4.676l1.636,1.636L14.949,3.661z M17.894,16.6l-1.54-1.539l-1.428,1.428l1.539,1.54l-1.611,1.612h4.676v-4.676L17.894,16.6z M4.895,16.465l-1.428-1.428l-1.54,1.539l-1.612-1.611v4.676h4.675l-1.636-1.637L4.895,16.465z M3.491,5.064l1.428-1.428l-1.54-1.539l1.612-1.612H0.315v4.675l1.636-1.635L3.491,5.064zM15.769,12.033V8.199c0-1.587-1.288-2.875-2.875-2.875H6.907c-1.588,0-2.875,1.287-2.875,2.875v3.834c0,1.588,1.287,2.875,2.875,2.875h5.987C14.48,14.908,15.769,13.621,15.769,12.033z" /></svg><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid meet" class="icon windowed"><path d="M19.877,1.61l-1.523-1.533l-1.642,1.653L14.992,0v5.021h4.987l-1.745-1.756L19.877,1.61z M16.737,18.253l1.643,1.653l1.522-1.533l-1.642-1.653l1.719-1.73h-4.987v5.02L16.737,18.253z M0.103,18.399l1.523,1.533l1.642-1.654l1.719,1.731v-5.021H0l1.745,1.756L0.103,18.399z M1.6,0.104L0.077,1.637L1.719,3.29L0,5.021h4.987V0L3.243,1.756L1.6,0.104z M15.759,12.038V8.204c0-1.587-1.288-2.875-2.875-2.875H6.897c-1.588,0-2.875,1.287-2.875,2.875v3.834c0,1.588,1.287,2.875,2.875,2.875h5.987C14.471,14.913,15.759,13.626,15.759,12.038z" /></svg>');

        this.btn = btn;

        if (this.div == null) {
            this.div = btn;
        } else {
            this.div.appendChild(btn);
        }
              
        return this.div;
    }, // draw
     

    hideControls: function () {        
        $(this.elemsToHideSelector).not("." + this.panelClass).hide();
        OpenLayers.Element.addClass(document.body, "fullscreen");<commit_msg>removed reference to unused fullscreen icon<commit_after>/**
 * @requires OpenLayers/Control.js
 * @requires OpenLayers/Util/hideFromOldIE.js
 */
OpenLayers.Control.FullScreen = 
    OpenLayers.Class( OpenLayers.Control, {
    
    is_full_screen_on: false,
    
    // remember that suffixes are added to this class: ItemActive or ItemInactive
    btnClass: 'olControlButtonFullScreen',

    // css classess of control panels to be hidden/show on toggling fullscreen
    classElemToHide:  ['.selZoom'],
    
    elemsToHideSelector: '',

    btn: null,
    
    title: "FullScreen",
    
    initialize: function(options) {
        var that = this;
        OpenLayers.Control.prototype.initialize.apply(this,[options]);
        $(document).bind("keydown", function (e) {
            var code = e.keyCode || e.which;
            if (code === 122) { //F11                
                that.is_full_screen_on = ! that.is_full_screen_on;
                that.toggleControls();
            } else if (code === 27) {// Escape
                // escape button can be used for leaving FS enabled by our button
                if (that.is_full_screen_on === true) {
                    that.is_full_screen_on = false;
                    that.toggleControls();
                } // endif
            } // endif    
        }); // bind
        
        this.elemsToHideSelector = this.classElemToHide.join(',');
        this.type = OpenLayers.Control.TYPE_BUTTON;
    }, // initialize
    
    draw: function () {
        var position, 
            size, 
            imgLocation,
            btn,
            className = "fullscreen-button";
        
        btn = OpenLayers.Util.createButton(
                'OpenLayers_Control_FullScreen' + this.map.id,
                null,
                null,
                null,
                "static");
                    
        OpenLayers.Event.observe(btn, 'click', 
            OpenLayers.Function.bind(this.toggleFullScreen, this)
        );
        
        btn.title = this.title;
        btn.className = btn.className === "" ? className : btn.className + " " + className;
        btn.innerHTML = OpenLayers.Util.hideFromOldIE('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" preserveAspectRatio="xMidYMid meet" viewBox="0 0 20 20" class="icon fullscreen"><path d="M14.949,3.661l1.429,1.428l1.539-1.54l1.612,1.612V0.485h-4.676l1.636,1.636L14.949,3.661z M17.894,16.6l-1.54-1.539l-1.428,1.428l1.539,1.54l-1.611,1.612h4.676v-4.676L17.894,16.6z M4.895,16.465l-1.428-1.428l-1.54,1.539l-1.612-1.611v4.676h4.675l-1.636-1.637L4.895,16.465z M3.491,5.064l1.428-1.428l-1.54-1.539l1.612-1.612H0.315v4.675l1.636-1.635L3.491,5.064zM15.769,12.033V8.199c0-1.587-1.288-2.875-2.875-2.875H6.907c-1.588,0-2.875,1.287-2.875,2.875v3.834c0,1.588,1.287,2.875,2.875,2.875h5.987C14.48,14.908,15.769,13.621,15.769,12.033z" /></svg><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 20 20" preserveAspectRatio="xMidYMid meet" class="icon windowed"><path d="M19.877,1.61l-1.523-1.533l-1.642,1.653L14.992,0v5.021h4.987l-1.745-1.756L19.877,1.61z M16.737,18.253l1.643,1.653l1.522-1.533l-1.642-1.653l1.719-1.73h-4.987v5.02L16.737,18.253z M0.103,18.399l1.523,1.533l1.642-1.654l1.719,1.731v-5.021H0l1.745,1.756L0.103,18.399z M1.6,0.104L0.077,1.637L1.719,3.29L0,5.021h4.987V0L3.243,1.756L1.6,0.104z M15.759,12.038V8.204c0-1.587-1.288-2.875-2.875-2.875H6.897c-1.588,0-2.875,1.287-2.875,2.875v3.834c0,1.588,1.287,2.875,2.875,2.875h5.987C14.471,14.913,15.759,13.626,15.759,12.038z" /></svg>');

        this.btn = btn;

        if (this.div == null) {
            this.div = btn;
        } else {
            this.div.appendChild(btn);
        }
              
        return this.div;
    }, // draw
     

    hideControls: function () {        
        $(this.elemsToHideSelector).not("." + this.panelClass).hide();
        OpenLayers.Element.addClass(document.body, "fullscreen");
{'fraction_non_alphanumeric': 0.16084616347477781, 'fraction_numerical': 0.17849543121792463, 'mean_word_length': 2.206260032102729, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '1670735', 'n_tokens_mistral': 3893, 'n_tokens_neox': 3100, 'n_words': 356}