<commit_before>﻿using System;
using System.IO;
using System.Linq;
using System.Text;
using DspAdpcm.Adpcm.Formats.Structures;
using static DspAdpcm.Helpers;

namespace DspAdpcm.Adpcm.Formats.Internal
{
    /// <summary>
    /// Represents a BCSTM or BFSTM file.
    /// </summary> 
    internal class BCFstm
    {
        public AdpcmStream AudioStream { get; set; }

        public BCFstmConfiguration Configuration { get; internal set; }

        private int NumSamples => AudioStream.Looping ? LoopEnd : AudioStream.NumSamples;
        private int NumChannels => AudioStream.Channels.Count;<commit_msg>Make sure the configuration isn't null in BCFstm<commit_after>﻿using System;
using System.IO;
using System.Linq;
using System.Text;
using DspAdpcm.Adpcm.Formats.Structures;
using static DspAdpcm.Helpers;

namespace DspAdpcm.Adpcm.Formats.Internal
{
    /// <summary>
    /// Represents a BCSTM or BFSTM file.
    /// </summary> 
    internal class BCFstm
    {
        public AdpcmStream AudioStream { get; set; }

        public BCFstmConfiguration Configuration { get; internal set; } = new BCFstmConfiguration();

        private int NumSamples => AudioStream.Looping ? LoopEnd : AudioStream.NumSamples;
        private int NumChannels => AudioStream.Channels.Count;
{'fraction_non_alphanumeric': 0.09340659340659341, 'fraction_numerical': 0.0, 'mean_word_length': 3.381443298969072, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '6882395', 'n_tokens_mistral': 389, 'n_tokens_neox': 376, 'n_words': 102}