<commit_before>require "rubygems"

require "jekyll"
require "liquid"

include Jekyll

require File.expand_path("lib/jekyll-last-modified-at.rb")

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.before(:all) do
    Jekyll.logger.log_level = Jekyll::Stevenson::ERROR

    original_stderr = $stderr
    original_stdout = $stdout

    @fixtures_path = Pathname.new(__FILE__).parent.join("fixtures")
    @dest = @fixtures_path.join("_site")
    @posts_src = File.join(@fixtures_path, "_posts")
    @layouts_src = File.join(@fixtures_path, "_layouts")
    @plugins_src = File.join(@fixtures_path, "_plugins")

    $stderr = File.new(File.join(File.dirname(__FILE__), 'dev', 'null.txt'), 'w')<commit_msg>Compat with Jekyll 2<commit_after>require "rubygems"

require "jekyll"
require "liquid"

include Jekyll

require File.expand_path("lib/jekyll-last-modified-at.rb")

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.before(:all) do
    if Jekyll::VERSION >= "2"
      Jekyll.logger.log_level = :error
    else
      Jekyll.logger.log_level = Jekyll::Stevenson::ERROR
    end

    original_stderr = $stderr
    original_stdout = $stdout

    @fixtures_path = Pathname.new(__FILE__).parent.join("fixtures")
    @dest = @fixtures_path.join("_site")
    @posts_src = File.join(@fixtures_path, "_posts")
    @layouts_src = File.join(@fixtures_path, "_layouts")
    @plugins_src = File.join(@fixtures_path, "_plugins")

    $stderr = File.new(File.join(File.dirname(__FILE__), 'dev', 'null.txt'), 'w')
{'fraction_non_alphanumeric': 0.14527238572323106, 'fraction_numerical': 0.0012523481527864746, 'mean_word_length': 4.344481605351171, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3056369', 'n_tokens_mistral': 581, 'n_tokens_neox': 565, 'n_words': 101}