<commit_before>class LogsController < ApplicationController
  
  before_filter :authenticate
  
  def index
    @logs = Log.all
  end

  def show
    @log = Log.find(params[:id])
  end

  def new
    @log = Log.new
  end
  
  def edit
	@log = Log.find(params[:id])
  end
  
  def create
	@log = Log.new(params[:log])

    if @log.save
      flash[:notice] = 'Log was successfully created'
      redirect_to logs_path
    else
      flash[:notice] = 'Log was successfully created'
      render :action => "new"
    end
	end

  def update
	@log = Log.find(params[:id])

    if @log.update_attributes(params[:log])
      flash[:notice] = 'Log was successfully updated'
      redirect_to(@log)
    else
      flash[:error] = 'Log was not updated'
      render :action => "edit" 
    end
  end
  
  def destroy
    @log = Log.find(params[:id])
    @log.destroy
    
    respond_to do |format|
      format.html { redirect_to logs_url }
    end
  end
  <commit_msg>Fix indentation in logs controller<commit_after>class LogsController < ApplicationController
  
  before_filter :authenticate
  
  def index
    @logs = Log.all
  end

  def show
    @log = Log.find(params[:id])
  end

  def new
    @log = Log.new
  end
  
  def edit
    @log = Log.find(params[:id])
  end
  
  def create
    @log = Log.new(params[:log])

    if @log.save
      flash[:notice] = 'Log was successfully created'
      redirect_to logs_path
    else
      flash[:notice] = 'Log was successfully created'
      render :action => "new"
    end
	end

  def update
    @log = Log.find(params[:id])

    if @log.update_attributes(params[:log])
      flash[:notice] = 'Log was successfully updated'
      redirect_to(@log)
    else
      flash[:error] = 'Log was not updated'
      render :action => "edit" 
    end
  end
  
  def destroy
    @log = Log.find(params[:id])
    @log.destroy
    
    respond_to do |format|
      format.html { redirect_to logs_url }
    end
  end
  
{'fraction_non_alphanumeric': 0.10677618069815195, 'fraction_numerical': 0.0, 'mean_word_length': 2.4192982456140353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3609219', 'n_tokens_mistral': 654, 'n_tokens_neox': 639, 'n_words': 174}