<commit_before>class UserBusinessRolesController < ApplicationController
  respond_to :html, :xml, :json
  
  def show
  	@u = User.find(params[:id])
  	respond_with(@business_roles = @u.business_user_roles)
  end

  def new
    @user_business_role = UserBusinessRole.new
  end

  def create
    @user_business_role = UserBusinessRole.create(params[:user_business_role])
    @business_role = BusinessRole.find(@user_business_role.business_role_id)
    flash[:notice] = "Successfully created user_business_role." if @user_business_role.save
    respond_with(@business_role)
  end

  def destroy
    @user_business_role = UserBusinessRole.find(params[:id])
    @business_role = BusinessRole.find(@user_business_role.business_role_id)
    @user_business_role.destroy
    respond_with(@business_role)
  end
<commit_msg>возврат в форму роли при добавлении исполнителя<commit_after>class UserBusinessRolesController < ApplicationController
  respond_to :html, :xml, :json
  
  def show
  	#@u = User.find(params[:id])
  	#respond_with(@business_roles = @u.business_user_roles)
    redirect_to :back
  end

  def new
    @user_business_role = UserBusinessRole.new
  end

  def create
    @user_business_role = UserBusinessRole.create(params[:user_business_role])
    @business_role = BusinessRole.find(@user_business_role.business_role_id)
    flash[:notice] = "Successfully created user_business_role." if @user_business_role.save
    respond_with(@business_role)
  end

  def destroy
    @user_business_role = UserBusinessRole.find(params[:id])
    @business_role = BusinessRole.find(@user_business_role.business_role_id)
    @user_business_role.destroy
    respond_with(@business_role)
  end

{'fraction_non_alphanumeric': 0.08827014218009478, 'fraction_numerical': 0.0, 'mean_word_length': 5.232472324723247, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6607092', 'n_tokens_mistral': 556, 'n_tokens_neox': 544, 'n_words': 92}