<commit_before>// ==========================================================================
// Project:   The M-Project - Mobile HTML5 Application Framework
// Copyright: 2010 M-Way Solutions GmbH. All rights reserved.
// Creator:   Sebastian
// Date:      02.11.2010
// License:   Dual licensed under the MIT or GPL Version 2 licenses.
//            http://github.com/mwaylabs/The-M-Project/blob/master/MIT-LICENSE
//            http://github.com/mwaylabs/The-M-Project/blob/master/GPL-LICENSE
// ==========================================================================

m_require('../core/foundation/view.js');

M.TOP = 'header';
M.BOTTOM = 'footer';

/**
 * @class
 *
 * The root object for ToolbarViews.
 *
 */
M.ToolbarView = M.View.extend({

    /**
     * The type of this object.
     *
     * @property {String}
     */
    type: 'M.ToolbarView',

    /**
     * Mapping to value attribute.
     * text property is mixed in when extended.
     */
    //value: this.text,

     /**
     * Defines the position of the Toolbar.
     *
     * default: M.TOP => is a header bar
     *
     * @property {String}
     */
    anchorLocation: M.TOP,

    /**
     * Renders a toolbar as a div tag with corresponding data-role attribute and inner h1 child tag
     * (representing the title of the header)
     */
    render: function() {
        var html = '<div id="' + this.id + '" data-role="' + this.anchorLocation + '"><h1>' + this.value + '</h1></div>';
        document.write(html);
    },

    renderUpdate: function() {
        <commit_msg>Added data-position attribute to fix footer / header<commit_after>// ==========================================================================
// Project:   The M-Project - Mobile HTML5 Application Framework
// Copyright: 2010 M-Way Solutions GmbH. All rights reserved.
// Creator:   Sebastian
// Date:      02.11.2010
// License:   Dual licensed under the MIT or GPL Version 2 licenses.
//            http://github.com/mwaylabs/The-M-Project/blob/master/MIT-LICENSE
//            http://github.com/mwaylabs/The-M-Project/blob/master/GPL-LICENSE
// ==========================================================================

m_require('../core/foundation/view.js');

M.TOP = 'header';
M.BOTTOM = 'footer';

/**
 * @class
 *
 * The root object for ToolbarViews.
 *
 */
M.ToolbarView = M.View.extend({

    /**
     * The type of this object.
     *
     * @property {String}
     */
    type: 'M.ToolbarView',

    /**
     * Mapping to value attribute.
     * text property is mixed in when extended.
     */
    //value: this.text,

     /**
     * Defines the position of the Toolbar.
     *
     * default: M.TOP => is a header bar
     *
     * @property {String}
     */
    anchorLocation: M.TOP,

    /**
     * Renders a toolbar as a div tag with corresponding data-role attribute and inner h1 child tag
     * (representing the title of the header)
     */
    render: function() {
        var html = '<div id="' + this.id + '" data-role="' + this.anchorLocation + '" data-position="fixed"><h1>' + this.value + '</h1></div>';
        document.write(html);
    },

    renderUpdate: function() {
        
{'fraction_non_alphanumeric': 0.2268562401263823, 'fraction_numerical': 0.010742496050552922, 'mean_word_length': 2.4563318777292578, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '7110905', 'n_tokens_mistral': 960, 'n_tokens_neox': 898, 'n_words': 248}