<commit_before>class ModuleResult
  attr_reader :id, :grade, :height, :parent
  attr_accessor :children

  def initialize(id, grade, height, parent, children)
    @id = id
    @grade = grade
    @height = height
    @parent = parent
    @children = children
  end

  def has_parent?
    @parent != nil
  end

end<commit_msg>Initialize method w/ AbstractModuleResult fields.<commit_after>class ModuleResult
  attr_reader :id, :grade, :height, :parent, :kalibro_module
  attr_accessor :children, :metric_results

  def initialize(id, grade, height, parent, children, kalibro_module)
    @id = id
    @grade = grade
    @height = height
    @parent = parent
    @children = children
    @kalibro_module = kalibro_module
    @metric_configuration = KalibroGatekeeperClient::Entities::MetricConfiguration.new
    @metric_results = [MetricResult.new(metric_configuration, value, nil)]
  end

  def has_parent?
    @parent != nil
  end
end
{'fraction_non_alphanumeric': 0.09334763948497854, 'fraction_numerical': 0.0, 'mean_word_length': 4.016129032258065, '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': '785793', 'n_tokens_mistral': 290, 'n_tokens_neox': 287, 'n_words': 78}