<commit_before>/**
 * Created by brad.wu on 8/16/2015.
 */
(function () {
    var model = $pt.createModel({
        items: [{name: '<NAME>', count: 5}, {name: '<NAME>', count: 6}]
    });

    var panelTemplate = {
        label: 'Normal Panel',
        dataId: 'items',
        comp: {
            type: $pt.ComponentConstants.ArrayTab,
            onAdd: function(model, value) {
                console.log(model);
                console.log(value);
            },
            canActive: function() {
                console.log(arguments);
                return true;
            },
            editLayout: {
                name: {
                    label: 'Name',
                    pos: {row: 1, col: 1, width: 6}
                },
                count: {
                    label: 'Count',
                    pos: {row: 1, col: 1, width: 6}
                }
            },
            icon: 'bookmark'
        },
        pos: {row: 1, col: 1}<commit_msg>some changes<commit_after>/**
 * Created by brad.wu on 8/16/2015.
 */
(function () {
    var model = $pt.createModel({
        items: [{name: '<NAME>', count: 5}, {name: '<NAME>', count: 6}, {name: '<NAME>', count: 7}]
    });

    var panelTemplate = {
        label: 'Normal Panel',
        dataId: 'items',
        comp: {
            type: $pt.ComponentConstants.ArrayTab,
            onAdd: function(model, value) {
                console.log(model);
                console.log(value);
                model.add('items', {});
            },
            canActive: function() {
                console.log(arguments);
                return true;
            },
            editLayout: {
                name: {
                    label: 'Name',
                    pos: {row: 1, col: 1, width: 6}
                },
                count: {
                    label: 'Count',
                    pos: {row: 1, col: 1, width: 6}
                }
            },
            icon: 'bookmark'
        },
        pos: {row: 1, col: 1}
{'fraction_non_alphanumeric': 0.14470412729985083, 'fraction_numerical': 0.0174042764793635, 'mean_word_length': 1.1068062827225131, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '316138', 'n_tokens_mistral': 606, 'n_tokens_neox': 549, 'n_words': 139}