<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace WernherChecker
{
    public class ChecklistItem
    {
        public WernherChecker MainInstance
        {
            get { return WernherChecker.Instance; }
        }
        public Checklist activeChecklist
        {
            get { return MainInstance.checklistSystem.ActiveChecklist; }
        }
        public ChecklistSystem checklistsInstance
        {
            get { return MainInstance.checklistSystem; }
        }
        //GUIStyle
        public GUIStyle labelStyle = new GUIStyle(HighLogic.Skin.label);
        public static GUIStyle checkboxStyle = new GUIStyle(HighLogic.Skin.toggle)
        {
            normal = HighLogic.Skin.toggle.hover,
            active = HighLogic.Skin.toggle.hover,
            //hover = HighLogic.Skin.toggle.normal,
            focused = HighLogic.Skin.toggle.hover,
            onActive = HighLogic.Skin.toggle.onNormal,
            onFocused = HighLogic.Skin.toggle.onNormal,
            onHover = HighLogic.Skin.toggle.onNormal
        };
        public static GUIStyle manualCheckboxStyle = new GUIStyle(HighLogic.Skin.toggle)
        {
            onNormal = HighLogic.Skin.toggle.onHover,
            onHover = HighLogic.Skin.toggle.onNormal
        };
        public static GUIStyle settingsButtonStyle = new GUIStyle(HighLogic.Skin.button)
        {
            alignment = TextAnchor.MiddleCenter,
            padding = new RectOffset(2, 2, 2, 2),
            fixedHeight = WernherChecker.buttonStyle.CalcSize(new GUIContent("abc")).y,
            fixedWidth = WernherChecker.buttonStyle.CalcSize(new GUIContent("abc")).y

        };


        public string name;
        public bool state;
        public bool isManual = false;
        public bool allRequired = true;
        public bool paramsDisplayed;
        public List<Criterion> criteria;

        public void DrawItem()
        {
            GUILayout.BeginHorizontal();
            GUILayout.Label(isManual ? new GUIContent("<color=#0099ffff>" + name + "</color>") : new GUIContent(name, "Criteria:\n" + string.Join("\n", criteria.Select(x => "<color=cyan><b>–</b></color> <i>" + x.parameterText + "</i>").ToArray())), labelStyle);
            GUILayout.FlexibleSpace();<commit_msg>Update ChecklistItem.cs<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace WernherChecker
{
    public class ChecklistItem
    {
        public WernherChecker MainInstance
        {
            get { return WernherChecker.Instance; }
        }
        public Checklist activeChecklist
        {
            get { return MainInstance.checklistSystem.ActiveChecklist; }
        }
        public ChecklistSystem checklistsInstance
        {
            get { return MainInstance.checklistSystem; }
        }
        //GUIStyle
        public GUIStyle labelStyle = new GUIStyle(HighLogic.Skin.label);
        public static GUIStyle checkboxStyle = new GUIStyle(HighLogic.Skin.toggle)
        {
            normal = HighLogic.Skin.toggle.hover,
            active = HighLogic.Skin.toggle.hover,
            //hover = HighLogic.Skin.toggle.normal,
            focused = HighLogic.Skin.toggle.hover,
            onActive = HighLogic.Skin.toggle.onNormal,
            onFocused = HighLogic.Skin.toggle.onNormal,
            onHover = HighLogic.Skin.toggle.onNormal
        };
        public static GUIStyle manualCheckboxStyle = new GUIStyle(HighLogic.Skin.toggle)
        {
            onNormal = HighLogic.Skin.toggle.onHover,
            onHover = HighLogic.Skin.toggle.onNormal
        };
        public static GUIStyle settingsButtonStyle = new GUIStyle(HighLogic.Skin.button)
        {
            alignment = TextAnchor.MiddleCenter,
            padding = new RectOffset(2, 2, 2, 2),
            fixedHeight = WernherChecker.buttonStyle.CalcSize(new GUIContent("abc")).y,
            fixedWidth = WernherChecker.buttonStyle.CalcSize(new GUIContent("abc")).y

        };


        public string name;
        public bool state;
        public bool isManual = false;
        public bool allRequired = true;
        public bool paramsDisplayed;
        public List<Criterion> criteria;

        public void DrawItem()
        {
            GUILayout.BeginHorizontal();
            GUILayout.Label(isManual ? new GUIContent("<color=#0099ffff>" + name + "</color>", "Manually controlled item") : new GUIContent(name, "Criteria:\n" + string.Join("\n", criteria.Select(x => "<color=cyan><b>–</b></color> <i>" + x.valuesFull + " " + x.measure + "</i>").ToArray())), labelStyle);
            GUILayout.FlexibleSpace();
{'fraction_non_alphanumeric': 0.09980928162746344, 'fraction_numerical': 0.0033905488450943, 'mean_word_length': 2.3053221288515404, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '4787163', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1357, 'n_words': 262}