public SubmissionSnippetsExtractor(CodeUnitsExtractor codeUnitsExtractor, SnippetsExtractor snippetsExtractor,
                                    IOptions <AntiPlagiarismConfiguration> options)
 {
     this.codeUnitsExtractor = codeUnitsExtractor;
     this.snippetsExtractor  = snippetsExtractor;
     configuration           = options.Value;
 }
Ejemplo n.º 2
0
 public PlagiarismDetector(
     ISnippetsRepo snippetsRepo, ISubmissionsRepo submissionsRepo,
     CodeUnitsExtractor codeUnitsExtractor,
     ILogger logger,
     IOptions <AntiPlagiarismConfiguration> options)
 {
     this.snippetsRepo       = snippetsRepo;
     this.submissionsRepo    = submissionsRepo;
     this.codeUnitsExtractor = codeUnitsExtractor;
     this.logger             = logger;
     configuration           = options.Value;
 }
Ejemplo n.º 3
0
 public PlagiarismDetector(
     ISnippetsRepo snippetsRepo, ISubmissionsRepo submissionsRepo,
     IMostSimilarSubmissionsRepo mostSimilarSubmissionsRepo,
     CodeUnitsExtractor codeUnitsExtractor,
     IOptions <AntiPlagiarismConfiguration> options)
 {
     this.snippetsRepo               = snippetsRepo;
     this.submissionsRepo            = submissionsRepo;
     this.mostSimilarSubmissionsRepo = mostSimilarSubmissionsRepo;
     this.codeUnitsExtractor         = codeUnitsExtractor;
     configuration = options.Value;
 }