1
0
mirror of https://github.com/osmarks/random-stuff synced 2024-11-08 21:39:56 +00:00
random-stuff/it-was-inevitable/config.go

21 lines
577 B
Go
Raw Normal View History

2020-08-12 19:31:12 +00:00
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
)