<commit_before>module MockedFixtures
  class MockFactory
    class << self
      
      # Create mock object from fixture
      def create_mock(type, model_class, fixture, testcase)
        self.send("create_#{type}_mock", model_class, fixture, testcase)
      end
      
      def create_rspec_mock(model_class, fixture, testcase)
        testcase.mock_model(model_class, { :all_attributes => true, :add_errors => true }.merge(fixture) )
      end
      
      def create_flexmock_mock(model_class, fixture, testcase)
        testcase.flexmock(:model, model_class, { :all_attributes => true, :add_errors => true }.merge(fixture) )
      end
      
      def create_mocha_mock(model_class, fixture, testcase)
        testcase.stub(model_class, { :all_attributes => true, :add_errors => true }.merge(fixture) )
      end      
    end
  end
end<commit_msg>simplified factory may remove altogther later<commit_after>module MockedFixtures
  class MockFactory
    class << self
      
      # Create mock object from fixture
      def create_mock(type, model_class, fixture, testcase)
        testcase.send("mock_model_with_#{type}", model_class, { :all_attributes => true, :add_errors => true }.merge(fixture) )
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.09458367016976556, 'fraction_numerical': 0.0, 'mean_word_length': 3.1824324324324325, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '1347761', 'n_tokens_mistral': 377, 'n_tokens_neox': 376, 'n_words': 89}