<commit_before>
      if (!this.get('<%= fieldName %>')) {
        var <%= fieldName %>Message = ros.Message.extend({
          defaults: <%= JSON.stringify(message.attributes) %>
        , initialize: function(attributes) {<%= templatedInnerMessages %>
          }
        })
        var <%= fieldName %> = new <%= fieldName %>Message()
        this.set({ <%= fieldName %>: <%= fieldName %>})
      }
<commit_msg>Accepts standard JS objects for message definitions.<commit_after>
      var <%= fieldName %> = this.get('<%= fieldName %>')
      if (!<%= fieldName %> || !(<%= fieldName %> instanceof ros.Message)) {
        var <%= fieldName %>Message = ros.Message.extend({
          defaults: <%= JSON.stringify(message.attributes) %>
        , initialize: function(attributes) {<%= templatedInnerMessages %>
          }
        })
        this.set({
          <%= fieldName %>: new <%= fieldName %>Message(<%= fieldName %>)
        })
      }

{'fraction_non_alphanumeric': 0.18710359408033828, 'fraction_numerical': 0.0, 'mean_word_length': 2.4816176470588234, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4213732', 'n_tokens_mistral': 296, 'n_tokens_neox': 253, 'n_words': 52}