<commit_before>require 'rubygems'
require "bundler/setup"
require 'rspec'
require 'fileutils'
require 'tmpdir'
require 'logger'
require 'rspec/its'
require 'neo4j-core'


if RUBY_PLATFORM == 'java'
  require "neo4j-embedded/embedded_impermanent_session"
end<commit_msg>Fixed open struct problem for JRuby<commit_after>require 'rubygems'
require "bundler/setup"
require 'rspec'
require 'fileutils'
require 'tmpdir'
require 'logger'
require 'rspec/its'
require 'neo4j-core'

require 'ostruct'


if RUBY_PLATFORM == 'java'
  require "neo4j-embedded/embedded_impermanent_session"

  # for some reason this is not impl. in JRuby
  class OpenStruct
    def [](key)
      self.send(key)
    end
  end
end
{'fraction_non_alphanumeric': 0.10186513629842181, 'fraction_numerical': 0.005738880918220947, 'mean_word_length': 5.288288288288288, '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': '3906101', 'n_tokens_mistral': 257, 'n_tokens_neox': 245, 'n_words': 66}