<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;
using System.ComponentModel;
using System.Text.RegularExpressions;
using Treehopper;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using Treehopper.ThirdParty;

namespace Treehopper
{
	/// <summary>
	/// This is the main Treehopper namespace that contains core Treehopper classes.
	/// </summary>
	internal static class NamespaceDoc
	{

	}

	internal enum DeviceCommands : byte
	{
		Reserved = 0,	// Not implemented
		ConfigureDevice,	// Sent upon device connect/disconnect
		PwmConfig,	// Configures the hardware DAC
		UartConfig,	// Not implemented
		I2cConfig,	// Configures i2C master
		SpiConfig,	// Configures SPI master
		I2cTransaction,	// (Endpoint 2) Performs an i2C transaction 
		SpiTransaction,	// (Endpoint 2) Performs an SPI transaction
        UartTransaction,
		SoftPwmConfig,	// 
		FirmwareUpdateSerial,	//
		FirmwareUpdateName,	//
		Reboot,	//
		EnterBootloader,	//
        LedConfig,
        ParallelConfig,
        ParallelTransaction
    }

    /// <summary>
    /// An event handler for when a board is added
    /// </summary>
    /// <param name="BoardAdded">The new board</param>
    public delegate void TreehopperUsbAddedHandler(TreehopperUsb BoardAdded);

    /// <summary>
    /// An event handler for when a board is removed
    /// </summary>
    /// <param name="BoardRemoved">the removed board</param>
    public delegate void TreehopperUsbRemovedHandler(TreehopperUsb BoardRemoved);

    /// <summary>
    /// An event handler for when a new pin update report comes in
    /// </summary>
    /// <param name="sender">The board from where it originated</param>
    /// <param name="e">A ference to the new pin update report</param>
    public delegate void PinValuesUpdatedHandler(object sender, EventArgs e);

    /// <summary>
    /// TreehopperBoard is the main class for interacting with Treehopper. Once constructed, it contains instances of all pins and peripherals. 
    /// <seealso cref="IConnectionService"/>
    /// </summary><commit_msg>Removed old / empty comments<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;
using System.ComponentModel;
using System.Text.RegularExpressions;
using Treehopper;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using Treehopper.ThirdParty;

namespace Treehopper
{
	/// <summary>
	/// This is the main Treehopper namespace that contains core Treehopper classes.
	/// </summary>
	internal static class NamespaceDoc
	{

	}

	internal enum DeviceCommands : byte
	{
		Reserved = 0,	// Not implemented
		ConfigureDevice,	// Sent upon device connect/disconnect
		PwmConfig,
		UartConfig,	
		I2cConfig,
		SpiConfig,
		I2cTransaction,
		SpiTransaction,
        UartTransaction,
		SoftPwmConfig,
		FirmwareUpdateSerial,
		FirmwareUpdateName,
		Reboot,
		EnterBootloader,
        LedConfig,
        ParallelConfig,
        ParallelTransaction
    }

    /// <summary>
    /// An event handler for when a board is added
    /// </summary>
    /// <param name="BoardAdded">The new board</param>
    public delegate void TreehopperUsbAddedHandler(TreehopperUsb BoardAdded);

    /// <summary>
    /// An event handler for when a board is removed
    /// </summary>
    /// <param name="BoardRemoved">the removed board</param>
    public delegate void TreehopperUsbRemovedHandler(TreehopperUsb BoardRemoved);

    /// <summary>
    /// An event handler for when a new pin update report comes in
    /// </summary>
    /// <param name="sender">The board from where it originated</param>
    /// <param name="e">A ference to the new pin update report</param>
    public delegate void PinValuesUpdatedHandler(object sender, EventArgs e);

    /// <summary>
    /// TreehopperBoard is the main class for interacting with Treehopper. Once constructed, it contains instances of all pins and peripherals. 
    /// <seealso cref="IConnectionService"/>
    /// </summary>
{'fraction_non_alphanumeric': 0.10109090909090909, 'fraction_numerical': 0.0024242424242424242, 'mean_word_length': 3.280082987551867, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '6796499', 'n_tokens_mistral': 1210, 'n_tokens_neox': 1162, 'n_words': 368}