<commit_before>require 'caruby/domain'

# Example CaRuby::Domain containing some simple domain classes.
module ClinicalTrials
  
  # @param [Module] mod the resource mix-in module to extend with metadata capability
  def self.extend_module(mod)
    CaRuby::Domain.extend_module(self, :mixin => mod, :package => PKG, :directory => SRC_DIR)
  end

  private

  # Add the Java jar file to the Java path.
  # For a real application, the jar directories path is set in the application properties file,
  # e.g. ~/.clinicaltrials, which is loaded on demand by {Domain#access_properties}.
  require File.dirname(__FILE__) + '/../../ext/bin/clinicaltrials.jar'

  # The required Java package name.
  PKG = 'clinicaltrials.domain'
  
  # The domain class definitions.
  SRC_DIR = File.dirname(__FILE__) + '/domain'

  # @param [Module] mod the resource mix-in module to extend with metadata capability
  def self.extend_module(mod)
    # Enable the resource metadata aspect.
    CaRuby::Domain.extend_module(self, :mixin => mod, :package => PKG, :directory => SRC_DIR)
  end
end
<commit_msg>Remove extraneous extend_module def.<commit_after>require 'caruby/domain'

# Example CaRuby::Domain containing some simple domain classes.
module ClinicalTrials
  
  # @param [Module] mod the resource mix-in module to extend with metadata capability
  def self.extend_module(mod)
    CaRuby::Domain.extend_module(self, :mixin => mod, :package => PKG, :directory => SRC_DIR)
  end

  private

  # Add the Java jar file to the Java path.
  # For a real application, the jar directories path is set in the application properties file,
  # e.g. ~/.clinicaltrials, which is loaded on demand by {Domain#access_properties}.
  require File.dirname(__FILE__) + '/../../ext/bin/clinicaltrials.jar'

  # The required Java package name.
  PKG = 'clinicaltrials.domain'
  
  # The domain class definitions.
  SRC_DIR = File.dirname(__FILE__) + '/domain'
end

{'fraction_non_alphanumeric': 0.10067462376751427, 'fraction_numerical': 0.0, 'mean_word_length': 4.020833333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '1786892', 'n_tokens_mistral': 594, 'n_tokens_neox': 558, 'n_words': 200}