<commit_before>module LocalvarDefinitionConcern
  def var_definition
    @var_definition ||= function&.all_nodes(DabNodeDefineLocalVar)&.detect do |node|
      node.identifier == self.identifier
    end
  end

  def index
    var_definition&.index
  end
end<commit_msg>compiler: expose multiple var definitions<commit_after>module LocalvarDefinitionConcern
  def var_definition
    @var_definition ||= var_definitions&.first
  end

  def var_definitions
    function&.all_nodes(DabNodeDefineLocalVar)&.select do |node|
      node.identifier == self.identifier
    end
  end

  def index
    var_definition&.index
  end
end
{'fraction_non_alphanumeric': 0.07234726688102894, 'fraction_numerical': 0.0, 'mean_word_length': 4.235294117647059, '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': '2490557', 'n_tokens_mistral': 192, 'n_tokens_neox': 184, 'n_words': 41}