<commit_before>require 'view_inspect/server_side_template'
require 'view_inspect/client_side_template'

module ViewInspect

  def self.init
    return unless allow_view_source_location?

    ServerSideTemplate.handle
    ClientSideTemplate.handle

    @show_html_syntax_error = false
  end

  def self.allow_view_source_location?
    !@disable && ::Rails.env.development?
  end

  def self.disable=(bool)
    @disable = bool
  end

  def self.show_html_syntax_error?
    @show_html_syntax_error
  end

  def self.show_html_syntax_error=(bool)
    @show_html_syntax_error = bool
  end

end<commit_msg>fix bug where show_html_syntax_error overrides user specified value<commit_after>require 'view_inspect/server_side_template'
require 'view_inspect/client_side_template'

module ViewInspect

  def self.init
    return unless allow_view_source_location?

    ServerSideTemplate.handle
    ClientSideTemplate.handle
  end

  def self.allow_view_source_location?
    !@disable && ::Rails.env.development?
  end

  def self.disable=(bool)
    @disable = bool
  end

  def self.show_html_syntax_error?
    @show_html_syntax_error
  end

  def self.show_html_syntax_error=(bool)
    @show_html_syntax_error = bool
  end

end
{'fraction_non_alphanumeric': 0.0657354149548069, 'fraction_numerical': 0.0, 'mean_word_length': 4.486486486486487, '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': '5068454', 'n_tokens_mistral': 418, 'n_tokens_neox': 392, 'n_words': 76}