<commit_before>﻿Imports System.Drawing
Imports BioNovoGene.Analytical.MassSpectrometry.MsImaging

Public Class MsImageProperty

    Public Property width As Integer
    Public Property height As Integer
    Public Property background As Color

    Public ReadOnly Property fileSize As String
    Public ReadOnly Property UUID As String

    Sub New(render As Drawer)
        width = render.dimension.Width
        height = render.dimension.Height
        background = Color.White
        UUID = render.UUID
        fileSize = StringFormats.Lanudry(render.ibd.size)
    End Sub

End Class<commit_msg>add demo data image<commit_after>﻿Imports System.ComponentModel
Imports System.Drawing
Imports BioNovoGene.Analytical.MassSpectrometry.MsImaging

Public Class MsImageProperty

    <Category("imzML")> Public ReadOnly Property fileSize As String
    <Category("imzML")> Public ReadOnly Property UUID As String
    <Category("imzML")> Public ReadOnly Property scan_x As Integer
    <Category("imzML")> Public ReadOnly Property scan_y As Integer

    <Category("Render")> Public Property background As Color
    <Category("Render")> <DisplayName("width")> Public Property pixel_width As Integer = 10
    <Category("Render")> <DisplayName("height")> Public Property pixel_height As Integer = 10

    Sub New(render As Drawer)
        scan_x = render.dimension.Width
        scan_y = render.dimension.Height
        background = Color.White
        UUID = render.UUID
        fileSize = StringFormats.Lanudry(render.ibd.size)
    End Sub

End Class
{'fraction_non_alphanumeric': 0.07073329007138222, 'fraction_numerical': 0.0025957170668397143, 'mean_word_length': 3.759259259259259, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '6977331', 'n_tokens_mistral': 434, 'n_tokens_neox': 416, 'n_words': 131}