<commit_before>using System;
using System.IO.Ports;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT;
using System.Threading;

namespace Verdant.Vines.XBee
{
    public partial class XBeeDevice
    {
        private readonly OutputPort _resetPort;
        private readonly OutputPort _sleepPort;
        private readonly SerialPort _serialPort;

        public XBeeDevice(SerialPort port, Cpu.Pin resetPin, Cpu.Pin sleepPin)
        {
            _resetPort = new OutputPort(resetPin, true);
            _sleepPort = new OutputPort(sleepPin, false);
            _serialPort = port;
            new Thread(ReadThread).Start();
        }

        private uint Send(byte[] data, int offset, int length)
        {
            throw new NotImplementedException();
        }
<commit_msg>Add send function to NETMF<commit_after>using System;
using System.IO.Ports;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT;
using System.Threading;

namespace Verdant.Vines.XBee
{
    public partial class XBeeDevice
    {
        private readonly OutputPort _resetPort;
        private readonly OutputPort _sleepPort;
        private readonly SerialPort _serialPort;

        public XBeeDevice(SerialPort port, Cpu.Pin resetPin, Cpu.Pin sleepPin)
        {
            _resetPort = new OutputPort(resetPin, true);
            _sleepPort = new OutputPort(sleepPin, false);
            _serialPort = port;
            new Thread(ReadThread).Start();
        }

        private uint Send(byte[] data, int offset, int length)
        {
            _serialPort.Write(data, offset, length);
            return (uint)length;
        }

{'fraction_non_alphanumeric': 0.0754017305315204, 'fraction_numerical': 0.0, 'mean_word_length': 2.5043290043290045, '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': '4732303', 'n_tokens_mistral': 447, 'n_tokens_neox': 444, 'n_words': 122}