<commit_before>require 'rubygems'
require 'session'
require 'tempfile'
require 'appraisal'

module AdapterIntegrationTests
  ROOT_DIR = File.expand_path('../../../..', __FILE__)
  LIB_DIR = File.join(ROOT_DIR, 'lib')
  TEMP_DIR = '/tmp/rr_integration_tests'

  def create_link(filename)
    FileUtils.ln_s(File.join(ROOT_DIR, filename), File.join(TEMP_DIR, filename))
  end

  def debug?
    RR.debug?
  end<commit_msg>Move temporary files created during tests to a more portable location<commit_after>require 'rubygems'
require 'session'
require 'tempfile'
require 'appraisal'

module AdapterIntegrationTests
  ROOT_DIR = File.expand_path('../../../..', __FILE__)
  LIB_DIR = File.join(ROOT_DIR, 'lib')
  TEMP_DIR = File.join(ROOT_DIR, 'tmp/rr_integration_tests')

  def create_link(filename)
    FileUtils.ln_s(File.join(ROOT_DIR, filename), File.join(TEMP_DIR, filename))
  end

  def debug?
    RR.debug?
  end
{'fraction_non_alphanumeric': 0.1301969365426696, 'fraction_numerical': 0.0, 'mean_word_length': 4.648148148148148, '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': '4453', 'n_tokens_mistral': 325, 'n_tokens_neox': 312, 'n_words': 68}