<commit_before>// Application header


import React from 'react';

AppHeader = React.createClass({
    mixins: [ReactMeteorData],
    getMeteorData() {
        return {
            user: Meteor.user()
        };
    },

    logout(event) {
        event.preventDefault();
        return Meteor.logout( () => FlowRouter.go('/'));
    },

    componentDidMount() {
        if (this.refs.profileDropdown)
            $(this.refs.profileDropdown).dropdown();

        $(this.refs.menuDropdown).dropdown();
    },

    componentDidUpdate() {
        if (this.refs.profileDropdown)
            $(this.refs.profileDropdown).dropdown();
    },

    getRightMenu() {
        // User is logged in
        if (this.data.user) {
            return (
            <div className="right menu">
                <a className="ui item" href="/team">
                    <i className="blue users icon"></i>
                    Team
                </a>
                <div className="ui dropdown item" ref="profileDropdown">
                    <i className="green user icon"></i>
                    {this.data.user.profile.displayname}
                    <div className="menu">
                        <a className="item" href="/profile">
                            <i className="setting icon"></i> Profile
                        </a>
                        <a className="item" onClick={this.logout}>
                            <i className="sign out icon"></i> Logout
                        </a>
                    </div>
                </div>
            </div>
            );
        }
        // No User - public menu
        else {
            return (
            <div className="right menu">
                <a className="ui item" href="/register">
                    <i className="blue user add icon"></i>
                    Register
                </a>
                <a className="ui item" href="/login">
                    <i className="green sign in icon"></i>
                    Log In
                </a>
            </div>
            );
        }
    },

    render() {
        return (
        <div className="ui fixed large menu">
            <div className="ui dropdown item" ref="menuDropdown">
                <i className="red bars icon"></i> Menu
                <div className="menu">
                    <a className="item" href="/">
                        <i className="home icon"></i>&nbsp; Home
                    </a>
                    <a className="item" href="/info">
                        <i className="info circle icon"></i>&nbsp; General Info
                    </a>
                    <a className="item" href="/puzzles">
                        <i className="puzzle icon"></i>&nbsp; Puzzles
                    </a>
                    <a className="item" href="/contact">
                        <i className="mail icon"></i>&nbsp; Contact
                    </a>
                    <a className="item" href="/teamlist">
                        <i className="users icon"></i>&nbsp; Team List
                    </a>
                </div>
            </div>

            {this.getRightMenu()}
        </div>);
    }
});
<commit_msg>Replacing non-used profile link in User drop down with Team button for better spacing in header on mobile devices.<commit_after>// Application header


import React from 'react';

AppHeader = React.createClass({
    mixins: [ReactMeteorData],
    getMeteorData() {
        return {
            user: Meteor.user()
        };
    },

    logout(event) {
        event.preventDefault();
        return Meteor.logout( () => FlowRouter.go('/'));
    },

    componentDidMount() {
        if (this.refs.profileDropdown)
            $(this.refs.profileDropdown).dropdown();

        $(this.refs.menuDropdown).dropdown();
    },

    componentDidUpdate() {
        if (this.refs.profileDropdown)
            $(this.refs.profileDropdown).dropdown();
    },

    getRightMenu() {
        // User is logged in
        if (this.data.user) {
            return (
            <div className="right menu">
                <div className="ui dropdown item" ref="profileDropdown">
                    <i className="green user icon"></i>
                    {this.data.user.profile.displayname}
                    <div className="menu">
                        <a className="item" href="/team">
                            <i className="blue users icon"></i>
                            Team
                        </a>
                        <a className="item" onClick={this.logout}>
                            <i className="orange sign out icon"></i> Logout
                        </a>
                    </div>
                </div>
            </div>
            );
        }
        // No User - public menu
        else {
            return (
            <div className="right menu">
                <a className="ui item" href="/register">
                    <i className="blue user add icon"></i>
                    Register
                </a>
                <a className="ui item" href="/login">
                    <i className="green sign in icon"></i>
                    Log In
                </a>
            </div>
            );
        }
    },

    render() {
        return (
        <div className="ui fixed large menu">
            <div className="ui dropdown item" ref="menuDropdown">
                <i className="red bars icon"></i> Menu
                <div className="menu">
                    <a className="item" href="/">
                        <i className="teal home icon"></i>&nbsp; Home
                    </a>
                    <a className="item" href="/info">
                        <i className="red info circle icon"></i>&nbsp; General Info
                    </a>
                    <a className="item" href="/puzzles">
                        <i className="purple puzzle icon"></i>&nbsp; Puzzles
                    </a>
                    <a className="item" href="/contact">
                        <i className="green mail icon"></i>&nbsp; Contact
                    </a>
                    <a className="item" href="/teamlist">
                        <i className="blue users icon"></i>&nbsp; Team List
                    </a>
                </div>
            </div>

            {this.getRightMenu()}
        </div>);
    }
});

{'fraction_non_alphanumeric': 0.132013201320132, 'fraction_numerical': 0.0, 'mean_word_length': 1.1580196676839607, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 117, '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': '2356164', 'n_tokens_mistral': 1618, 'n_tokens_neox': 1501, 'n_words': 377}