<commit_before>{{define "top-navbar"}}
<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container-fluid">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <a class="brand" href="#">Hypermind</a>
            <div class="nav-collapse collapse">
                <ul class="nav">
                {{if allTrue .home}}
                    <li {{if equal .currentPage .homePage}}class="active"{{end}}><a href="/?page={{.homePage}}">Home</a></li>
                {{end}}
                {{if allTrue .meeting_kanban}}
                    <li {{if equal .currentPage .meetingKanbanPage}}class="active"{{end}}><a href="/?page={{.meetingKanbanPage}}">Meeting Kanban</a></li>
                {{end}}
                {{if allTrue .project_hash_ring}}
                    <li {{if match .currentPage "^project_.*"}}class="active"{{end}}><a href="/?page={{.projectHashRingPage}}">Projects</a></li>
                {{end}}
                {{if allTrue .about_me .about_website}}
                    <li {{if match .currentPage "^about_.*"}}class="active"{{end}}><a href="/?page={{.aboutMePage}}">About</a></li>
                {{end}} 
                </ul>
            </div>
            <ul class="nav pull-right">
                {{if .validLogin}}
                <li><a href="#">Hi, {{.loginName}}</a></li>
                <li class="divider-vertical"></li>
                <a class="btn navbar-form pull-right" href="http://{{.serverAddr}}:{{.serverPort}}/logout">Sign Out</a></p>
                {{else}}
                <li class="divider-vertical"></li>
                <a class="btn navbar-form pull-right" href="http://{{.serverAddr}}:{{.serverPort}}/login">Sign In</a></p>
                {{end}}
            </ul>

        </div>
    </div>
</div>
{{end}}<commit_msg>Fix a bug about show user name at navbar when user signed in.<commit_after>{{define "top-navbar"}}
<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container-fluid">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <a class="brand" href="#">Hypermind</a>
            <div class="nav-collapse collapse">
                <ul class="nav">
                {{if allTrue .home}}
                    <li {{if equal .currentPage .homePage}}class="active"{{end}}><a href="/?page={{.homePage}}">Home</a></li>
                {{end}}
                {{if allTrue .meeting_kanban}}
                    <li {{if equal .currentPage .meetingKanbanPage}}class="active"{{end}}><a href="/?page={{.meetingKanbanPage}}">Meeting Kanban</a></li>
                {{end}}
                {{if allTrue .project_hash_ring}}
                    <li {{if match .currentPage "^project_.*"}}class="active"{{end}}><a href="/?page={{.projectHashRingPage}}">Projects</a></li>
                {{end}}
                {{if allTrue .about_me .about_website}}
                    <li {{if match .currentPage "^about_.*"}}class="active"{{end}}><a href="/?page={{.aboutMePage}}">About</a></li>
                {{end}} 
                </ul>
            </div>
            <ul class="nav pull-right">
                {{if .loginName}}
                <li><a href="#">Hi, {{.loginName}}</a></li>
                <li class="divider-vertical"></li>
                <a class="btn navbar-form pull-right" href="http://{{.serverAddr}}:{{.serverPort}}/logout">Sign Out</a></p>
                {{else}}
                <li class="divider-vertical"></li>
                <a class="btn navbar-form pull-right" href="http://{{.serverAddr}}:{{.serverPort}}/login">Sign In</a></p>
                {{end}}
            </ul>

        </div>
    </div>
</div>
{{end}}
{'fraction_non_alphanumeric': 0.20627912680892813, 'fraction_numerical': 0.0, 'mean_word_length': 1.8437935843793585, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '3353836', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1171, 'n_words': 219}