<commit_before><?php
/**
 * Action Component for the Webcode Plugin
 * Add a button in the edit toolbar
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     <NAME>
 */

// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();

if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'action.php');

class action_plugin_webcode extends DokuWiki_Action_Plugin {

    /**
     * register the eventhandlers
     *
     * @author <NAME>
     */
    function register(Doku_Event_Handler $controller){
        $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array ());
    }

    function handle_toolbar(&$event, $param) {
        $webCodeShortcutKey = $this->getConf('WebCodeShortCutKey');

        $event->data[] = array(
            'type'   => 'format',
            'title'  => $this->getLang('WebCodeButtonTitle').' ('.$this->getLang('AccessKey').': '.$webCodeShortcutKey.')',
            'icon'   => '../../plugins/webcode/images/webcode.png',
            'open'   => '<webcode frameborder=1 width=100% height=80px >\n',
            'close'  => '\n</webcode>\n',
            'key'    => $webCodeShortcutKey
        );


    }

}

<commit_msg>Height is 55px which is the height of single line without lift<commit_after><?php
/**
 * Action Component for the Webcode Plugin
 * Add a button in the edit toolbar
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     <NAME>
 */

// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();

if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'action.php');

class action_plugin_webcode extends DokuWiki_Action_Plugin {

    /**
     * register the eventhandlers
     *
     * @author <NAME>
     */
    function register(Doku_Event_Handler $controller){
        $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array ());
    }

    function handle_toolbar(&$event, $param) {
        $webCodeShortcutKey = $this->getConf('WebCodeShortCutKey');

        // hieght = 55px is the height of a single line text
        $event->data[] = array(
            'type'   => 'format',
            'title'  => $this->getLang('WebCodeButtonTitle').' ('.$this->getLang('AccessKey').': '.$webCodeShortcutKey.')',
            'icon'   => '../../plugins/webcode/images/webcode.png',
            'open'   => '<webcode frameborder=1 width=100% height=55px >\n',
            'close'  => '\n</webcode>\n',
            'key'    => $webCodeShortcutKey
        );


    }

}


{'fraction_non_alphanumeric': 0.1693548387096774, 'fraction_numerical': 0.0069124423963133645, 'mean_word_length': 2.864985163204748, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3331915', 'n_tokens_mistral': 888, 'n_tokens_neox': 850, 'n_words': 165}