<commit_before>require 'rubygems'
require 'bundler/setup'
require 'health_inspector'

module HealthInspector::SpecHelpers
  def health_inspector_context
    @health_inspector_context ||= begin
      repo_path = File.expand_path("../chef-repo", __FILE__)

      HealthInspector::Context.new( repo_path, File.join(repo_path, ".chef/knife.rb") ).tap do |context|
        context.configure
      end
    end
  end
end

RSpec.configure do |c|
  c.include HealthInspector::SpecHelpers
end

shared_examples "a chef model" do<commit_msg>Pass in a useless context obj in specs that isnt used yet<commit_after>require 'rubygems'
require 'bundler/setup'
require 'health_inspector'

module HealthInspector::SpecHelpers
  def health_inspector_context
    @health_inspector_context ||= HealthInspector::Context.new(nil)
  end
end

RSpec.configure do |c|
  c.include HealthInspector::SpecHelpers
end

shared_examples "a chef model" do
{'fraction_non_alphanumeric': 0.09031556039173014, 'fraction_numerical': 0.0, 'mean_word_length': 5.052631578947368, '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': '6136861', 'n_tokens_mistral': 300, 'n_tokens_neox': 292, 'n_words': 73}