<commit_before>class RelationshipsController < ApplicationController
  before_filter :authenticate_user!

  #TODO: Use ajax?
  #TODO: Add conditional to make sure a contact cannot be requestd twice
  def create
    Relationship.pending!(current_user.partner.id, params[:student_id])
    flash[:notice] = "You successfully requested contact with #{Student.find(params[:student_id]).name}."
    redirect_to students_path
  end

end<commit_msg>Add TODO in normal relationships controller<commit_after>class RelationshipsController < ApplicationController
  before_filter :authenticate_user!

  #TODO: Use ajax?
  #TODO: Add conditional to make sure a contact cannot be requested twice
  def create
    Relationship.pending!(current_user.partner.id, params[:student_id])
    flash[:notice] = "You successfully requested contact with #{Student.find(params[:student_id]).name}."
    redirect_to students_path
  end

  #TODO: Add destroy relationship

end
{'fraction_non_alphanumeric': 0.08227848101265822, 'fraction_numerical': 0.0, 'mean_word_length': 5.544827586206897, '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': '6635793', 'n_tokens_mistral': 265, 'n_tokens_neox': 253, 'n_words': 80}