<commit_before># encoding: utf-8
# Bootstraps an empty JRuby environment in the CMR so that it will have the appropriate functions
# available for rendering collections. Sets up enough functions so the the ERB partials from MMT
# will be renderable.

require 'erb'
require 'ostruct'
require 'java'
require 'set'
require 'active_support/all'
require 'action_view'
require 'action_dispatch'
require 'gems/cmr_metadata_preview-0.0.1/app/helpers/cmr_metadata_preview/cmr_metadata_preview_helper'
require 'gems/cmr_metadata_preview-0.0.1/app/helpers/cmr_metadata_preview/options_helper'<commit_msg>CMR-3905: Make collection-renderer-lib ignore user's GEM_PATH env variable.<commit_after># encoding: utf-8
# Bootstraps an empty JRuby environment in the CMR so that it will have the appropriate functions
# available for rendering collections. Sets up enough functions so that the ERB partials from MMT
# will be renderable.

# Unset gem related environment variables to prevent jruby from loading gems from client's GEM_PATH
ENV.delete('GEM_HOME')
ENV.delete('GEM_PATH')

require 'erb'
require 'ostruct'
require 'java'
require 'set'
require 'active_support/all'
require 'action_view'
require 'action_dispatch'
require 'gems/cmr_metadata_preview-0.0.1/app/helpers/cmr_metadata_preview/cmr_metadata_preview_helper'
require 'gems/cmr_metadata_preview-0.0.1/app/helpers/cmr_metadata_preview/options_helper'
{'fraction_non_alphanumeric': 0.07879656160458452, 'fraction_numerical': 0.012893982808022923, 'mean_word_length': 6.430851063829787, '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': '7249530', 'n_tokens_mistral': 440, 'n_tokens_neox': 430, 'n_words': 132}