mirror of
https://github.com/osmarks/random-stuff
synced 2024-11-08 13:39:53 +00:00
21 lines
577 B
Go
Executable File
21 lines
577 B
Go
Executable File
package main
|
|
|
|
const (
|
|
// Pause DF-AI when the queue length gets above this threshold.
|
|
maxQueuedLines = 1000
|
|
|
|
// Unpause DF-AI when the queue length gets below this threshold.
|
|
minQueuedLines = 500
|
|
|
|
// Minimum number of lines before a duplicate is allowed.
|
|
minLinesBeforeDuplicate = 500
|
|
|
|
// Maximum number of "fuzzy" (some words changed) duplicates allowed.
|
|
maxFuzzyDuplicates = 5
|
|
|
|
// Number of lines to remember for "fuzzy" duplicate checking.
|
|
fuzzyDuplicateWindow = 10
|
|
|
|
// Maximum number of words that can differ in a "fuzzy" duplicate.
|
|
maxFuzzyDifferentWords = 2
|
|
) |