<commit_before>import React from 'react'
import { Link } from 'react-router-dom'
import Icon from './Icon'
import ExternalLink from './ExternalLink'

export default function Footer() {
  return (
    <footer>
      <hr />
      <Link to="/">
        <img src="/astrolabe.svg" height="48" alt="astrolabe" />
      </Link>
      <small>
        <ul className="list-style-inline">
          <li>
            <ExternalLink href="https://docs.sagefy.org/">
              <Icon i="docs" s="s" /> Docs
            </ExternalLink>
          </li>
          <li>
            <ExternalLink href="https://stories.sagefy.org/">
              <Icon i="stories" s="s" /> Stories
            </ExternalLink>
          </li>
          <li>
            <ExternalLink href="https://sgef.cc/devupdates">
              <Icon i="updates" s="s" /> Updates
            </ExternalLink>
          </li>
          <li>
            <Link to="/contact">
              <Icon i="contact" s="s" /> Contact
            </Link>
          </li>
          <li>
            <Link to="/terms">
              <Icon i="terms" s="s" /> Privacy &amp; Terms
            </Link>
          </li>
        </ul>
        © Copyright 2019 Sagefy.
      </small>
    </footer>
  )
}<commit_msg>Update Footer.jsx<commit_after>import React from 'react'
import { Link } from 'react-router-dom'
import { string } from 'prop-types'
import Icon from './Icon'
import ExternalLink from './ExternalLink'

export default function Footer({ role }) {
  return (
    <footer>
      <hr />
      <Link to="/">
        <img src="/astrolabe.svg" height="48" alt="astrolabe" />
      </Link>
      <small>
        {role !== 'sg_anonymous' && (
          <ul className="list-style-inline">
            <li>
              <Link to="/dashboard">
                <Icon i="dashboard" s="s" /> Dashboard
              </Link>
            </li>
            <li>
              <Link to="/settings">
                <Icon i="settings" s="s" /> Settings
              </Link>
            </li>
            <li>
              <Link to="/log-out">
                <Icon i="logOut" s="s" /> Log Out
              </Link>
            </li>
            {/* TODO add notices/follows */}
          </ul>
        )}
        <ul className="list-style-inline">
          <li>
            <ExternalLink href="https://docs.sagefy.org/">
              <Icon i="docs" s="s" /> Docs
            </ExternalLink>
          </li>
          <li>
            <ExternalLink href="https://stories.sagefy.org/">
              <Icon i="stories" s="s" /> Stories
            </ExternalLink>
          </li>
          <li>
            <ExternalLink href="https://sgef.cc/devupdates">
              <Icon i="updates" s="s" /> Updates
            </ExternalLink>
          </li>
          <li>
            <Link to="/contact">
              <Icon i="contact" s="s" /> Contact
            </Link>
          </li>
          <li>
            <Link to="/terms">
              <Icon i="terms" s="s" /> Privacy &amp; Terms
            </Link>
          </li>
        </ul>
        © Copyright {new Date().getFullYear()} Sagefy.
      </small>
    </footer>
  )
}

Footer.propTypes = {
  role: string,
}

Footer.defaultProps = {
  role: 'sg_anonymous',
}
{'fraction_non_alphanumeric': 0.16497070613629355, 'fraction_numerical': 0.002466851680542707, 'mean_word_length': 1.3575581395348837, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 90, 'https://': 6, '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': '1765901', 'n_tokens_mistral': 992, 'n_tokens_neox': 972, 'n_words': 223}