<commit_before>require 'data_objects'

if RUBY_PLATFORM =~ /java/
  require 'do_jdbc'
  require 'java'

  driver = 'org.hsqldb.jdbcDriver'
  begin
    java.lang.Thread.currentThread.getContextClassLoader().loadClass(driver, true)
  rescue
    require 'jdbc/hsqldb'     # the JDBC driver, packaged as a gem
  end
  require 'do_hsqldb/do_hsqldb'   # the Java extension for this DO driver

  # Another way of loading the JDBC Class. This seems to be more reliable
  # than Class.forName() within the data_objects.Connection Java class,
  # which is currently not working as expected.
  java_import driver

else
  warn "do_hsqldb is only for use with JRuby"
end<commit_msg>Use proper name with the do_hsqldb driver<commit_after>require 'data_objects'

if RUBY_PLATFORM =~ /java/
  require 'do_jdbc'
  require 'java'

  driver = 'org.hsqldb.jdbcDriver'
  begin
    java.lang.Thread.currentThread.getContextClassLoader().loadClass(driver, true)
  rescue
    require 'jdbc/hsqldb'     # the JDBC driver, packaged as a gem
  end
  require 'do_hsqldb/do_hsqldb'   # the Java extension for this DO driver

  # Another way of loading the JDBC Class. This seems to be more reliable
  # than Class.forName() within the data_objects.Connection Java class,
  # which is currently not working as expected.
  java_import(driver) { 'JdbcDriver' }

else
  warn "do_hsqldb is only for use with JRuby"
end
{'fraction_non_alphanumeric': 0.07514450867052024, 'fraction_numerical': 0.0, 'mean_word_length': 3.9288256227758005, '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': '5738921', 'n_tokens_mistral': 471, 'n_tokens_neox': 452, 'n_words': 151}