<commit_before># Sets graetzl for nested route calls
module GraetzlChild
  extend ActiveSupport::Concern

  included do
    before_action :set_graetzl, only: [:index, :show]
    before_action :set_map_data, only: [:index], unless: :format_js?
  end

  def verify_graetzl_child(child)
    redirect_to [child.graetzl, child] if @graetzl != child.graetzl
  end

  private

  def set_graetzl
    @graetzl = Graetzl.find(params[:graetzl_id])
  end

  def set_map_data
    @map_data = GeoJSONService.call(graetzls: @graetzl)
  end

  def format_js?
     request.xhr?
  end
end<commit_msg>formatting stuff...<commit_after>module GraetzlChild
  extend ActiveSupport::Concern

  included do
    before_action :set_graetzl, only: [:index, :show]
    before_action :set_map_data, only: [:index], unless: :format_js?
  end

  def verify_graetzl_child(child)
    redirect_to [child.graetzl, child] if @graetzl != child.graetzl
  end

  private

  def set_graetzl
    @graetzl = Graetzl.find(params[:graetzl_id])
  end

  def set_map_data
    @map_data = GeoJSONService.call(graetzls: @graetzl)
  end

  def format_js?
    request.xhr?
  end
end
{'fraction_non_alphanumeric': 0.09372236958443855, 'fraction_numerical': 0.0, 'mean_word_length': 4.076233183856503, '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': '4542213', 'n_tokens_mistral': 434, 'n_tokens_neox': 417, 'n_words': 95}