<commit_before>import { unpack } from "@wowts/lua";
import { C_Soulbinds } from "@wowts/wow-mock";
import { OptionUiGroup } from "../ui/acegui-helpers";
import {
    ConditionFunction,
    OvaleConditionClass,
    ReturnBoolean,
    ReturnConstant,
} from "../engine/condition";
import { OvaleDebugClass } from "../engine/debug";

export class Conduit {
    private debugOptions: OptionUiGroup = {
        type: "group",
        name: "Conduits",
        args: {
            conduits: {
                type: "input",
                name: "Conduits",
                multiline: 25,
                width: "full",
                get: () => {
                    return "";
                },
            },
        },
    };

    constructor(debug: OvaleDebugClass) {
        debug.defaultOptions.args["covenant"] = this.debugOptions;
    }

    registerConditions(condition: OvaleConditionClass) {
        condition.RegisterCondition("conduit", false, this.conduit);
        condition.RegisterCondition("conduitrank", false, this.conduitRank);
        condition.RegisterCondition(
            "enabledsoulbind",
            false,
            this.enabledSoulbind
        );
    }
<commit_msg>fix: convenant debug pannel was not displayed<commit_after>import { unpack } from "@wowts/lua";
import { C_Soulbinds } from "@wowts/wow-mock";
import { OptionUiGroup } from "../ui/acegui-helpers";
import {
    ConditionFunction,
    OvaleConditionClass,
    ReturnBoolean,
    ReturnConstant,
} from "../engine/condition";
import { OvaleDebugClass } from "../engine/debug";

export class Conduit {
    private debugOptions: OptionUiGroup = {
        type: "group",
        name: "Conduits",
        args: {
            conduits: {
                type: "input",
                name: "Conduits",
                multiline: 25,
                width: "full",
                get: () => {
                    return "";
                },
            },
        },
    };

    constructor(debug: OvaleDebugClass) {
        debug.defaultOptions.args["conduit"] = this.debugOptions;
    }

    registerConditions(condition: OvaleConditionClass) {
        condition.RegisterCondition("conduit", false, this.conduit);
        condition.RegisterCondition("conduitrank", false, this.conduitRank);
        condition.RegisterCondition(
            "enabledsoulbind",
            false,
            this.enabledSoulbind
        );
    }

{'fraction_non_alphanumeric': 0.11854605534902933, 'fraction_numerical': 0.0016522098306484924, 'mean_word_length': 1.9572649572649572, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4515334', 'n_tokens_mistral': 694, 'n_tokens_neox': 671, 'n_words': 128}