<commit_before>class ArticlesController < ApplicationController
  include ApplicationHelper

  def index
    @categories = Category.all
    @articles = Article.all
  end

  def show
    @article = Article.find(params[:id])
  end

  def new
    @article = Article.new
    @categories = Category.all
  end

  def create
    params.inspect
    if current_user && current_user.role.user?
      @article = Article.new(params[:title])
      if @article.save
        @revision = Revision.new(article_id: @article, body: params[:body], editor_id: current_user)
        if @revision.save
          
        end
      else
      end
    end
  end
end<commit_msg>small changes<commit_after>class ArticlesController < ApplicationController
  include ApplicationHelper

  def index
    @categories = Category.all
    @articles = Article.all
  end

  def show
    @article = Article.find(params[:id])
  end

  def new
    @article = Article.new
    @categories = Category.all
  end

  def create
    params.inspect
    if current_user && current_user.role.user?
      @article = Article.new(params[:title])
      if @article.save
        @revision = Revision.new(article_id: @article, body: params[:body], editor_id: current_user)
        if @revision.save
          params.each do ||

        end
      else
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08698940998487141, 'fraction_numerical': 0.0, 'mean_word_length': 2.575675675675676, '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': '6186312', 'n_tokens_mistral': 398, 'n_tokens_neox': 384, 'n_words': 100}