mirror of
https://github.com/osmarks/random-stuff
synced 2024-12-28 02:50:33 +00:00
21 lines
577 B
Go
21 lines
577 B
Go
|
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
|
||
|
)
|