<commit_before>class MinutesController < ApplicationController
  before_action :set_minute, only: [:show, :edit, :update, :destroy]

  # GET /minutes
  # GET /minutes.json
  def index
    @minutes = Minute.all
  end

  # GET /minutes/1
  # GET /minutes/1.json
  def show
  end

  # GET /minutes/new
  def new
    @minute = Minute.new
  end

  # GET /minutes/1/edit
  def edit
  end

  # POST /minutes
  # POST /minutes.json
  def create
    @minute = Minute.new(minute_params)

    respond_to do |format|
      if @minute.save
        format.html { redirect_to @minute, notice: 'Minute was successfully created.' }
        format.json { render :show, status: :created, location: @minute }
      else
        format.html { render :new }<commit_msg>Render minutes in plain text format<commit_after>class MinutesController < ApplicationController
  before_action :set_minute, only: [:show, :edit, :update, :destroy]

  # GET /minutes
  # GET /minutes.json
  def index
    @minutes = Minute.all
  end

  # GET /minutes/1
  # GET /minutes/1.json
  def show
    respond_to do |format|
      format.html {}
      format.json {}
      format.text {render plain: JayFlavoredMarkdownToPlainTextConverter.new(@minute.content).content}
    end
  end

  # GET /minutes/new
  def new
    @minute = Minute.new
  end

  # GET /minutes/1/edit
  def edit
  end

  # POST /minutes
  # POST /minutes.json
  def create
    @minute = Minute.new(minute_params)

    respond_to do |format|
      if @minute.save
        format.html { redirect_to @minute, notice: 'Minute was successfully created.' }
        format.json { render :show, status: :created, location: @minute }
      else
        format.html { render :new }
{'fraction_non_alphanumeric': 0.10259433962264151, 'fraction_numerical': 0.003537735849056604, 'mean_word_length': 2.6891304347826086, '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': '7470536', 'n_tokens_mistral': 571, 'n_tokens_neox': 534, 'n_words': 155}