<commit_before>package com.softwaremill.codebrag.activities

import com.softwaremill.codebrag.service.comments.UserReactionService
import com.softwaremill.codebrag.service.followups.FollowupService
import com.softwaremill.codebrag.service.comments.command.IncomingComment
import com.softwaremill.codebrag.common.{Clock, EventBus}
import com.softwaremill.codebrag.domain.reactions.CommentAddedEvent

class AddCommentActivity(userReactionService: UserReactionService,
                         followupService: FollowupService,
                         eventBus: EventBus)(implicit clock: Clock) {

  def addCommentToCommit(newComment: IncomingComment) = {
    val addedComment = userReactionService.storeComment(newComment)
    followupService.generateFollowupsForComment(addedComment)
    eventBus.publish(CommentAddedEvent(addedComment))
    addedComment
  }

}<commit_msg>Reformats source code in the new the only proper way :-)<commit_after>package com.softwaremill.codebrag.activities

import com.softwaremill.codebrag.service.comments.UserReactionService
import com.softwaremill.codebrag.service.followups.FollowupService
import com.softwaremill.codebrag.service.comments.command.IncomingComment
import com.softwaremill.codebrag.common.{Clock, EventBus}
import com.softwaremill.codebrag.domain.reactions.CommentAddedEvent

class AddCommentActivity(
  userReactionService: UserReactionService,
  followupService: FollowupService,
  eventBus: EventBus)
  (implicit clock: Clock) {

  def addCommentToCommit(newComment: IncomingComment) = {
    val addedComment = userReactionService.storeComment(newComment)
    followupService.generateFollowupsForComment(addedComment)
    eventBus.publish(CommentAddedEvent(addedComment))
    addedComment
  }

}
{'fraction_non_alphanumeric': 0.07489994282447113, 'fraction_numerical': 0.0, 'mean_word_length': 5.889763779527559, 'pattern_counts': {'":': 0, '<': 3, '<?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': '684702', 'n_tokens_mistral': 501, 'n_tokens_neox': 482, 'n_words': 74}