<commit_before>require File.dirname(__FILE__) + '/../../spec_helper'
require 'tempfile'

describe "Tempfile#path" do
  it "returns the path to the tempfile" do
    @tempfile = Tempfile.new("specs", tmp(""))
    @tempfile.path.should =~ /^#{tmp("")}/
    @tempfile.path.should include("specs")
  end
end
<commit_msg>Prevent invalid regex error on Mac OS X<commit_after>require File.dirname(__FILE__) + '/../../spec_helper'
require 'tempfile'

describe "Tempfile#path" do
  it "returns the path to the tempfile" do
    @tempfile = Tempfile.new("specs", tmp(""))
    tmpdir = tmp("")
    @tempfile.path[0, tmpdir.length].should == tmpdir
    @tempfile.path.should include("specs")
  end
end

{'fraction_non_alphanumeric': 0.16424418604651161, 'fraction_numerical': 0.0014534883720930232, 'mean_word_length': 4.103703703703704, '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': '5753829', 'n_tokens_mistral': 232, 'n_tokens_neox': 230, 'n_words': 60}