<commit_before>require './test_common'
require 'delivery/multicast'

module TestState
  include StaticMembership

  state do
    table :mcast_done_perm, [:ident]
    table :rcv_perm, [:ident] => [:payload]
  end

  bloom :mem do
    mcast_done_perm <= mcast_done
    rcv_perm <= pipe_out {|r| [r.ident, r.payload]}
  end
end

class MC
  include Bud
  include TestState
  include BestEffortMulticast

end

class RMC
  include Bud
  include TestState
  include ReliableMulticast
end


class TestMC < Test::Unit::TestCase
  def test_be
    mc = MC.new
    mc2 = MC.new
    mc3 = MC.new
<commit_msg>Fix error in test case.<commit_after>require './test_common'
require 'delivery/multicast'

module TestState
  include StaticMembership

  state do
    table :mcast_done_perm, mcast_done.schema
    table :rcv_perm, [:ident] => [:payload]
  end

  bloom :mem do
    mcast_done_perm <= mcast_done
    rcv_perm <= pipe_out {|r| [r.ident, r.payload]}
  end
end

class MC
  include Bud
  include TestState
  include BestEffortMulticast

end

class RMC
  include Bud
  include TestState
  include ReliableMulticast
end


class TestMC < Test::Unit::TestCase
  def test_be
    mc = MC.new
    mc2 = MC.new
    mc3 = MC.new

{'fraction_non_alphanumeric': 0.08188585607940446, 'fraction_numerical': 0.0033085194375516956, 'mean_word_length': 3.4, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2057457', 'n_tokens_mistral': 449, 'n_tokens_neox': 434, 'n_words': 122}