<commit_before>/*
common.go provides common things that aren't part of the RFB protocol.
*/
package vnc

import "time"

const (
	RFBFalse = uint8(iota)
	RFBTrue
)

// VNCError implements error interface.
type VNCError struct {
	s string
}

// NewVNCError returns a custom VNCError error.
func NewVNCError(s string) error {
	return &VNCError{s}
}

// Error returns an VNCError as a string.
func (e VNCError) Error() string {
	return e.s
}

var settleDuration = 10 * time.Millisecond

// Settle returns the UI settle duration.
func Settle() time.Duration {
	return settleDuration
}

// SetSettle changes the UI settle duration.
func SetSettle(s time.Duration) {
	settleDuration = s
}<commit_msg>increased UI settle time to 25ms<commit_after>/*
common.go provides common things that aren't part of the RFB protocol.
*/
package vnc

import "time"

const (
	RFBFalse = uint8(iota)
	RFBTrue
)

// VNCError implements error interface.
type VNCError struct {
	s string
}

// NewVNCError returns a custom VNCError error.
func NewVNCError(s string) error {
	return &VNCError{s}
}

// Error returns an VNCError as a string.
func (e VNCError) Error() string {
	return e.s
}

var settleDuration = 25 * time.Millisecond

// Settle returns the UI settle duration.
func Settle() time.Duration {
	return settleDuration
}

// SetSettle changes the UI settle duration.
func SetSettle(s time.Duration) {
	settleDuration = s
}
{'fraction_non_alphanumeric': 0.08825622775800712, 'fraction_numerical': 0.0056939501779359435, 'mean_word_length': 3.9160839160839163, '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': '6553289', 'n_tokens_mistral': 477, 'n_tokens_neox': 460, 'n_words': 167}