<commit_before>﻿using System;


namespace Acr.Ble
{

    public interface IDevice
    {
        string Name { get; }
        Guid Uuid { get; }
        ConnectionStatus Status { get; }

        void Disconnect();

        /// <summary>
        /// This is a combination of 3 things - connection management, disconnect (dispose to dc), and state monitoring.  If you don't dispose, reconnect is implied
        /// </summary>
        /// <returns></returns>
        IObservable<ConnectionStatus> CreateConnection();

        /// <summary>
        /// Connect to a device
        /// </summary>
        /// <returns></returns>
        IObservable<object> Connect();

        /// <summary>
        /// Monitor when RSSI updates
        /// </summary>
        /// <param name="frequency"></param>
        /// <returns></returns>
        IObservable<int> WhenRssiUpdated(TimeSpan? frequency = null);


        /// <summary>
        /// Monitor connection status
        /// </summary>
        /// <returns></returns>
        IObservable<ConnectionStatus> WhenStatusChanged();
<commit_msg>rename CreateConnection to CreatePersistentConnection<commit_after>﻿using System;


namespace Acr.Ble
{

    public interface IDevice
    {
        string Name { get; }
        Guid Uuid { get; }
        ConnectionStatus Status { get; }

        void Disconnect();

        /// <summary>
        /// This is a combination of 3 things - connection management, disconnect (dispose to dc), and state monitoring.  If you don't dispose, reconnect is implied
        /// </summary>
        /// <returns></returns>
        IObservable<ConnectionStatus> CreatePersistentConnection();

        /// <summary>
        /// Connect to a device
        /// </summary>
        /// <returns></returns>
        IObservable<object> Connect();

        /// <summary>
        /// Monitor when RSSI updates
        /// </summary>
        /// <param name="frequency"></param>
        /// <returns></returns>
        IObservable<int> WhenRssiUpdated(TimeSpan? frequency = null);


        /// <summary>
        /// Monitor connection status
        /// </summary>
        /// <returns></returns>
        IObservable<ConnectionStatus> WhenStatusChanged();

{'fraction_non_alphanumeric': 0.13459801264679314, 'fraction_numerical': 0.0009033423667570009, 'mean_word_length': 1.8691709844559585, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '1527692', 'n_tokens_mistral': 576, 'n_tokens_neox': 556, 'n_words': 155}