<commit_before>
class Flor::Pro::Ref < Flor::Procedure

  names %w[ _ref _rep ]

  def pre_execute

    @node['rets'] = []
  end

  def receive_last

    rs = @node['rets']
    rs = rs[0] if rs.size == 1 && rs[0].match(/[.\[]/)
    pa = Dense::Path.make(rs).to_a

    payload['ret'] =
      if tree[0] == '_rep'
        pa
      elsif pa.size == 2 && pa[1] == 'ret' && pa[0].match(/\Af(ld|ield)?\z/)
        node_payload_ret
      else
        lookup_value(pa)
      end

    super
  end
end

<commit_msg>Returns the f.ret as found at the parent level<commit_after>
class Flor::Pro::Ref < Flor::Procedure

  names %w[ _ref _rep ]

  def pre_execute

    @node['rets'] = []
  end

  def receive_last

    rs = @node['rets']
    rs = rs[0] if rs.size == 1 && rs[0].match(/[.\[]/)
    pa = Dense::Path.make(rs).to_a

    payload['ret'] =
      if tree[0] == '_rep'
        pa
      elsif pa.size == 2 && pa[1] == 'ret' && pa[0].match(/\Af(ld|ield)?\z/)
        parent ?
          parent_node_procedure.node_payload_ret :
          node_payload_ret
      else
        lookup_value(pa)
      end

    super
  end
end


{'fraction_non_alphanumeric': 0.1707097933513028, 'fraction_numerical': 0.012578616352201259, 'mean_word_length': 2.1204481792717087, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6053874', 'n_tokens_mistral': 432, 'n_tokens_neox': 411, 'n_words': 94}