<commit_before>require 'rails'
require 'active_support'
require 'active_support/dependencies'
require 'active_support/concern'
require 'active_support/log_subscriber'
require 'action_view/asset_paths'
require 'action_view/helpers' 
require 'action_view/base'

require 'transponder/version'
require 'transponder/transmission'

module Transponder
  module ViewHelpers
    def xms_module_name
      params[:controller].include?('/') ? params[:controller].split('/')[0] : nil
    end

    def xms_event(module_name: nil, action: nil)
      _module = module_name || xms_module_name || 'application'
      _action = action || action_name
      "ujs:#{_module}:#{controller_name}:#{_action}"
    end
  end

  class Engine < ::Rails::Engine
    ActionView::Base.send :include, Transponder::ViewHelpers
  end
end<commit_msg>Added context for action_view<commit_after>require 'rails'
require 'active_support'
require 'active_support/dependencies'
require 'active_support/concern'
require 'active_support/log_subscriber'
require 'action_view/asset_paths'
require 'action_view/helpers' 
require 'action_view/context'
require 'action_view/base'

require 'transponder/version'
require 'transponder/transmission'

module Transponder
  module ViewHelpers
    def xms_module_name
      params[:controller].include?('/') ? params[:controller].split('/')[0] : nil
    end

    def xms_event(module_name: nil, action: nil)
      _module = module_name || xms_module_name || 'application'
      _action = action || action_name
      "ujs:#{_module}:#{controller_name}:#{_action}"
    end
  end

  class Engine < ::Rails::Engine
    ActionView::Base.send :include, Transponder::ViewHelpers
  end
end
{'fraction_non_alphanumeric': 0.11515513126491647, 'fraction_numerical': 0.0011933174224343676, 'mean_word_length': 5.280898876404494, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3992500', 'n_tokens_mistral': 523, 'n_tokens_neox': 524, 'n_words': 110}