<commit_before>class PostPreviewController < ApplicationController
  include AutoHtml
  layout false

  def show
    render text: convert_to_html
  end

  protected

  def convert_to_html
    auto_html(params[:text]) do
      html_escape map: {
        '&' => '&amp;',
        '>' => '&gt;',
        '<' => '&lt;',
        '"' => '"'
      }
      image
      youtube width: 600, height: 403, wmode: "opaque"
      vimeo width: 600, height: 403
      redcloth target: :_blank
      link target: :_blank
    end
  end

end
<commit_msg>adjust width on image for preview<commit_after>class PostPreviewController < ApplicationController
  include AutoHtml
  layout false

  def show
    render text: convert_to_html
  end

  protected

  def convert_to_html
    auto_html(params[:text]) do
      html_escape map: {
        '&' => '&amp;',
        '>' => '&gt;',
        '<' => '&lt;',
        '"' => '"'
      }
      image width: 600
      youtube width: 600, height: 403, wmode: "opaque"
      vimeo width: 600, height: 403
      redcloth target: :_blank
      link target: :_blank
    end
  end

end

{'fraction_non_alphanumeric': 0.1191992720655141, 'fraction_numerical': 0.02456778889899909, 'mean_word_length': 2.3333333333333335, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '5439240', 'n_tokens_mistral': 392, 'n_tokens_neox': 354, 'n_words': 97}