<commit_before>module PbActor
  class Future
    def initialize id, wr, rd
      @id = id
      @wr= wr
      @rd = rd
    end

    def value
      loop do
        Message.send [:future_value_get, @id], @wr
        type, value = Message.recv @rd
        if type == :future_value
          break value
        else
          sleep 0.01
        end
      end
    end
  end
end<commit_msg>fix unwork code<commit_after>module PbActor
  class Future
    def initialize id, wr, rd
      @id = id
      @wr= wr
      @rd = rd
    end

    def value
      Message.send [:future_value_get, @id], @wr
      type, value = Message.recv @rd
      if type == :future_value
        value
      else
        raise "unknown message type: #{type.inspect} value: #{value.inspect}"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08238276299112801, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 1.6779661016949152, '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': '7282863', 'n_tokens_mistral': 258, 'n_tokens_neox': 247, 'n_words': 84}