<commit_before>﻿#region

using System;
using System.IO;
using System.Xml;

#endregion

namespace Tabster.Core
{
    public enum ExportFormat
    {
        Tabster,
        Text
    }

    public class TabFile : TabsterFile, ITabsterFile
    {
        public const string FILE_EXTENSION = ".tabster";
        public const string FILE_VERSION = "1.4";

        public TabFile(string filePath, bool autoLoad)
        {
            FileInfo = new FileInfo(filePath);

            if (autoLoad)
                Load();
        }

        public Tab TabData { get; private set; }

        public void Export(ExportFormat format, string filePath)
        {
            switch (format)
            {
                case ExportFormat.Tabster:
                    File.Copy(FileInfo.FullName, filePath);
                    break;
                case ExportFormat.Text:
                    File.WriteAllText(filePath, TabData.Contents);
                    break;
            }
        }

        #region Static Methods

        public static TabFile Create(Tab tab, string directory)<commit_msg>Remove export functionality from core.<commit_after>﻿#region

using System;
using System.IO;
using System.Xml;

#endregion

namespace Tabster.Core
{
    public class TabFile : TabsterFile, ITabsterFile
    {
        public const string FILE_EXTENSION = ".tabster";
        public const string FILE_VERSION = "1.4";

        public TabFile(string filePath, bool autoLoad)
        {
            FileInfo = new FileInfo(filePath);

            if (autoLoad)
                Load();
        }

        public Tab TabData { get; private set; }

        #region Static Methods

        public static TabFile Create(Tab tab, string directory)
{'fraction_non_alphanumeric': 0.07370864770748695, 'fraction_numerical': 0.0023215322112594312, 'mean_word_length': 1.8032520325203252, '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': '3971518', 'n_tokens_mistral': 469, 'n_tokens_neox': 441, 'n_words': 130}