<commit_before>class BandNameController < ApplicationController

  def index
    band_names = BandName.all
    render json: band_names
  end

  def show
    band_name = BandName.find(params[:id])
    render json: band_name
  end

  def create
    band_name = BandName.create(band_name_params)
    redirect_to band_name_path(band_name)
  end

  private

  def band_name_params
    params.require(:band_name).permit(:name, :genre_id)
  end

end<commit_msg>remove redirect from #create in BandNameController<commit_after>class BandNameController < ApplicationController

  def index
    band_names = BandName.all
    render json: band_names
  end

  def show
    band_name = BandName.find(params[:id])
    render json: band_name
  end

  def create
    band_name = BandName.create(band_name_params)    
  end

  private

  def band_name_params
    params.require(:band_name).permit(:name, :genre_id)
  end

end
{'fraction_non_alphanumeric': 0.06725468577728776, 'fraction_numerical': 0.0, 'mean_word_length': 3.778947368421053, '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': '5756678', 'n_tokens_mistral': 299, 'n_tokens_neox': 288, 'n_words': 68}