<commit_before>class UserMailer < ApplicationMailer
	add_template_helper(ApplicationHelper)

	def join_request_mail(to, from, post)      
		@post = post
		@to = to
		@from = from
		mail(to: to.email, subject: "#{from.name} wants to join you")
    end

    def join_confirmation_mail(to, post)      
		@post = post
		@to = to
		mail(to: to.email, subject: "Colearn join confirmation")
    end

    def join_rejection_mail(invite)      
		@post = invite.post
		@to = invite.user
		@invite = invite
		mail(to: @to.email, subject: "Colearn - Post join request rejected")
    end

    def welcome_mail(to)
    	@to = to 
    	mail(to: to.email, subject: "Welcome to Colearn #{to.name}!")
    end

    def post_chat_followup(user, post)
    	@user = user
    	@post = post
    	mail(to: @user.email, subject: "Colearn followup")
    end
    
end<commit_msg>subject change for chat summery<commit_after>class UserMailer < ApplicationMailer
	add_template_helper(ApplicationHelper)

	def join_request_mail(to, from, post)      
		@post = post
		@to = to
		@from = from
		mail(to: to.email, subject: "#{from.name} wants to join you")
    end

    def join_confirmation_mail(to, post)      
		@post = post
		@to = to
		mail(to: to.email, subject: "Colearn join confirmation")
    end

    def join_rejection_mail(invite)      
		@post = invite.post
		@to = invite.user
		@invite = invite
		mail(to: @to.email, subject: "Colearn - Post join request rejected")
    end

    def welcome_mail(to)
    	@to = to 
    	mail(to: to.email, subject: "Welcome to Colearn #{to.name}!")
    end

    def post_chat_followup(user, post)
    	@user = user
    	@post = post
    	mail(to: @user.email, subject: "[Colearn] New chat messages from learning post " + post.title)
    end
    
end
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.0, 'mean_word_length': 2.9573991031390134, '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': '5869386', 'n_tokens_mistral': 650, 'n_tokens_neox': 607, 'n_words': 169}