<commit_before>/**
 * Copyright (c) 2008-2012 The Open Source Geospatial Foundation
 * 
 * Published under the BSD license.
 * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
 * of the license.
 */

/**
 * @requires GeoExt/data/reader/Attribute.js
 */

/**
 * @class GeoExt.data.AttributeModel
 * A specific model, which is fit for the records created by the 
 * {@link GeoExt.data.reader.Attribute}'s readRecords method.
 */
Ext.define('GeoExt.data.AttributeModel', {
    alternateClassName: 'GeoExt.data.AttributeRecord',
    extend: 'Ext.data.Model',
    requires: ['Ext.data.proxy.Ajax', 'GeoExt.data.reader.Attribute'],
    alias: 'model.gx_attribute',
    fields: [
        {name: 'name', mapping: 'name'},
        {name: 'type', mapping: 'type'},
        {name: 'restriction', mapping: 'restriction'},
        {name: 'nillable', type: 'bool', mapping: 'nillable'}
        // No 'value' field by default. 
        // It gets added by the GeoExt.data.reader.Attribute constructor 
        // if it is given a feature.
    ],
    proxy: {
        type: 'ajax',
        url: 'change_me', // should not be not empty or it fails in the tests,
        reader: {
            type: 'gx_attribute'
        }
    }
});<commit_msg>AttributeModel: doc string updated<commit_after>/**
 * Copyright (c) 2008-2012 The Open Source Geospatial Foundation
 * 
 * Published under the BSD license.
 * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
 * of the license.
 */

/**
 * @requires GeoExt/data/reader/Attribute.js
 */

/**
 * @class GeoExt.data.AttributeModel
 * <p>A specific model, which is fit for the records created by the 
 * {@link GeoExt.data.reader.Attribute}'s readRecords method.</p>
 */
Ext.define('GeoExt.data.AttributeModel', {
    alternateClassName: 'GeoExt.data.AttributeRecord',
    extend: 'Ext.data.Model',
    requires: ['Ext.data.proxy.Ajax', 'GeoExt.data.reader.Attribute'],
    alias: 'model.gx_attribute',
    fields: [
        {name: 'name', mapping: 'name'},
        {name: 'type', mapping: 'type'},
        {name: 'restriction', mapping: 'restriction'},
        {name: 'nillable', type: 'bool', mapping: 'nillable'}
        // No 'value' field by default. 
        // It gets added by the GeoExt.data.reader.Attribute constructor 
        // if it is given a feature.
    ],
    proxy: {
        type: 'ajax',
        url: 'change_me', // should not be not empty or it fails in the tests,
        reader: {
            type: 'gx_attribute'
        }
    }
});
{'fraction_non_alphanumeric': 0.146129541864139, 'fraction_numerical': 0.00631911532385466, 'mean_word_length': 2.7086383601756956, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5811118', 'n_tokens_mistral': 815, 'n_tokens_neox': 778, 'n_words': 221}