<commit_before>require 'open3'
require 'tmpdir'

module JBoss
  module RakeUtils
    def self.jboss_home
      jboss_home = ENV['TORQUEBOX_HOME'] || ENV['JBOSS_HOME']
      raise "$JBOSS_HOME is not set" unless jboss_home
      return jboss_home
    end
    def self.jboss_conf
      ENV['TORQUEBOX_CONF'] || ENV['JBOSS_CONF'] || 'default'
    end
    def self.server_dir
      "#{jboss_home}/server/#{jboss_conf}"<commit_msg>Ignore TORQUEBOX_HOME for locating JBOSS<commit_after>require 'open3'
require 'tmpdir'

module JBoss
  module RakeUtils
    def self.jboss_home
      jboss_home = ENV['JBOSS_HOME']
      raise "$JBOSS_HOME is not set" unless jboss_home
      return jboss_home
    end
    def self.jboss_conf
      ENV['TORQUEBOX_CONF'] || ENV['JBOSS_CONF'] || 'default'
    end
    def self.server_dir
      "#{jboss_home}/server/#{jboss_conf}"
{'fraction_non_alphanumeric': 0.1053864168618267, 'fraction_numerical': 0.00234192037470726, 'mean_word_length': 3.5238095238095237, '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': '2220333', 'n_tokens_mistral': 332, 'n_tokens_neox': 311, 'n_words': 66}