<commit_before>//////////////////////////////////////////////////////////////////////
// slipser.hpp -- SLIP Serial Class for Teensy-3.x
// Date: Mon May 19 16:37:28 2014   (C) <NAME> ve3wwg
///////////////////////////////////////////////////////////////////////

#ifndef SLIPSER_HPP
#define SLIPSER_HPP

#include "HardwareSerial.h"
#include "slip.hpp"

class SlipSer {
	HardwareSerial&		serial;		// Serial device
	SLIP			slip;
	uint8_t			*buffer;	// Receive buffer
	unsigned		rxlength;	// Received message length
	
public:	SlipSer(HardwareSerial& ser_dev);

	inline uint8_t rx_byte()	{ return uint8_t(serial.read()); }<commit_msg>Added rx_available() method to allow yield()<commit_after>//////////////////////////////////////////////////////////////////////
// slipser.hpp -- SLIP Serial Class for Teensy-3.x
// Date: Mon May 19 16:37:28 2014   (C) <NAME> ve3wwg
///////////////////////////////////////////////////////////////////////

#ifndef SLIPSER_HPP
#define SLIPSER_HPP

#include "HardwareSerial.h"
#include "slip.hpp"

class SlipSer {
	HardwareSerial&		serial;		// Serial device
	SLIP			slip;
	uint8_t			*buffer;	// Receive buffer
	unsigned		rxlength;	// Received message length
	
public:	SlipSer(HardwareSerial& ser_dev);

	inline int rx_available()	{ return serial.available(); }
	inline uint8_t rx_byte()	{ return uint8_t(serial.read()); }
{'fraction_non_alphanumeric': 0.30199851961509994, 'fraction_numerical': 0.025166543301258327, 'mean_word_length': 1.7648261758691206, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '445171', 'n_tokens_mistral': 442, 'n_tokens_neox': 409, 'n_words': 108}