<commit_before>require 'event_calendar/calendar_helper'

module EventCalendar
  module Rails
    class Engine < ::Rails::Engine
      initializer 'event_calendar.setup_view_helpers' do |app|
        app.config.to_prepare do
          ActionController::Base.send(:helper, ::EventCalendar::CalendarHelper)<commit_msg>Fix to helper work with 3.* rails app<commit_after>require 'event_calendar/calendar_helper'

module EventCalendar
  module Rails
    class Engine < ::Rails::Engine
      initializer 'event_calendar.setup_view_helpers' do |app|
        app.config.to_prepare do
          # after migrating to 3.2 a line below works
          # ActionController::Base.send(:helper, ::EventCalendar::CalendarHelper)
          ActionView::Base.send(:include, ::EventCalendar::CalendarHelper)
{'fraction_non_alphanumeric': 0.09426751592356689, 'fraction_numerical': 0.003821656050955414, 'mean_word_length': 4.275167785234899, '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': '2857642', 'n_tokens_mistral': 215, 'n_tokens_neox': 209, 'n_words': 50}