<commit_before><template name="App_result_print">

    <div id="print-viewer">
        {{#if Template.subscriptionsReady}}

        <div class="top-bar">
            <h4 class="header">
                <i class="fa fa-heartbeat"></i>
                Adaptive Depression Test<br>
                <span class="subheader">Patient Report</span>
            </h4>
        </div>

        <div style="height:20px"></div>

        <div class="middle-bar">
            <h5 class="header light">Patient's Information</h5>
            <table>
                <tr>
                    <td class="first">Name</td>
                    <td>{{session.name}}</td>
                </tr>
                <tr>
                    <td class="first">Age</td>
                    <td>{{getAge session.dob}}</td>
                </tr>
                <tr>
                    <td class="first">Gender</td>
                    <td>{{upperFirst session.gender}}</td>
                </tr>
            </table>
        </div>

        <div style="height:20px"></div>

        <div class="middle-bar">
            <h5 class="header light">Messages for Patient</h5> 
            <table>
                <tr><td class="message">{{messages.bds}}</td></tr>
                <tr><td class="message">{{messages.bas}}</td></tr>
                <tr><td class="message">{{messages.bss}}</td></tr>
                <tr><td class="message">{{messages.bhs}}</td></tr> 
            </table>
        </div>

        <div style="height:20px"></div>

        <div class="middle-bar">
            <h5 class="header light">Patient's choices</h5>
            <table>
                <thead>
                    <tr>
                        <td>Type</td>
                        <td>Title</td>
                        <td>Patient's Choice</td>
                        <td>Score</td>
                    </tr>
                </thead>
                <tbody>
                    {{#each optionList}}
                    <tr>
                        <td>{{question.type}}</td>
                        <td class="first">{{question.title}}</td>
                        <td>{{desc}}</td>
                        <td class="last">{{score}}</td>
                    </tr>
                    {{/each}}
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="3" class="first">Total Score</td>
                        <td class="last">{{messages.totalScore}}</td>
                    </tr>
                    <tr>
                        <td colspan="3" class="first">Score on Beck's' Suicide Scale</td>
                        <td class="last">{{messages.bssScore}}</td>
                    </tr>
                    <tr>
                        <td colspan="3" class="first">Score on Beck's Hopelessness Scale</td>
                        <td class="last">{{messages.bhsScore}}</td>
                    </tr>
                </tfoot>
            </table>
        </div>

        <div style="height:100px"></div>

        <div class="bottom-bar">
            Report generated by <b>Adaptive Depression Test</b>.<br> Website link: {{siteLink}}<br>
            <i>All information here is private, and should be published or used without owner's consent.</i>
        </div>

        {{/if}}

    </div>

</template><commit_msg>fixed a typo<commit_after><template name="App_result_print">

    <div id="print-viewer">
        {{#if Template.subscriptionsReady}}

        <div class="top-bar">
            <h4 class="header">
                <i class="fa fa-heartbeat"></i>
                Adaptive Depression Test<br>
                <span class="subheader">Patient Report</span>
            </h4>
        </div>

        <div style="height:20px"></div>

        <div class="middle-bar">
            <h5 class="header light">Patient's Information</h5>
            <table>
                <tr>
                    <td class="first">Name</td>
                    <td>{{session.name}}</td>
                </tr>
                <tr>
                    <td class="first">Age</td>
                    <td>{{getAge session.dob}}</td>
                </tr>
                <tr>
                    <td class="first">Gender</td>
                    <td>{{upperFirst session.gender}}</td>
                </tr>
            </table>
        </div>

        <div style="height:20px"></div>

        <div class="middle-bar">
            <h5 class="header light">Messages for Patient</h5> 
            <table>
                <tr><td class="message">{{messages.bds}}</td></tr>
                <tr><td class="message">{{messages.bas}}</td></tr>
                <tr><td class="message">{{messages.bss}}</td></tr>
                <tr><td class="message">{{messages.bhs}}</td></tr> 
            </table>
        </div>

        <div style="height:20px"></div>

        <div class="middle-bar">
            <h5 class="header light">Patient's choices</h5>
            <table>
                <thead>
                    <tr>
                        <td>Type</td>
                        <td>Title</td>
                        <td>Patient's Choice</td>
                        <td>Score</td>
                    </tr>
                </thead>
                <tbody>
                    {{#each optionList}}
                    <tr>
                        <td>{{question.type}}</td>
                        <td class="first">{{question.title}}</td>
                        <td>{{desc}}</td>
                        <td class="last">{{score}}</td>
                    </tr>
                    {{/each}}
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="3" class="first">Total Score</td>
                        <td class="last">{{messages.totalScore}}</td>
                    </tr>
                    <tr>
                        <td colspan="3" class="first">Score on Beck's Suicide Scale</td>
                        <td class="last">{{messages.bssScore}}</td>
                    </tr>
                    <tr>
                        <td colspan="3" class="first">Score on Beck's Hopelessness Scale</td>
                        <td class="last">{{messages.bhsScore}}</td>
                    </tr>
                </tfoot>
            </table>
        </div>

        <div style="height:100px"></div>

        <div class="bottom-bar">
            Report generated by <b>Adaptive Depression Test</b>.<br> Website link: {{siteLink}}<br>
            <i>All information here is private, and should be published or used without owner's consent.</i>
        </div>

        {{/if}}

    </div>

</template>

{'fraction_non_alphanumeric': 0.16057185854025582, 'fraction_numerical': 0.006019563581640331, 'mean_word_length': 1.1328626444159178, 'pattern_counts': {'":': 0, '<': 253, '<?xml version=': 0, '>': 253, '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': '2471906', 'n_tokens_mistral': 1917, 'n_tokens_neox': 1692, 'n_words': 331}