<commit_before>class TimeTypesController < ApplicationController

  load_and_authorize_resource

  def index
    @time_types = TimeType.all
  end

  def new
    @time_type = TimeType.new
  end

  def edit
    @time_type = TimeType.find(params[:id])
  end

  def create
    @time_type = TimeType.new(params[:time_type])
    if @time_type.save
      redirect_to edit_time_type_path(@time_type), :notice => 'Time Type was successfully created.'
    else
      render :action => 'new'
    end
  end

  def update
    @time_type = TimeType.find(params[:id])
    if @time_type.update_attributes(params[:time_type])
      redirect_to edit_time_type_path(@time_type), :notice => 'Time Type was successfully updated.'
    else
      render :action => 'edit'
    end
  end

  def destroy
    @time_type = TimeType.find(params[:id])
    if @time_type.destroy
      redirect_to time_types_path, :notice => 'Time Type was successfully deleted.'
    else
      render :action => 'edit'
    end
  end
end
<commit_msg>remove obsolete instance variable setters<commit_after>class TimeTypesController < ApplicationController

  load_and_authorize_resource

  def index
  end

  def new
  end

  def edit
  end

  def create
    if @time_type.save
      redirect_to edit_time_type_path(@time_type), :notice => 'Time Type was successfully created.'
    else
      render :action => 'new'
    end
  end

  def update
    if @time_type.update_attributes(params[:time_type])
      redirect_to edit_time_type_path(@time_type), :notice => 'Time Type was successfully updated.'
    else
      render :action => 'edit'
    end
  end

  def destroy
    if @time_type.destroy
      redirect_to time_types_path, :notice => 'Time Type was successfully deleted.'
    else
      render :action => 'edit'
    end
  end
end

{'fraction_non_alphanumeric': 0.08496366685299049, 'fraction_numerical': 0.0, 'mean_word_length': 3.211764705882353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '5311665', 'n_tokens_mistral': 561, 'n_tokens_neox': 545, 'n_words': 152}