Documentation
¶
Index ¶
- Constants
- func NewEvaluateCommandHandler(analyticsManager *analytics.AnalyticsManager) func(next interp.ExecHandlerFunc) interp.ExecHandlerFunc
- func RunEvaluation(analyticsManager *analytics.AnalyticsManager, limit int, customModelId string, ...) error
- func SimilarityScore(cmd1, cmd2 string) (float64, error)
- type PredictedCommand
Constants ¶
View Source
const ( ESC = "\x1b" RESET_CURSOR_COLUMN = ESC + "[G" )
Variables ¶
This section is empty.
Functions ¶
func NewEvaluateCommandHandler ¶
func NewEvaluateCommandHandler(analyticsManager *analytics.AnalyticsManager) func(next interp.ExecHandlerFunc) interp.ExecHandlerFunc
func RunEvaluation ¶
func SimilarityScore ¶
SimilarityScore parses the two shell command strings, computes the tree edit distance, and then returns a similarity score between 0 and 1.
Types ¶
type PredictedCommand ¶ added in v1.0.0
type PredictedCommand struct {
PredictedCommand string `json:"predicted_command"`
}
Click to show internal directories.
Click to hide internal directories.