<commit_before><!DOCTYPE html>
<html>
<head>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="default">
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>Todos - A simple sample app</title>
    <script src="../../modules/jquery/jquery-1.4.3.min.js"></script>
    <!--<script src="../../modules/jquery_mobile/jquery.mobile-1.0a1.min.js"></script>-->
    <script src="../../modules/jquery_mobile/jquery.mobile-1.0a2pre.min.js"></script>
    <script src="../../modules/underscore/underscore-min.js"></script>    
    <script src="../../modules/core/foundation/m.js"></script>
    <script src="../../modules/core/foundation/object.js"></script>
    <script src="../../modules/core/foundation/request.js"></script>
    <script src="../../modules/core/utility/logger.js"></script>
    <script src="../../modules/core/foundation/event_dispatcher.js"></script>
    <script src="../../modules/core/foundation/observable.js"></script>
    <script src="../../modules/core/foundation/controller.js"></script>
    <script src="../../modules/core/datastore/data_provider.js"></script>
    <script src="../../modules/core/foundation/model.js"></script>
    <script src="../../modules/core/foundation/view.js"></script>
    <script src="../../modules/core/foundation/view_manager.js"></script>
    <script src="../../modules/core/foundation/model_manager.js"></script>
    <script src="../../modules/core/foundation/application.js"></script>

    <script src="../../modules/ui/page.js"></script>
    <script src="../../modules/ui/toolbar.js"></script>
    <script src="../../modules/ui/scroll.js"></script>
    <script src="../../modules/ui/label.js"></script>
    <script src="../../modules/ui/button.js"></script>
    <script src="../../modules/ui/list.js"></script>
    <script src="../../modules/ui/list_item.js"></script>
    <script src="../../modules/ui/text_field.js"></script>
    <script src="../../modules/ui/grid.js"></script>
    <script src="../../modules/ui/image.js"></script>

    <script src="todos.js"></script>

    <!--<link href="../../modules/themes/jquery_mobile/jquery.mobile-1.0a1.min.css" rel="stylesheet" />
    <link href="resources/style.css" rel="stylesheet" />-->
    <link href="../../modules/themes/jquery_mobile/jquery.mobile-1.0a2pre.min.css" rel="stylesheet" />
    <link href="resources/style.css" rel="stylesheet" />
</head>
<body>
        <script language="JavaScript">
            Todos.app = M.Application.extend({
                page: M.PageView.design({

                    childViews: ['header content'],

                    header: M.ToolbarView.design({
                            childViews: ['centerLabel editButton'],

                            editButton: M.ButtonView.design({
                                value: 'Edit',
                                target: Todos.TodoController,
                                action: 'edit',
                                icon: 'gear',
                                anchorLocation: M.RIGHT
                            }),

                            centerLabel: M.LabelView.design({
                                value: 'Todos',
                                anchorLocation: M.CENTER
                            }),

                            //value: 'TODOS',
                            anchorLocation: M.TOP
                    }),

                    content: M.ScrollView.design({

                        /* order in childViews string defines render order*/
                        childViews: ['counter text inputField todoList'],

                        counter: M.LabelView.design({
                            value: '0',
                            contentBinding: 'Todos.TodoController.counter',
                            isInline: YES
                        }),

                        text: M.LabelView.design({
                            value: ' item(s) left.',<commit_msg>todo app updated to use toggle view<commit_after><!DOCTYPE html>
<html>
<head>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="default">
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>Todos - A simple sample app</title>
    <script src="../../modules/jquery/jquery-1.4.3.min.js"></script>
    <!--<script src="../../modules/jquery_mobile/jquery.mobile-1.0a1.min.js"></script>-->
    <script src="../../modules/jquery_mobile/jquery.mobile-1.0a2pre.min.js"></script>
    <script src="../../modules/underscore/underscore-min.js"></script>    
    <script src="../../modules/core/foundation/m.js"></script>
    <script src="../../modules/core/foundation/object.js"></script>
    <script src="../../modules/core/foundation/request.js"></script>
    <script src="../../modules/core/utility/logger.js"></script>
    <script src="../../modules/core/foundation/event_dispatcher.js"></script>
    <script src="../../modules/core/foundation/observable.js"></script>
    <script src="../../modules/core/foundation/controller.js"></script>
    <script src="../../modules/core/datastore/data_provider.js"></script>
    <script src="../../modules/core/foundation/model.js"></script>
    <script src="../../modules/core/foundation/view.js"></script>
    <script src="../../modules/core/foundation/view_manager.js"></script>
    <script src="../../modules/core/foundation/model_manager.js"></script>
    <script src="../../modules/core/foundation/application.js"></script>

    <script src="../../modules/ui/page.js"></script>
    <script src="../../modules/ui/toolbar.js"></script>
    <script src="../../modules/ui/scroll.js"></script>
    <script src="../../modules/ui/label.js"></script>
    <script src="../../modules/ui/button.js"></script>
    <script src="../../modules/ui/list.js"></script>
    <script src="../../modules/ui/list_item.js"></script>
    <script src="../../modules/ui/text_field.js"></script>
    <script src="../../modules/ui/grid.js"></script>
    <script src="../../modules/ui/image.js"></script>
    <script src="../../modules/ui/toggle.js"></script>

    <script src="todos.js"></script>

    <!--<link href="../../modules/themes/jquery_mobile/jquery.mobile-1.0a1.min.css" rel="stylesheet" />
    <link href="resources/style.css" rel="stylesheet" />-->
    <link href="../../modules/themes/jquery_mobile/jquery.mobile-1.0a2pre.min.css" rel="stylesheet" />
    <link href="resources/style.css" rel="stylesheet" />
</head>
<body>
        <script language="JavaScript">
            Todos.app = M.Application.extend({
                page: M.PageView.design({

                    childViews: ['header content'],

                    header: M.ToolbarView.design({
                            childViews: ['centerLabel toggleView'],

                            toggleView: M.ToggleView.design({
                                childViews: ['button1 button2'],
                                anchorLocation: M.RIGHT,

                                button1: M.ButtonView.design({
                                    value: 'Edit',
                                    target: Todos.TodoController,
                                    action: 'edit',
                                    icon: 'gear'
                                }),

                                button2: M.ButtonView.design({
                                    value: 'Save',
                                    target: Todos.TodoController,
                                    action: 'edit',
                                    icon: 'check'
                                })
                            }),

                            centerLabel: M.LabelView.design({
                                value: 'Todos',
                                anchorLocation: M.CENTER
                            }),

                            //value: 'TODOS',
                            anchorLocation: M.TOP
                    }),

                    content: M.ScrollView.design({

                        /* order in childViews string defines render order*/
                        childViews: ['counter text inputField todoList'],

                        counter: M.LabelView.design({
                            value: '0',
                            contentBinding: 'Todos.TodoController.counter',
                            isInline: YES
                        }),

                        text: M.LabelView.design({
                            value: ' item(s) left.',
{'fraction_non_alphanumeric': 0.1848001848001848, 'fraction_numerical': 0.005544005544005544, 'mean_word_length': 1.5964017991004498, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4500360', 'n_tokens_mistral': 2326, 'n_tokens_neox': 2242, 'n_words': 330}