<commit_before>require File.join(File.dirname(__FILE__), %w[ .. .. spec_helper ])

describe ArchivedAttributes::Backends::Filesystem do

  before do
    @instance = stub('http_retrieval',
      :uuid => '63d3a120-caca-012b-d468-002332d4f91e'
    )

    @path = '/tmp/archived_attributes'
    aa = ArchivedAttributes::ArchivedAttribute.new(@content, @instance,
      :path => @path)
    
    @fs = ArchivedAttributes::Backends::Filesystem.new(aa)
  end

  it "should write to the correct path" do
    @fs.__send__(:filepath).should ==
      File.expand_path(File.join(@path, @instance.uuid))
  end
<commit_msg>Pending test to remind me to do work<commit_after>require File.join(File.dirname(__FILE__), %w[ .. .. spec_helper ])

describe ArchivedAttributes::Backends::Filesystem do

  before do
    @instance = stub('http_retrieval',
      :uuid => '63d3a120-caca-012b-d468-002332d4f91e'
    )

    @path = '/tmp/archived_attributes'
    aa = ArchivedAttributes::ArchivedAttribute.new(@content, @instance,
      :path => @path)
    
    @fs = ArchivedAttributes::Backends::Filesystem.new(aa)
  end

  it "should clean up filesystem after tests are run"

  it "should write to the correct path" do
    @fs.__send__(:filepath).should ==
      File.expand_path(File.join(@path, @instance.uuid))
  end

{'fraction_non_alphanumeric': 0.13425925925925927, 'fraction_numerical': 0.032407407407407406, 'mean_word_length': 3.83955223880597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7244473', 'n_tokens_mistral': 465, 'n_tokens_neox': 429, 'n_words': 86}