<commit_before><commit_msg>converter for custom toggle<commit_after>﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media;

namespace TCC.Converters
{
    class BoolToSvgSwitchConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var p = new string[2];
            if (parameter != null) p = (parameter as string).Split(':');
            if ((bool)value) return App.Current.FindResource(p[0]) as Geometry;
            else return App.Current.FindResource(p[1]) as Geometry;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
{'fraction_non_alphanumeric': 0.09320175438596491, 'fraction_numerical': 0.003289473684210526, 'mean_word_length': 3.15, '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': '3216370', 'n_tokens_mistral': 243, 'n_tokens_neox': 240, 'n_words': 69}