<commit_before>import React from "react"
import {Router, Link, RouteHandler} from "react-router"
import UserStore from "../stores/UserStore"
import UserActions from "../actions/UserActions"
import BaseComponent from "./_helpers/BaseComponent"
import AppActions from "../actions/AppActions"

export default class Header extends BaseComponent {

    constructor() {
        super()
        this._bind(
            "_logoutUser",
            "_onChange",
            "_revealNavigation",
            "_getHeaderState"
        )

        UserActions.getUserDetails()
        this.state = this._getHeaderState()
    }

    _getHeaderState() {
        return {
            isLoggedIn: UserStore.isLoggedIn(),
            isNavigationExpanded: false,
            navClass: "collapsed"
        }
    }

    componentDidMount() {
        UserStore.addChangeListener(this._onChange)
    }

    componentWillUnmount() {
        UserStore.addChangeListener(this._onChange)
    }

    _onChange() {
        this.setState(this._getHeaderState())
    }

    render() {
        var pages = {
            "/profile": "Dashboard",
            "/": "Calculator",
            "/login": "Login",
            "/signup": "Signup",
            "/functions": "Shared Functions",
        }
        var links = []
        let page = "Calculator App 2z"

        links.push(
            <li className="header-list--item" key="home">
                <Link to="/calculator" className="header-list--item__link header-navigation--link">
                    <span className="header-list--item__icon">
                        <i className="material-icons color-blue">home</i>
                    </span>
                    <span className="header-list--item__text">Calculator</span>
                </Link>
            </li>
        )<commit_msg>changed header name<commit_after>import React from "react"
import {Router, Link, RouteHandler} from "react-router"
import UserStore from "../stores/UserStore"
import UserActions from "../actions/UserActions"
import BaseComponent from "./_helpers/BaseComponent"
import AppActions from "../actions/AppActions"

export default class Header extends BaseComponent {

    constructor() {
        super()
        this._bind(
            "_logoutUser",
            "_onChange",
            "_revealNavigation",
            "_getHeaderState"
        )

        UserActions.getUserDetails()
        this.state = this._getHeaderState()
    }

    _getHeaderState() {
        return {
            isLoggedIn: UserStore.isLoggedIn(),
            isNavigationExpanded: false,
            navClass: "collapsed"
        }
    }

    componentDidMount() {
        UserStore.addChangeListener(this._onChange)
    }

    componentWillUnmount() {
        UserStore.addChangeListener(this._onChange)
    }

    _onChange() {
        this.setState(this._getHeaderState())
    }

    render() {
        var pages = {
            "/profile": "Dashboard",
            "/": "Calculator",
            "/login": "Login",
            "/signup": "Signup",
            "/functions": "Shared Functions",
        }
        var links = []
        let page = "Calculator"

        links.push(
            <li className="header-list--item" key="home">
                <Link to="/calculator" className="header-list--item__link header-navigation--link">
                    <span className="header-list--item__icon">
                        <i className="material-icons color-blue">home</i>
                    </span>
                    <span className="header-list--item__text">Calculator</span>
                </Link>
            </li>
        )
{'fraction_non_alphanumeric': 0.12137931034482759, 'fraction_numerical': 0.00027586206896551725, 'mean_word_length': 1.8394675019577134, 'pattern_counts': {'":': 10, '<': 23, '<?xml version=': 0, '>': 23, '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': '4135602', 'n_tokens_mistral': 975, 'n_tokens_neox': 938, 'n_words': 188}