<commit_before>import React from 'react'
import DocumentTitle from 'react-document-title'
import { Paper, List, ListItem, Styles } from 'material-ui'


export default class NotFoundView extends React.Component {
    constructor(props) {
        super(props)
        this.getOnNavigate = this.getOnNavigate.bind(this)
    }

    static get contextTypes() {
        return {
            router: React.PropTypes.func
        }
    }

    getOnNavigate(route) {
        return () => {
            this.context.router.transitionTo(route)
        }.bind(this)
    }

    render() {
        let style = {
            paddingTop: '15px',
            paddingBottom: '15px',
            paddingLeft: Styles.Spacing.desktopGutter,
            paddingRight: Styles.Spacing.desktopGutter
        }

        let listStyle = {
            maxWidth: '500px'
        }

        return (
            <DocumentTitle title="Themis Finals :: Not Found">
                <Paper size={1} style={style}>
                    <h2>Not Found</h2>
                    <p>This is not the page you are looking for...</p>
                    <Paper size={1} style={listStyle}>
                        <List subheader="Try these">
                            <ListItem primaryText="Main" onClick={this.getOnNavigate('index')}/>
                            <ListItem primaryText="Scoreboard" onClick={this.getOnNavigate('scoreboard')}/>
                            <ListItem primaryText="News" onClick={this.getOnNavigate('news')}/>
                        </List>
                    </Paper>
                </Paper>
            </DocumentTitle>
        )
    }
}<commit_msg>Restyle not found page<commit_after>import React from 'react'
import DocumentTitle from 'react-document-title'
import { Paper, List, ListItem, Styles } from 'material-ui'


export default class NotFoundView extends React.Component {
    constructor(props) {
        super(props)
        this.getOnNavigate = this.getOnNavigate.bind(this)
    }

    static get contextTypes() {
        return {
            router: React.PropTypes.func
        }
    }

    getOnNavigate(route) {
        return () => {
            this.context.router.transitionTo(route)
        }.bind(this)
    }

    render() {
        let style = {
            paddingTop: '15px',
            paddingBottom: '15px',
            paddingLeft: Styles.Spacing.desktopGutter,
            paddingRight: Styles.Spacing.desktopGutter
        }

        let listStyle = {
            listStyleType: 'none',
            paddingLeft: '0',
            lineHeight: '1.5em'
        }

        let links = [
            <li key={0}><a href="/" onTouchTap={this.getOnNavigate('index')}>Main page</a></li>,
            <li key={1}><a href="/scoreboard" onTouchTap={this.getOnNavigate('scoreboard')}>Scoreboard</a></li>,
            <li key={2}><a href="/news" onTouchTap={this.getOnNavigate('news')}>News</a></li>
        ]

        if (this.props.identity.isInternal()) {
            links.push(<li key={3}><a href="/logs" onTouchTap={this.getOnNavigate('logs')}>Logs</a></li>)
        }

        return (
            <DocumentTitle title="Themis Finals :: Not Found">
                <Paper size={1} style={style}>
                    <h2>Not Found</h2>
                    <p>This is not the page you are looking for...</p>
                    <p>Try these:</p>
                    <ul style={listStyle}>
                        {links}
                    </ul>
                </Paper>
            </DocumentTitle>
        )
    }
}
{'fraction_non_alphanumeric': 0.1270874610812341, 'fraction_numerical': 0.007076139258420606, 'mean_word_length': 1.6691842900302114, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 48, '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': '7240619', 'n_tokens_mistral': 1024, 'n_tokens_neox': 975, 'n_words': 195}