<commit_before>//
// Created by davimacedo on 24/09/15.
//

'use strict';

var Entity = require('../../../../').models.Entity;
var ObjectAttribute = require('../../../../')
  .models.attributes.types.ObjectAttribute;

module.exports = Entity.specify(
  [
    new ObjectAttribute(
      'c2A1',
      '1',
      null
    )
  ],
  null
);<commit_msg>example in C2<commit_after>//
// Created by davimacedo on 24/09/15.
//

'use strict';

var Entity = require('../../../../').models.Entity;
var Attribute = require('../../../../').models.attributes.Attribute;
var ObjectAttribute = require('../../../../')
  .models.attributes.types.ObjectAttribute;

module.exports = Entity.specify(
  [
    new ObjectAttribute(
      'c2A1',
      '1',
      null
    ),
    new ObjectAttribute({
      name: 'c2A2',
      multiplicity: '0..1',
      default: function () { return { default: 'thisIsMyDefault' }; }
    }),
    new Attribute(
      'myAttribute',
      'String'
    )
  ],
  null
);
{'fraction_non_alphanumeric': 0.20735444330949948, 'fraction_numerical': 0.02349336057201226, 'mean_word_length': 2.161290322580645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3802563', 'n_tokens_mistral': 324, 'n_tokens_neox': 315, 'n_words': 66}