<commit_before>{$form.javascript}{literal}
<script type="text/javascript">
    function toggleParams(type) {
        if (type == 'host') {
            Effect.Fade('service_input', {duration: 0});
            Effect.Appear('host_input', {duration: 0});
        } else if (type == 'service') {
            Effect.Fade('host_input', {duration: 0});
            Effect.Appear('service_input', {duration: 0});
        }
    }
    Event.observe(window, "load", function () {
        toggleParams('{/literal}{$focus}{literal}');
    });

</script>
{/literal}
<div align=center>
    <form {$form.attributes}>
        <table class="ListTableMedium">
            <tr class="ListHeader">
                <td class="FormHeader" colspan="2">{t}Add comment{/t}</td>
            <tr>

            {if isset($service_description)}
            <tr class="list_one">
                <td class="FormRowField">{t}Type{/t}</td>
                <td class="FormRowValue"><b>Service</b></td>
            </tr>
            {elseif isset($host_name)}
            <tr class="list_one">
                <td class="FormRowField">{t}Type{/t}</td>
                <td class="FormRowValue"><b>Host</b></td>
            </tr>
            {else}
            <tr class="list_one">
                <td class="ListColLeft">{$form.commentType.label}</td>
                <td class="ListColLeft">{$form.commentType.html}</td>
            </tr>
            {/if}

            <!-- Object choice -->
            <tr class="list_two" id="host_input"><commit_msg>* remove prototype to comment form<commit_after>{$form.javascript}{literal}
<script type="text/javascript">
    function toggleParams(type) {
        if (type == 'host') {
            jQuery('#service_input').fadeOut({duration: 0});
            jQuery('#host_input').fadeIn({duration: 0});
        } else if (type == 'service') {
            jQuery('#host_input').fadeOut({duration: 0});
            jQuery('#service_input').fadeIn({duration: 0});
        }
    }
    jQuery(document).ready(function () {
        toggleParams('{/literal}{$focus}{literal}');
    });

</script>
{/literal}
<div align=center>
    <form {$form.attributes}>
        <table class="ListTableMedium">
            <tr class="ListHeader">
                <td class="FormHeader" colspan="2">{t}Add comment{/t}</td>
            <tr>

            {if isset($service_description)}
            <tr class="list_one">
                <td class="FormRowField">{t}Type{/t}</td>
                <td class="FormRowValue"><b>Service</b></td>
            </tr>
            {elseif isset($host_name)}
            <tr class="list_one">
                <td class="FormRowField">{t}Type{/t}</td>
                <td class="FormRowValue"><b>Host</b></td>
            </tr>
            {else}
            <tr class="list_one">
                <td class="ListColLeft">{$form.commentType.label}</td>
                <td class="ListColLeft">{$form.commentType.html}</td>
            </tr>
            {/if}

            <!-- Object choice -->
            <tr class="list_two" id="host_input">
{'fraction_non_alphanumeric': 0.18178851174934726, 'fraction_numerical': 0.0032637075718015664, 'mean_word_length': 1.9873294346978558, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '6647207', 'n_tokens_mistral': 923, 'n_tokens_neox': 894, 'n_words': 148}