<commit_before>require_relative '../../lib/dropdown'

describe 'Processing a directory of markdown files' do
  context 'in a local directory' do

    let(:blog_directory) { '../fixtures/blog' }
    let(:html_directory_path) { File.join(blog_directory, 'html') }

    subject { Dropdown::Processor.new }

    it 'generates the html files for the markdown files' do
      subject.source = blog_directory
      subject.output_store = Dropdown::OutputStore.new(html_directory_path)
      subject.renderer = :markdown_renderer
      subject.process

      html_files = Dir[File.join(html_directory_path, '**', '*')]
      html_files.length.should be > 0
    end

  end
end
<commit_msg>Reference the current path for the blog path<commit_after>require_relative '../../lib/dropdown'

describe 'Processing a directory of markdown files' do
  context 'in a local directory' do

    let(:current_directory) { File.expand_path File.dirname(__FILE__) }
    let(:blog_directory) { File.join current_directory, '../fixtures/blog' }
    let(:html_directory_path) { File.join(blog_directory, 'html') }

    subject { Dropdown::Processor.new }

    it 'generates the html files for the markdown files' do
      subject.source = blog_directory
      subject.output_store = Dropdown::OutputStore.new(html_directory_path)
      subject.renderer = :markdown_renderer
      subject.process

      html_files = Dir[File.join(html_directory_path, '**', '*')]
      html_files.length.should be > 0
    end

  end
end

{'fraction_non_alphanumeric': 0.10924932975871314, 'fraction_numerical': 0.0013404825737265416, 'mean_word_length': 3.6949685534591197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3310164', 'n_tokens_mistral': 446, 'n_tokens_neox': 433, 'n_words': 108}