<commit_before><md-content flex class="md-padding">
    <h3>
        {{ctrl.event.message.comment}}
    </h3>
    <div ng-hide="ctrl.profile.joinedEvents[ctrl.event.$id]">
        Click +JOIN from the menu above to join this event. 
        <span ng-if="ctrl.event.message.password">
            The password is <b>{{ctrl.event.message.password}}</b>.
        </span>
    </div>
    <!-- Users must finish registering before joining events -->
    <md-content ng-if="ctrl.currentUser &amp;&amp; !ctrl.profile" layout-padding>
        <md-divider></md-divider>
        <p>To join this event, you first need to finish registering:</p>

        <form name="registerForm" ng-submit="ctrl.register(ctrl.currentUser, registerForm)">
            <spf-sign-form current-user="ctrl.currentUser"></spf-sign-form>

            <div layout="row" layout-align="center center">
                <md-button type="submit" class="md-raised md-primary" ng-disabled="registerForm.$invalid">
                    Save
                </md-button>
            </div>
        </form>
    </md-content>
    <md-tabs md-dynamic-height="true" md-border-bottom="true">
        <md-tab label="Ranking">
            <md-content layout-padding>
                <clm-event-rank-table
                    event="ctrl.event"
                    profile="ctrl.profile"
                ></clm-event-rank-table>
            </md-content>
        </md-tab>
        <md-tab label="Challenges" ng-disabled="!ctrl.participants">
            <md-content layout-padding>
                <clm-event-table
                    ng-if="ctrl.canView" 
                    event="ctrl.event"
                    participants="ctrl.participants"
                    tasks="ctrl.tasks"
                    progress="ctrl.progress"
                    solutions="ctrl.solutions"
                    profile="ctrl.profile"
                >
                </clm-event-table>
            </md-content>
        </md-tab>
    </md-tabs>

</md-content><commit_msg>Implemented navigation to results tab in event view. closes #45<commit_after><md-content flex class="md-padding">
    <h3>
        {{ctrl.event.message.comment}}
    </h3>
    <div ng-hide="ctrl.profile.joinedEvents[ctrl.event.$id]">
        Click +JOIN from the menu above to join this event. 
        <span ng-if="ctrl.event.message.password">
            The password is <b>{{ctrl.event.message.password}}</b>.
        </span>
    </div>
    <!-- Users must finish registering before joining events -->
    <md-content ng-if="ctrl.currentUser &amp;&amp; !ctrl.profile" layout-padding>
        <md-divider></md-divider>
        <p>To join this event, you first need to finish registering:</p>

        <form name="registerForm" ng-submit="ctrl.register(ctrl.currentUser, registerForm)">
            <spf-sign-form current-user="ctrl.currentUser"></spf-sign-form>

            <div layout="row" layout-align="center center">
                <md-button type="submit" class="md-raised md-primary" ng-disabled="registerForm.$invalid">
                    Save
                </md-button>
            </div>
        </form>
    </md-content>
    <md-tabs md-dynamic-height="true" md-border-bottom="true">

        <md-tab label="Ranking">
            <md-content layout-padding>
                <clm-event-rank-table
                    event="ctrl.event"
                    profile="ctrl.profile"
                ></clm-event-rank-table>
            </md-content>
        </md-tab>

        <md-tab label="Challenges" ng-disabled="!ctrl.participants">
            <md-content layout-padding>
                <clm-event-table
                    ng-if="ctrl.canView" 
                    event="ctrl.event"
                    participants="ctrl.participants"
                    tasks="ctrl.tasks"
                    progress="ctrl.progress"
                    solutions="ctrl.solutions"
                    profile="ctrl.profile"
                >
                </clm-event-table>
            </md-content>
        </md-tab>

        <md-tab label="Results" ng-disabled="!ctrl.participants">
            <md-content layout-padding>
                <md-switch class="md-primary" ng-model="ctrl.task.archived" aria-label="Archived?">
                    View archived challenges
                </md-switch>
                <md-input-container flex layout="column">
                    <md-select flex name="editTaskServiceId"
                               ng-model="ctrl.task.serviceId" required placeholder="Select a Service">
                        <md-option ng-value="opt" ng-repeat="opt in ['codeSchool', 'codeCombat', 'treeHouse', 'singPath']">
                            {{opt}}
                        </md-option>
                    </md-select>
                    <div ng-messages="editTask.editTaskServiceId.$error">
                        <div ng-message="required">A challenge needs a service id.</div>
                    </div>
                </md-input-container>
            </md-content>
        </md-tab>
    </md-tabs>

</md-content>
{'fraction_non_alphanumeric': 0.1402090317491619, 'fraction_numerical': 0.0011831985801617037, 'mean_word_length': 1.613086038124678, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '5759413', 'n_tokens_mistral': 1443, 'n_tokens_neox': 1364, 'n_words': 256}