<commit_before># Loader of ActiveRDF library
#
# (c) 2005-2006 by <NAME> and <NAME> - All Rights Reserved

# adding active_rdf subdirectory to the ruby loadpath
file =
if File.symlink?(__FILE__)
  File.readlink(__FILE__)
else
  __FILE__
end

$: << File.dirname(File.expand_path(file)) + '/src'
$: << File.dirname(File.expand_path(file))

class ActiveRdfError < StandardError
end


class Module
  def bool_accessor *syms
    attr_accessor *syms
    syms.each { |sym| alias_method "#{sym}?", sym }
    remove_method *syms
  end
end
# load standard classes that need to be loaded at startup
require 'objectmanager/resource'
require 'objectmanager/namespace'
require 'federation/connection_pool'
require 'queryengine/query'<commit_msg>fixed #64236: all adapters are now loaded automatically, and we discard any errors on adapters that fail to load<commit_after># Loader of ActiveRDF library
#
# (c) 2005-2006 by <NAME> and <NAME> - All Rights Reserved

# adding active_rdf subdirectory to the ruby loadpath
file =
if File.symlink?(__FILE__)
  File.readlink(__FILE__)
else
  __FILE__
end

$: << File.dirname(File.expand_path(file)) + '/src'
$: << File.dirname(File.expand_path(file))

class ActiveRdfError < StandardError
end


class Module
  def bool_accessor *syms
    attr_accessor *syms
    syms.each { |sym| alias_method "#{sym}?", sym }
    remove_method *syms
  end
end

# load standard classes that need to be loaded at startup
require 'objectmanager/resource'
require 'objectmanager/namespace'
require 'federation/connection_pool'
require 'queryengine/query'

# load all adapters, discard errors because of failed dependencies
Dir["./src/adapter/*.rb"].each do |adapter|
	begin
		require adapter
	rescue LoadError
	end
end
{'fraction_non_alphanumeric': 0.0984936268829664, 'fraction_numerical': 0.01216685979142526, 'mean_word_length': 4.874149659863946, 'pattern_counts': {'":': 0, '<': 17, '<?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': '2073107', 'n_tokens_mistral': 571, 'n_tokens_neox': 540, 'n_words': 174}