<commit_before>﻿using System;
using System.Globalization;
using System.Windows.Controls;
using System.Windows.Data;

namespace MahApps.Metro.Converters
{
    public class PanoramaGroupWidthConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            var itemBox = double.Parse(values[0].ToString());
            var groupHeight = double.Parse(values[1].ToString());

            double ratio = groupHeight / itemBox;
            var list = (ListBox)values[2];

            double width = Math.Ceiling(list.Items.Count / ratio);
            width *= itemBox;
            return width < itemBox ? itemBox : width;
        }
<commit_msg>Last panorama column hide fix<commit_after>﻿using System;
using System.Globalization;
using System.Windows.Controls;
using System.Windows.Data;

namespace MahApps.Metro.Converters
{
    public class PanoramaGroupWidthConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            var itemBox = double.Parse(values[0].ToString());
            var groupHeight = double.Parse(values[1].ToString());

            double ratio = groupHeight / itemBox;
            var list = (ListBox)values[2];

            double width = Math.Ceiling(list.Items.Count / ratio) + 1;
            width *= itemBox;
            return width < itemBox ? itemBox : width;
        }

{'fraction_non_alphanumeric': 0.09571619812583668, 'fraction_numerical': 0.004685408299866131, 'mean_word_length': 2.691358024691358, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3015196', 'n_tokens_mistral': 397, 'n_tokens_neox': 390, 'n_words': 101}