<commit_before># Copyright (C) 2016 <NAME>
# All rights reserved.
#
# This software may be modified and distributed under the
# terms of the three-clause BSD license. See LICENSE.txt
# (located in root directory of this project) for details.

module Lextacular
  class GroupNode
    def initialize *children
      @children = children
    end

    def to_s
      @children.map(&:to_s).join
    end
  end
end<commit_msg>Implement GroupNode#size<commit_after># Copyright (C) 2016 <NAME>
# All rights reserved.
#
# This software may be modified and distributed under the
# terms of the three-clause BSD license. See LICENSE.txt
# (located in root directory of this project) for details.

module Lextacular
  class GroupNode
    def initialize *children
      @children = children
    end

    def to_s
      @children.map(&:to_s).join
    end

    def size
      @children.map(&:size).inject(&:+) || 0
    end
  end
end
{'fraction_non_alphanumeric': 0.08187772925764192, 'fraction_numerical': 0.009825327510917031, 'mean_word_length': 3.225806451612903, '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': '6148030', 'n_tokens_mistral': 281, 'n_tokens_neox': 266, 'n_words': 105}