<commit_before>{ include: Objects.st }
{ include <termios.h> }
{ include <unistd.h> }


Termios : Object ()

Termios new
[
	| _size |
	{ v__size = (oop) sizeof(struct termios); }.
	^(self _vtable) _alloc: _size
]


Termios get_: _fd
{
	tcgetattr((int) v__fd, (struct termios*) self);
}
Termios get: fd	[ Termios get_: fd _integerValue]


Termios set_: _fd
{
	tcsetattr((int) v__fd, TCSANOW, (struct termios*) self);
}
Termios set: fd	[ Termios set_: fd _integerValue]


Termios cfmakeraw
{
	cfmakeraw((struct termios*) self);
}


Termios _iflag 	{ return (oop) ((struct termios*) self)->c_iflag; }
Termios iflag 	[ ^SmallInteger value_: self _iflag. ]

Termios _oflag 	{ return (oop) ((struct termios*) self)->c_oflag; }
Termios oflag 	[ ^SmallInteger value_: self _oflag. ]

Termios _cflag 	{ return (oop) ((struct termios*) self)->c_cflag; }
Termios cflag 	[ ^SmallInteger value_: self _cflag. ]

Termios _lflag 	{ return (oop) ((struct termios*) self)->c_lflag; }
Termios lflag 	[ ^SmallInteger value_: self _lflag. ]





<commit_msg>Fixed Posix Termios get: and set:.<commit_after>{ include: Objects.st }
{ include <termios.h> }
{ include <unistd.h> }


Termios : Object ()

Termios new
[
	| _size |
	{ v__size = (oop) sizeof(struct termios); }.
	^(self _vtable) _alloc: _size
]


Termios get_: _fd
{
	tcgetattr((int) v__fd, (struct termios*) self);
}
Termios get: fd	[ self get_: fd _integerValue]


Termios set_: _fd
{
	tcsetattr((int) v__fd, TCSANOW, (struct termios*) self);
}
Termios set: fd	[ self set_: fd _integerValue]


Termios cfmakeraw
{
	cfmakeraw((struct termios*) self);
}


Termios _iflag 	{ return (oop) ((struct termios*) self)->c_iflag; }
Termios iflag 	[ ^SmallInteger value_: self _iflag. ]

Termios _oflag 	{ return (oop) ((struct termios*) self)->c_oflag; }
Termios oflag 	[ ^SmallInteger value_: self _oflag. ]

Termios _cflag 	{ return (oop) ((struct termios*) self)->c_cflag; }
Termios cflag 	[ ^SmallInteger value_: self _cflag. ]

Termios _lflag 	{ return (oop) ((struct termios*) self)->c_lflag; }
Termios lflag 	[ ^SmallInteger value_: self _lflag. ]






{'fraction_non_alphanumeric': 0.1410808225729316, 'fraction_numerical': 0.0, 'mean_word_length': 4.377892030848329, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '5490811', 'n_tokens_mistral': 844, 'n_tokens_neox': 803, 'n_words': 221}