<commit_before>L.Control.SlideMenu = L.Control.extend({
    options: {
        position: 'topleft',
        menuposition: 'topleft', // topleft,topright,bottomleft,bottomright
        width: '300px',
        height: '100%',
        direction: 'horizontal', // vertical or horizontal
        changeperc: '10',
        delay: '10'
    },

    initialize: function (innerHTML, options) {
        L.Util.setOptions(this, options);
        this._innerHTML = innerHTML;
        this._isLeftPosition = this.options.menuposition == 'topleft' ||
            this.options.menuposition == 'bottomleft' ? true : false;
        this._isTopPosition = this.options.menuposition == 'topleft' ||
            this.options.menuposition == 'topright' ? true : false;
        this._isHorizontal = this.options.direction == 'horizontal' ? true : false;
    },

    onAdd: function (map) {
        this._container = L.DomUtil.create('div', 'leaflet-control-slidemenu leaflet-bar leaflet-control');
        var link = L.DomUtil.create('a', 'leaflet-bar-part leaflet-bar-part-single', this._container);
        link.title = 'Menu';
        L.DomUtil.create('span', 'fa fa-bars', link);

        this._menu = L.DomUtil.create('div', 'leaflet-menu', map._container);

        this._menu.style.width = this.options.width;
        this._menu.style.height = this.options.height;

        if (this._isHorizontal){
            var frominit = -(parseInt(this.options.width, 10));
            if (this._isLeftPosition){
                this._menu.style.left = '-' + this.options.width;
            } else {
                this._menu.style.right = '-' + this.options.width;
            }
            if (this._isTopPosition) {
                this._menu.style.top = '0px';
            } else {
                this._menu.style.bottom = '0px';
            }
        } else {
            var frominit = -(parseInt(this.options.height, 10));
            if (this._isLeftPosition){
                this._menu.style.left = '0px';
            } else {
                this._menu.style.right = '0px';
            }
            if (this._isTopPosition) {
                this._menu.style.top = '-' + this.options.height;
            } else {
                this._menu.style.bottom = '-' + this.options.height;
            }<commit_msg>Replace menu with further information for the slider menu.<commit_after>L.Control.SlideMenu = L.Control.extend({
    options: {
        position: 'topleft',
        menuposition: 'topleft', // topleft,topright,bottomleft,bottomright
        width: '300px',
        height: '100%',
        direction: 'horizontal', // vertical or horizontal
        changeperc: '10',
        delay: '10'
    },

    initialize: function (innerHTML, options) {
        L.Util.setOptions(this, options);
        this._innerHTML = innerHTML;
        this._isLeftPosition = this.options.menuposition == 'topleft' ||
            this.options.menuposition == 'bottomleft' ? true : false;
        this._isTopPosition = this.options.menuposition == 'topleft' ||
            this.options.menuposition == 'topright' ? true : false;
        this._isHorizontal = this.options.direction == 'horizontal' ? true : false;
    },

    onAdd: function (map) {
        this._container = L.DomUtil.create('div', 'leaflet-control-slidemenu leaflet-bar leaflet-control');
        var link = L.DomUtil.create('a', 'leaflet-bar-part leaflet-bar-part-single', this._container);
        link.title = 'Further information';
        L.DomUtil.create('span', 'fa fa-bars', link);

        this._menu = L.DomUtil.create('div', 'leaflet-menu', map._container);

        this._menu.style.width = this.options.width;
        this._menu.style.height = this.options.height;

        if (this._isHorizontal){
            var frominit = -(parseInt(this.options.width, 10));
            if (this._isLeftPosition){
                this._menu.style.left = '-' + this.options.width;
            } else {
                this._menu.style.right = '-' + this.options.width;
            }
            if (this._isTopPosition) {
                this._menu.style.top = '0px';
            } else {
                this._menu.style.bottom = '0px';
            }
        } else {
            var frominit = -(parseInt(this.options.height, 10));
            if (this._isLeftPosition){
                this._menu.style.left = '0px';
            } else {
                this._menu.style.right = '0px';
            }
            if (this._isTopPosition) {
                this._menu.style.top = '-' + this.options.height;
            } else {
                this._menu.style.bottom = '-' + this.options.height;
            }
{'fraction_non_alphanumeric': 0.13962994836488812, 'fraction_numerical': 0.00774526678141136, 'mean_word_length': 1.8965732087227414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3135638', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1334, 'n_words': 239}