<commit_before>class GroupingsController < ApplicationController

  def create
    @user = User.find_by(id: current_user)
    @group = Group.find_by(id: params[:id])
    #see if current_user is made
    @grouping = @user.groupings.create(group_id: @group.id, user_id: @user.id, joined?: true)
    #redirect to group show page
  end
end<commit_msg>roughdraft destroy method for groupings controller<commit_after>class GroupingsController < ApplicationController

  def create
    @user = User.find_by(id: current_user)
    @group = Group.find_by(id: params[:id])
    #see if current_user is made
    @grouping = @user.groupings.create(group_id: @group.id, user_id: @user.id, joined?: true)
    #redirect to group show page
  end

  def destroy
    @grouping = Grouping.find_by(id: params[:id])
    @grouping.destroy
    #redirect to user's show page
  end


end
{'fraction_non_alphanumeric': 0.10348837209302325, 'fraction_numerical': 0.0, 'mean_word_length': 4.125, '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': '2974030', 'n_tokens_mistral': 280, 'n_tokens_neox': 274, 'n_words': 76}