<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TAIO
{
    public partial class PictureWindow : Form
    {
        public PictureWindow()
        {
            InitializeComponent();
        }

        public PictureWindow(string windowName, string automatonName)
        {
            InitializeComponent();

            pictureBox1.Image = new Bitmap(automatonName);
            pictureBox1.Dock = DockStyle.Fill;
            this.Text = windowName;
        }
    }
}<commit_msg>Size of the window with graph image is fitted to the picture size<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TAIO
{
    /// <summary>
    /// Window used to show input and output graph
    /// </summary>
    public partial class PictureWindow : Form
    {
        public PictureWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Takes name of window and name of automaton (to get the right image)
        /// </summary>
        /// <param name="windowName"></param>
        /// <param name="automatonName"></param>
        public PictureWindow(string windowName, string automatonName)
        {
            InitializeComponent();
            int diffw = this.Width - pictureBox1.Width;
            int diffh = this.Height - pictureBox1.Height;
            pictureBox1.Image = new Bitmap(automatonName);
            this.Size = new System.Drawing.Size(pictureBox1.Image.Width+diffw, pictureBox1.Image.Height + diffh);
            pictureBox1.Dock = DockStyle.Fill;
            this.Text = windowName;
        }
    }
}
{'fraction_non_alphanumeric': 0.09715762273901808, 'fraction_numerical': 0.004134366925064599, 'mean_word_length': 2.3552859618717505, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6161042', 'n_tokens_mistral': 511, 'n_tokens_neox': 510, 'n_words': 136}