<commit_before>﻿!function()
{
    root.define
    (
        "todoMVC.appView",
        function()
        {
            return function todoMVCAppView(viewAdapter)
            {
         return {
                    controls:
                    {
                        newTodoTextbox:
                        {
                            onEnter: function() { viewAdapter.on.addNewTodo(this.value()); this.value(""); }
                        },
                        todosView:
                        {
                            controls:
                            {
                                toggleAllCompleted: {},
                                todoList:
                                {
                                    repeat:
                                    {
                                        todoListItemTemplate:
                                        {
                                            getKey:     function(item){return "todoListItem-"+item.id},
                                            controls:
                                            {
                                                toggleCompletedCheckbox:    { bindTo: "completed" },
                                                todoLabel:                  { bindTo: "todo" },
                                                deleteTodoButton:           { bindTo: "id", onclick: function(){viewAdapter.on.deleteTodo(this.value()); } },
                                                editTodoTextbox:            { hidden: true }
                                            }
                                        }
                                    }
                                }
                            },
                            hidden: true,
                            onbind: function(data){ this.toggleDisplay(data.length>0); }
                        },
                        todosFooter:
                        {
                            hidden: true
                        }
                    },
                    events:["addNewTodo", "deleteTodo"]
                };
            }
        }
    );
}();
function demoViewAdapterLibrary(demoSubView)
{
    return function demoViewAdapter(viewAdapter)
    {
 return {
            controls:
            {
                sampleButton:   { hidden:       true },
                sampleTextbox:  { onchange:     function(){} },
                classedSubView:
                {
                    viewAdapter:    demoSubView,
                    hidden:         true
                },
                inlineSubView:
                {
                    controls:
                    {
                        subViewButton1:     { hidden:   true },
                        subViewCheckbox:    { onchange: function(){} }
                    },
                    hidden:     true
                }
            },
            events: [],
            members:
            {
            }
        }
    }
}<commit_msg>removed old demo code from todoMVC demo.<commit_after>﻿!function()
{
    root.define
    (
        "todoMVC.appView",
        function()
        {
            return function todoMVCAppView(viewAdapter)
            {
         return {
                    controls:
                    {
                        newTodoTextbox:
                        {
                            onEnter: function() { viewAdapter.on.addNewTodo(this.value()); this.value(""); }
                        },
                        todosView:
                        {
                            controls:
                            {
                                toggleAllCompleted: {},
                                todoList:
                                {
                                    repeat:
                                    {
                                        todoListItemTemplate:
                                        {
                                            getKey:     function(item){return "todoListItem-"+item.id},
                                            controls:
                                            {
                                                toggleCompletedCheckbox:    { bindTo: "completed" },
                                                todoLabel:                  { bindTo: "todo" },
                                                deleteTodoButton:           { bindTo: "id", onclick: function(){viewAdapter.on.deleteTodo(this.value()); } },
                                                editTodoTextbox:            { hidden: true }
                                            }
                                        }
                                    }
                                }
                            },
                            hidden: true,
                            onbind: function(data){ this.toggleDisplay(data.length>0); }
                        },
                        todosFooter:
                        {
                            hidden: true
                        }
                    },
                    events:["addNewTodo", "deleteTodo"]
                };
            }
        }
    );
}();
{'fraction_non_alphanumeric': 0.07241379310344828, 'fraction_numerical': 0.0005747126436781609, 'mean_word_length': 0.5199417758369723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 44, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1189693', 'n_tokens_mistral': 971, 'n_tokens_neox': 920, 'n_words': 132}