<commit_before>require 'tempfile'
module XPool::Support
  class SmartUnit
    def initialize
      file = Tempfile.new '__xpool_test'
      @path = file.path
      file.close false
    end

    def run
      File.open @path, 'w' do |f|
        f.write 'true'
        sleep 1
      end
    end

    def run?
      return @run if defined?(@run)
      @run = File.read(@path) == 'true'
      FileUtils.rm_rf @path
      @run
    end<commit_msg>decrease the amount of time SmartUnit sleeps for<commit_after>require 'tempfile'
module XPool::Support
  class SmartUnit
    def initialize
      file = Tempfile.new '__xpool_test'
      @path = file.path
      file.close false
    end

    def run
      File.open @path, 'w' do |f|
        f.write 'true'
        sleep 0.1
      end
    end

    def run?
      return @run if defined?(@run)
      @run = File.read(@path) == 'true'
      FileUtils.rm_rf @path
      @run
    end
{'fraction_non_alphanumeric': 0.09684439608269858, 'fraction_numerical': 0.003264417845484222, 'mean_word_length': 1.977346278317152, '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': '6857414', 'n_tokens_mistral': 310, 'n_tokens_neox': 302, 'n_words': 90}