<commit_before>// +build darwin freebsd netbsd openbsd

package fineline

import (
	"syscall"
)

func tcgetattr(fd int, t *termios) {
	ttyIoctl(0, syscall.TIOCGETA, t)
}

func tcsetattr(fd int, t *termios) {
	var cmd int
	switch op {
	case TCSANOW:
		cmd = syscall.TIOCSETA
	case TCSADRAIN:
		cmd = syscall.TIOCSETAW
	case TCSAFLUSH:
		cmd = syscall.TIOCSETAF
	}
	ttyIoctl(0, cmd, t)
}<commit_msg>Correct tcsetattr signature for BSD family<commit_after>// +build darwin freebsd netbsd openbsd

package fineline

import (
	"syscall"
)

func tcgetattr(fd int, t *termios) {
	ttyIoctl(0, syscall.TIOCGETA, t)
}

func tcsetattr(fd, op int, t *termios) {
	var cmd int
	switch op {
	case TCSANOW:
		cmd = syscall.TIOCSETA
	case TCSADRAIN:
		cmd = syscall.TIOCSETAW
	case TCSAFLUSH:
		cmd = syscall.TIOCSETAF
	}
	ttyIoctl(0, cmd, t)
}
{'fraction_non_alphanumeric': 0.10278113663845223, 'fraction_numerical': 0.0048367593712212815, 'mean_word_length': 4.079754601226994, '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': '177385', 'n_tokens_mistral': 383, 'n_tokens_neox': 341, 'n_words': 92}