<commit_before><%def name="account_nav()">
    <%
        route_name = request.matched_route.name
    %>

    <div class="row">
        <div class="large-12 columns">
            <br/>
        </div>
    </div>

    <div class="row">
        <div class="large-12 columns">

    <dl class="sub-nav">
        <dd ${check_selected('user_account', route_name)} class="details"><a href="${request.route_url('user_account', username=request.user.username)}">Details</a></dd>
        <dd class="logout"><a href="${request.route_url('logout')}">Logout</a></dd>
    </dl>
    </div>
    </div>
</%def>

<%def name="check_selected(nav_page, route_name)">
    % if nav_page == route_name:
        class="active ${nav_page}"
    % else:
        class="${nav_page}"
    % endif
</%def>

<%def name="password_reset(user, reset)">
    <%
        if user.activation and user.activation.created_by == 'invite':
            title = "Please activate your new Bookie account"
            submit = "Activate"
        elif reset:
            title = "Reactivate account by resetting your password"<commit_msg>Update UI string. Also confirmed that Reset/Update password(api/v1/{username}/password) API works. Tested with curl: curl -X POST -H "Content-Type: application/json" -d '{"username":"me","current_password":"<PASSWORD>","new_password":"<PASSWORD>","api_key":"a96529ddc568"}' http://0.0.0.0:6543/api/v1/me/password<commit_after><%def name="account_nav()">
    <%
        route_name = request.matched_route.name
    %>

    <div class="row">
        <div class="large-12 columns">
            <br/>
        </div>
    </div>

    <div class="row">
        <div class="large-12 columns">

    <dl class="sub-nav">
        <dd ${check_selected('user_account', route_name)} class="details"><a href="${request.route_url('user_account', username=request.user.username)}">Details</a></dd>
        <dd class="logout"><a href="${request.route_url('logout')}">Logout</a></dd>
    </dl>
    </div>
    </div>
</%def>

<%def name="check_selected(nav_page, route_name)">
    % if nav_page == route_name:
        class="active ${nav_page}"
    % else:
        class="${nav_page}"
    % endif
</%def>

<%def name="password_reset(user, reset)">
    <%
        if user.activation and user.activation.created_by == 'invite':
            title = "Please activate your new account"
            submit = "Activate"
        elif reset:
            title = "Reactivate account by resetting your password"
{'fraction_non_alphanumeric': 0.17802108678021086, 'fraction_numerical': 0.010543390105433901, 'mean_word_length': 2.972624798711755, 'pattern_counts': {'":': 4, '<': 57, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4865411', 'n_tokens_mistral': 811, 'n_tokens_neox': 773, 'n_words': 159}