<commit_before># encoding: utf-8

require 'spec_helper'

describe Relation, '.build' do
  subject { described_class.build(relation, mapper) }

  fake(:relation)        { Axiom::Relation }
  fake(:mapped_relation) { Axiom::Relation }
  fake(:mapper)          { Mapper }

  before do
    stub(mapper).call(relation)    { mapped_relation }
    stub(mapped_relation).optimize { mapped_relation }
  end

  its(:relation) { should be(mapped_relation) }
  its(:mapper)   { should be(mapper) }
end<commit_msg>Kill mutation in Relation.build (:heart: mutant)<commit_after># encoding: utf-8

require 'spec_helper'

describe Relation, '.build' do
  subject { described_class.build(relation, mapper) }

  fake(:relation)  { Axiom::Relation }
  fake(:mapped)    { Axiom::Relation }
  fake(:optimized) { Axiom::Relation }
  fake(:mapper)    { Mapper }

  before do
    stub(mapper).call(relation) { mapped }
    stub(mapped).optimize       { optimized }
  end

  its(:relation) { should be(optimized) }
  its(:mapper)   { should be(mapper) }
end
{'fraction_non_alphanumeric': 0.1338506304558681, 'fraction_numerical': 0.0019398642095053346, 'mean_word_length': 3.890995260663507, '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': '929375', 'n_tokens_mistral': 363, 'n_tokens_neox': 352, 'n_words': 70}