errorquotient

package
v0.0.0-...-7b7b160 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateCharDeltaAndLocation

func CalculateCharDeltaAndLocation(log *logger.Logger, filepath string, version1, version2 logger.LogEntry) (charDelta int, location string, err error)

Function to calculate CharDelta by comparing two versions of the same file

func ErrorTypeConversion

func ErrorTypeConversion(errorCode int) int

ErrorTypeConversion would convert the ErrorCode to the ErrType used in the EQ calculation. For the purpose of this example, assume that any ErrorCode != 0 is an error.

Types

type Analyzer

type Analyzer struct {
	LoggerLoaders       []analyzer.LoggerLoader
	ErrorsByParticipant map[string]ErrorQuotientAnalysisResult

	// ResultsByParticipant is a map of participantId to the error quotient
	// map[participantId]map[filePath]errorQuotient
	ResultsByParticipant map[string]map[string]float64
}

func (*Analyzer) Analyze

func (e *Analyzer) Analyze() error

func (*Analyzer) Load

func (e *Analyzer) Load(loaders []analyzer.LoggerLoader) error

type CompilationEvent

type CompilationEvent struct {
	ErrorType int
	TimeDelta int // This is the 'T' from your description.
	CharDelta int // This is the 'Ch' from your description.
	Location  string
}

type ErrorQuotientAnalysisResult

type ErrorQuotientAnalysisResult struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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