<commit_before>﻿namespace Surge.Core.Models

/// Contains details about the server as a whole
type ServerStats = { DownloadSpeed : int64
                     UploadSpeed : int64
                     ServerVersion : int
                     DefaultDownloadLocation : string
                     SpaceRemaining : int64
                     MemoryUnits : ServerUnits
                     SizeUnits : ServerUnits
                     SpeedUnits : ServerUnits }

and ServerUnits = { Bytes : int
                    Units : string seq }

type StateType = ForceStart | Start | Stop | Verify

/// An abstract class representing base data that both files and folders share in common.
[<AbstractClass>]
type Item(torrentId : int, name : string, parent : Folder option) =
    let mutable parent = parent
    member internal this.MutableParent with set(value) = parent <- Some value
    member this.TorrentID = torrentId
    member this.Name = name
    member this.HasParent = parent.IsSome
    /// Throws an exception if HasParent is false
    member this.Parent =<commit_msg>Use a string array rather than a seq<commit_after>﻿namespace Surge.Core.Models

/// Contains details about the server as a whole
type ServerStats = { DownloadSpeed : int64
                     UploadSpeed : int64
                     ServerVersion : int
                     DefaultDownloadLocation : string
                     SpaceRemaining : int64
                     MemoryUnits : ServerUnits
                     SizeUnits : ServerUnits
                     SpeedUnits : ServerUnits }

and ServerUnits = { Bytes : int
                    Units : string [] }

type StateType = ForceStart | Start | Stop | Verify

/// An abstract class representing base data that both files and folders share in common.
[<AbstractClass>]
type Item(torrentId : int, name : string, parent : Folder option) =
    let mutable parent = parent
    member internal this.MutableParent with set(value) = parent <- Some value
    member this.TorrentID = torrentId
    member this.Name = name
    member this.HasParent = parent.IsSome
    /// Throws an exception if HasParent is false
    member this.Parent =
{'fraction_non_alphanumeric': 0.0604089219330855, 'fraction_numerical': 0.0055762081784386614, 'mean_word_length': 2.0845272206303727, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6137331', 'n_tokens_mistral': 526, 'n_tokens_neox': 509, 'n_words': 194}