<commit_before>package discard

import (
	"sync"

	msync "koding/klient/machine/mount/sync"
)

// DiscardBuilder is a factory for Discard synchronization objects.
type DiscardBuilder struct{}

// Build satisfies msync.Builder interface. It produces Discard objects and
// always returns nil error.
func (DiscardBuilder) Build(_ *msync.BuildOpts) (msync.Syncer, error) {
	return NewDiscard(), nil
}

// Event is a no-op for synchronization object.
type Event struct {
	ev *msync.Event
}

// Exec satisfies msync.Execer interface. The only thing this method does is
// closing internal sync event.
func (e *Event) Exec() error {
	e.ev.Done()

	return nil
}

// Discard is a no-op synchronization object. It can be used as a stub for other
// non-event-dependent logic. This means that this type should be used only in
// tests which doesn't care about mount file synchronization.<commit_msg>klient/machine: remove typo from discard synchronization objet comment<commit_after>package discard

import (
	"sync"

	msync "koding/klient/machine/mount/sync"
)

// DiscardBuilder is a factory for Discard synchronization objects.
type DiscardBuilder struct{}

// Build satisfies msync.Builder interface. It produces Discard objects and
// always returns nil error.
func (DiscardBuilder) Build(_ *msync.BuildOpts) (msync.Syncer, error) {
	return NewDiscard(), nil
}

// Event is a no-op for synchronization object.
type Event struct {
	ev *msync.Event
}

// Exec satisfies msync.Execer interface. The only thing this method does is
// closing internal sync event.
func (e *Event) Exec() error {
	e.ev.Done()

	return nil
}

// Discard is a no-op synchronization object. It can be used as a stub for other
// non-event-dependent logic. This means that this type should be used only in
// tests which don't care about mount file synchronization.
{'fraction_non_alphanumeric': 0.0872885979268958, 'fraction_numerical': 0.0, 'mean_word_length': 3.943396226415094, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5997782', 'n_tokens_mistral': 538, 'n_tokens_neox': 517, 'n_words': 224}