Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
765 B
Go
40 lines
765 B
Go
package goose
|
|
|
|
import (
|
|
"github.com/fatih/set"
|
|
)
|
|
|
|
//some word statistics
|
|
type wordStats struct {
|
|
//total number of stopwords or good words that we can calculate
|
|
stopWordCount int
|
|
//total number of words on a node
|
|
wordCount int
|
|
//holds an actual list of the stop words we found
|
|
stopWords *set.Set
|
|
}
|
|
|
|
func (w *wordStats) getStopWords() *set.Set {
|
|
return w.stopWords
|
|
}
|
|
|
|
func (w *wordStats) setStopWords(stopWords *set.Set) {
|
|
w.stopWords = stopWords
|
|
}
|
|
|
|
func (w *wordStats) getStopWordCount() int {
|
|
return w.stopWordCount
|
|
}
|
|
|
|
func (w *wordStats) setStopWordCount(stopWordCount int) {
|
|
w.stopWordCount = stopWordCount
|
|
}
|
|
|
|
func (w *wordStats) getWordCount() int {
|
|
return w.wordCount
|
|
}
|
|
|
|
func (w *wordStats) setWordCount(wordCount int) {
|
|
w.wordCount = wordCount
|
|
}
|