<commit_before>package com.softwaremill.codebrag

import activities.CommentActivity
import common.{ObjectIdGenerator, IdGenerator}
import com.softwaremill.codebrag.dao.reporting.{MongoFollowupFinder, MongoCommentListFinder, MongoCommitListFinder}
import dao._
import rest.CodebragSwagger
import service.comments.CommentService
import service.diff.DiffService
import service.followups.FollowupService
import service.github._
import service.user.Authenticator
import pl.softwaremill.common.util.time.RealTimeClock
import com.softwaremill.codebrag.service.github.egit.EgitGitHubCommitImportServiceFactory


trait Beans {
  implicit lazy val clock = new RealTimeClock
  implicit lazy val idGenerator: IdGenerator = new ObjectIdGenerator

  lazy val authenticator = new Authenticator(userDao)
  lazy val userDao = new MongoUserDAO
  lazy val commitInfoDao = new MongoCommitInfoDAO
  lazy val followupDao = new MongoFollowupDAO
  lazy val commitListFinder = new MongoCommitListFinder
  lazy val commentListFinder = new MongoCommentListFinder
  lazy val swagger = new CodebragSwagger
  lazy val ghService = new GitHubAuthService
  lazy val commentDao = new MongoCommitCommentDAO
  lazy val commentService = new CommentService(commentDao)
  lazy val diffService = new DiffService(commitInfoDao)
  lazy val githubClientProvider = new GitHubClientProvider(userDao)
  lazy val converter = new GitHubCommitInfoConverter()
  lazy val commitReviewTaskDao = new MongoCommitReviewTaskDAO
  lazy val reviewTaskGenerator = new CommitReviewTaskGenerator(userDao, commitReviewTaskDao)
  lazy val importerFactory = new EgitGitHubCommitImportServiceFactory(githubClientProvider, converter, commitInfoDao, reviewTaskGenerator)
  lazy val followupService = new FollowupService(followupDao, commitInfoDao, commentDao, userDao)
  lazy val followupFinder = new MongoFollowupFinder
  lazy val commentActivity = new CommentActivity(commentService, followupService)
}<commit_msg>Switch commit importer JGit-based<commit_after>package com.softwaremill.codebrag

import activities.CommentActivity
import common.{ObjectIdGenerator, IdGenerator}
import com.softwaremill.codebrag.dao.reporting.{MongoFollowupFinder, MongoCommentListFinder, MongoCommitListFinder}
import dao._
import rest.CodebragSwagger
import service.comments.CommentService
import service.diff.DiffService
import service.followups.FollowupService
import service.github._
import service.user.Authenticator
import pl.softwaremill.common.util.time.RealTimeClock
import com.softwaremill.codebrag.service.github.jgit.JgitGitHubCommitImportServiceFactory


trait Beans {
  implicit lazy val clock = new RealTimeClock
  implicit lazy val idGenerator: IdGenerator = new ObjectIdGenerator

  lazy val authenticator = new Authenticator(userDao)
  lazy val userDao = new MongoUserDAO
  lazy val commitInfoDao = new MongoCommitInfoDAO
  lazy val followupDao = new MongoFollowupDAO
  lazy val commitListFinder = new MongoCommitListFinder
  lazy val commentListFinder = new MongoCommentListFinder
  lazy val swagger = new CodebragSwagger
  lazy val ghService = new GitHubAuthService
  lazy val commentDao = new MongoCommitCommentDAO
  lazy val commentService = new CommentService(commentDao)
  lazy val diffService = new DiffService(commitInfoDao)
  lazy val githubClientProvider = new GitHubClientProvider(userDao)
  lazy val converter = new GitHubCommitInfoConverter()
  lazy val commitReviewTaskDao = new MongoCommitReviewTaskDAO
  lazy val reviewTaskGenerator = new CommitReviewTaskGenerator(userDao, commitReviewTaskDao)
  lazy val importerFactory = new JgitGitHubCommitImportServiceFactory(commitInfoDao, reviewTaskGenerator, userDao)
  lazy val followupService = new FollowupService(followupDao, commitInfoDao, commentDao, userDao)
  lazy val followupFinder = new MongoFollowupFinder
  lazy val commentActivity = new CommentActivity(commentService, followupService)
}
{'fraction_non_alphanumeric': 0.04725218284540318, 'fraction_numerical': 0.0, 'mean_word_length': 6.821285140562249, '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': '7321115', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1120, 'n_words': 296}