<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Enumeration;
using Windows.Devices.I2c;

namespace IoTHelpers.I2c
{
    public class I2cDeviceBase : IDisposable
    {
        // I2C Controller name
        public const string I2C_CONTROLLER_NAME = "I2C1";

        public I2cConnectionSettings Settings { get; set; }

        // I2C Device
        public I2cDevice Device { get; set; }

        private string deviceSelector;

        public I2cDeviceBase(int slaveAddress, I2cBusSpeed busSpeed = I2cBusSpeed.FastMode, I2cSharingMode sharingMode = I2cSharingMode.Shared, string i2cControllerName = I2C_CONTROLLER_NAME)
        {
            // Initialize I2C device
            Settings = new I2cConnectionSettings(slaveAddress)
            {
                BusSpeed = busSpeed,
                SharingMode = sharingMode
            };

            deviceSelector = I2cDevice.GetDeviceSelector(i2cControllerName);    /* Find the selector string for the I2C bus controller */
        }

        public async Task InitializeAsync()<commit_msg>Changed visibility of I2cDeviceBase property.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Enumeration;
using Windows.Devices.I2c;

namespace IoTHelpers.I2c
{
    public class I2cDeviceBase : IDisposable
    {
        // I2C Controller name
        public const string I2C_CONTROLLER_NAME = "I2C1";

        public I2cConnectionSettings Settings { get; }

        // I2C Device
        public I2cDevice Device { get; private set; }

        private string deviceSelector;

        public I2cDeviceBase(int slaveAddress, I2cBusSpeed busSpeed = I2cBusSpeed.FastMode, I2cSharingMode sharingMode = I2cSharingMode.Shared, string i2cControllerName = I2C_CONTROLLER_NAME)
        {
            // Initialize I2C device
            Settings = new I2cConnectionSettings(slaveAddress)
            {
                BusSpeed = busSpeed,
                SharingMode = sharingMode
            };

            deviceSelector = I2cDevice.GetDeviceSelector(i2cControllerName);    /* Find the selector string for the I2C bus controller */
        }

        public async Task InitializeAsync()
{'fraction_non_alphanumeric': 0.06520806520806521, 'fraction_numerical': 0.019305019305019305, 'mean_word_length': 2.6666666666666665, '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': '5425756', 'n_tokens_mistral': 668, 'n_tokens_neox': 653, 'n_words': 163}