<commit_before>package com.cabolabs.openehr.opt.model

import groovy.util.slurpersupport.GPathResult

class ObjectNode {

   // For root and resolved slots
   String archetypeId
   
   // AOM type
   String type
   
   // atNNNN
   String nodeId
   
   String rmTypeName
   
   // List<AttributeNode>
   List attributes = []
   
   // List<CodedTerm>
   List termDefinitions = []
   
   Interval occurrences
   
   // Calculated path of this node during parsing
   String path
   
   // TODO: constraints by type
   //
   // e.g. C_DV_QUANTITY has:
   // - property
   // - list *
   //   - magnitude
   //     - lower
   //     - upper
   //   - units
   
   // For now I just save the XML node to extract the constraints
   GPathResult xmlNode
}<commit_msg>added terminology ref<commit_after>package com.cabolabs.openehr.opt.model

import groovy.util.slurpersupport.GPathResult

class ObjectNode {

   // For root and resolved slots
   String archetypeId
   
   // AOM type
   String type
   
   // atNNNN
   String nodeId
   
   String rmTypeName
   
   // List<AttributeNode>
   List attributes = []
   
   // List<CodedTerm>
   List termDefinitions = []
   
   Interval occurrences
   
   // Calculated path of this node during parsing
   String path
   
   // TODO: this can be a list on the OPT but since
   // the Template Designer doesnt allow more than one,
   // we support just one value.
   String terminologyRef
   
   // TODO: constraints by type
   //
   // e.g. C_DV_QUANTITY has:
   // - property
   // - list *
   //   - magnitude
   //     - lower
   //     - upper
   //   - units
   
   // For now I just save the XML node to extract the constraints
   GPathResult xmlNode
}
{'fraction_non_alphanumeric': 0.08195754716981132, 'fraction_numerical': 0.0, 'mean_word_length': 1.8811544991511036, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3103109', 'n_tokens_mistral': 546, 'n_tokens_neox': 523, 'n_words': 160}