<commit_before>require 'helper'

class TestSass < Test::Unit::TestCase
  def site_configuration(overrides = {})
    Jekyll::Configuration::DEFAULTS.deep_merge(overrides).deep_merge({
      "source" => source_dir,
      "destination" => dest_dir
    })
  end

  def converter(overrides = {})
    Jekyll::Sass.new(site_configuration({"sass" => overrides}))
  end

  def sass_content
    <<-SASS
$font-stack: Helvetica, sans-serif
body
  font-family: $font-stack
  font-color: fuschia
SASS
  end

  def scss_content
    <<-SCSS
$font-stack: Helvetica, sans-serif;
body {
  font-family: $font-stack;
  font-color: fuschia;
}
SCSS
  end

  def css_output
    <<-CSS
body {\n  font-family: Helvetica, sans-serif;\n  font-color: fuschia; }
CSS
  end

  context "matching file extensions" do
    should "match .scss files" do
      assert converter.matches(".scss")
    end

    should "match .sass files" do
      assert converter.matches(".sass")
    end
  end

  context "determining the output file extension" do
    should "output .css file extension" do
      assert_equal ".css", converter.output_ext(".always-css")
    end<commit_msg>Improve the test description for the outputs_ext test<commit_after>require 'helper'

class TestSass < Test::Unit::TestCase
  def site_configuration(overrides = {})
    Jekyll::Configuration::DEFAULTS.deep_merge(overrides).deep_merge({
      "source" => source_dir,
      "destination" => dest_dir
    })
  end

  def converter(overrides = {})
    Jekyll::Sass.new(site_configuration({"sass" => overrides}))
  end

  def sass_content
    <<-SASS
$font-stack: Helvetica, sans-serif
body
  font-family: $font-stack
  font-color: fuschia
SASS
  end

  def scss_content
    <<-SCSS
$font-stack: Helvetica, sans-serif;
body {
  font-family: $font-stack;
  font-color: fuschia;
}
SCSS
  end

  def css_output
    <<-CSS
body {\n  font-family: Helvetica, sans-serif;\n  font-color: fuschia; }
CSS
  end

  context "matching file extensions" do
    should "match .scss files" do
      assert converter.matches(".scss")
    end

    should "match .sass files" do
      assert converter.matches(".sass")
    end
  end

  context "determining the output file extension" do
    should "always outputs the .css file extension" do
      assert_equal ".css", converter.output_ext(".always-css")
    end
{'fraction_non_alphanumeric': 0.11896551724137931, 'fraction_numerical': 0.0, 'mean_word_length': 3.379245283018868, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 9, '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': '3663343', 'n_tokens_mistral': 800, 'n_tokens_neox': 778, 'n_words': 198}