<commit_before>class TextBlocksController < ApplicationController
  include LayoutHelper

  respond_to :html

  # ruby ftw - render textblock with passed name
  def action_missing(action)
    render_textblock action
  end

  def show
    render_textblock params[:id]
  end

  private

  def render_textblock(name)
    block = TextBlock.block_for(name.to_s)

    @page_title = @title = block.title
    @content = layout_render_textblock(block)

    render :article
  end

end
<commit_msg>coding style<commit_after>class TextBlocksController < ApplicationController
  include LayoutHelper

  respond_to :html

  # ruby ftw - render textblock with passed name
  def action_missing(action)
    render_textblock(action)
  end

  def show
    render_textblock(params[:id])
  end

  private

  def render_textblock(name)
    block = TextBlock.block_for(name.to_s)

    @page_title = @title = block.title
    @content = layout_render_textblock(block)

    render :article
  end

end

{'fraction_non_alphanumeric': 0.06358974358974359, 'fraction_numerical': 0.0, 'mean_word_length': 3.8316831683168315, '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': '4216574', 'n_tokens_mistral': 312, 'n_tokens_neox': 294, 'n_words': 75}