engine

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = internalengine.DefaultTimeout
	DefaultWorkers = internalengine.DefaultWorkers
)

Variables

This section is empty.

Functions

func ComputeAIDetectionForProcess

func ComputeAIDetectionForProcess(submissions []domain.Submission, srcFile string, dict *aipkg.Dictionary, cfg domain.CompareConfig) (domain.AIDetectionReport, error)

func ComputeSimilarityForProcess

func ComputeSimilarityForProcess(submissions []domain.Submission, srcFile string, cfg domain.CompareConfig) ([]domain.SimilarityPairResult, error)

func Run

func Run(r *Runner, ctx context.Context, root string, callbacks RunnerCallbacks) (*domain.RunReport, error)

Types

type CompileOption

type CompileOption = internalengine.CompileOption

func WithOutputDir

func WithOutputDir(dir string) CompileOption

func WithShortNames

func WithShortNames(enabled bool) CompileOption

func WithWorkers

func WithWorkers(n int) CompileOption

type Executor

type Executor = internalengine.Executor

func NewExecutorWithOptions

func NewExecutorWithOptions(p *policy.Policy, binaryDir string, shortNames bool) *Executor

type Runner

type Runner = internalengine.Runner

func NewRunner

func NewRunner(p *policy.Policy, opts ...CompileOption) (*Runner, error)

type RunnerCallbacks

type RunnerCallbacks = internalengine.RunnerCallbacks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL