<table style="border: 1px solid black; margin-left: auto; margin-right: auto;" ng-if="msg">
    <tr style="border: 1px solid black;">
        <td style="border: 1px solid black; text-align: center;">
            <b>Factor</b>
        </td>
        <td style="border: 1px solid black; text-align: center;">
            <b>Description</b>
        </td>
        <td style="border: 1px solid black; text-align: center;">
            <b>Weight</b>
        </td>
        <td style="border: 1px solid black; text-align: center;">
            <b>Normalized Weight</b>
        </td>
        <td style="border: 1px solid black; text-align: center;">
            <b>Class</b>
        </td>
        <td style="border: 1px solid black; text-align: center;">
            <b>Normalized Score</b>
        </td>
    </tr>
    <tr ng-if="msg.indexOf(';Warning:') !== -1" style="border: 1px solid black; text-align: center;">
        <td style="border: 1px solid black; text-align: left;" ng-repeat="col in [msg.substring(msg.indexOf(';Warning:')).substring(1)]"  ng-class="vm.highlights[col.split(':')[0]] ? 'red' : ''">
            {{col.split(':')[0]}}
        </td>
        <td style="border: 1px solid black; text-align: left;" ng-repeat="col in [msg.substring(msg.indexOf(';Warning:')).substring(9)]">
            {{col}}
        </td>
        <td style="border: 1px solid black; text-align: center;" ng-repeat="x in [0,1,2,3]">
            
        </td>
    </tr>
    <tr style="border: 1px solid black;" ng-repeat = "col in msg.substring(0, msg.indexOf(';Warning:') !== -1 ? msg.indexOf(';Warning:') : 100000).split(';')"  ng-class="vm.highlights[col.split(':')[0]] ? 'red' : ''">
        <td style="border: 1px solid black; text-align: left;">
            {{col.split(':')[0]}}
        </td>
        <td style="border: 1px solid black; text-align: left;">
            {{col.split(':').slice(1, col.split(':').length - 1).join(':')}}
        </td>
        <td style="border: 1px solid black; text-align: center;">
            <span ng-repeat="parsed in [col.split(':')[col.split(':').length - 1]]" ng-if="col.split(':').length >= 3">
                {{ parsed.split('/')[2] }}
            </span>
        </td>
        <td style="border: 1px solid black; text-align: center;" ng-repeat="parsed in [col.split(':')[col.split(':').length - 1]]" ng-if="col.split(':').length >= 3">
            {{ vm.pf(parsed.split('/')[2]) / vm.wsum  | number : 4}}
        </td>
        <td style="border: 1px solid black; text-align: center;">
            <span ng-repeat="parsed in [col.split(':')[col.split(':').length - 1]]" ng-if="col.split(':').length >= 3">
                {{parsed.split('/')[1]}}
            </span>
        </td>
        <td style="border: 1px solid black; text-align: center;">
            <span ng-repeat="parsed in [col.split(':')[col.split(':').length - 1]]" ng-if="col.split(':').length >= 3">
                {{ vm.pf(parsed.split('/')[2]) * vm.pf(parsed.split('/')[1]) / vm.wsum  | number : 4}}
            </span>
        </td>
    </tr>
    <tr style="border: 1px solid black;" ng-repeat = "col in vm.missing_keys"  class="red">
        <td>
             <s>{{col}}</s>
        </td>
        <td style="border: 1px solid black; text-align: center;" ng-repeat="x in [0,1,2,3,4]"></td>
    </tr>
</table>
