<commit_before>const PropTypes = require('prop-types');
const React = require('react');
const FlexRow = require('../../components/flex-row/flex-row.jsx');
const classNames = require('classnames');

const CappedNumber = require('../../components/cappednumber/cappednumber.jsx');
const projectShape = require('./projectshape.jsx').projectShape;

require('./stats.scss');

const Stats = props => (
    <FlexRow className="stats noselect">
        <div
            className={classNames('project-loves', {loved: props.loved})}
            key="loves"
            onClick={props.onLoveClicked}
        >
            {Math.max(0, props.loveCount)}
        </div>
        <div
            className={classNames('project-favorites', {favorited: props.faved})}
            key="favorites"
            onClick={props.onFavoriteClicked}
        >
            {Math.max(0, props.favoriteCount)}
        </div>
        <div
            className="project-remixes"
            key="remixes"
        >
            {props.projectInfo.stats.remixes}
        </div>
        <div
            className="project-views"
            key="views"
        >
            <CappedNumber value={props.projectInfo.stats.views} />
        </div>
    </FlexRow>
);

Stats.propTypes = {
    faved: PropTypes.bool,
    favoriteCount: PropTypes.number,
    loveCount: PropTypes.number,
    loved: PropTypes.bool,
    onFavoriteClicked: PropTypes.func,
    onLoveClicked: PropTypes.func,
    projectInfo: projectShape
};

module.exports = Stats;
<commit_msg>Remove "CappedNumber" from view count on project page.<commit_after>const PropTypes = require('prop-types');
const React = require('react');
const FlexRow = require('../../components/flex-row/flex-row.jsx');
const classNames = require('classnames');

const projectShape = require('./projectshape.jsx').projectShape;

require('./stats.scss');

const Stats = props => (
    <FlexRow className="stats noselect">
        <div
            className={classNames('project-loves', {loved: props.loved})}
            key="loves"
            onClick={props.onLoveClicked}
        >
            {Math.max(0, props.loveCount)}
        </div>
        <div
            className={classNames('project-favorites', {favorited: props.faved})}
            key="favorites"
            onClick={props.onFavoriteClicked}
        >
            {Math.max(0, props.favoriteCount)}
        </div>
        <div
            className="project-remixes"
            key="remixes"
        >
            {props.projectInfo.stats.remixes}
        </div>
        <div
            className="project-views"
            key="views"
        >
            {props.projectInfo.stats.views}
        </div>
    </FlexRow>
);

Stats.propTypes = {
    faved: PropTypes.bool,
    favoriteCount: PropTypes.number,
    loveCount: PropTypes.number,
    loved: PropTypes.bool,
    onFavoriteClicked: PropTypes.func,
    onLoveClicked: PropTypes.func,
    projectInfo: projectShape
};

module.exports = Stats;

{'fraction_non_alphanumeric': 0.13883299798792756, 'fraction_numerical': 0.0013413816230717639, 'mean_word_length': 2.2961325966850827, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 26, '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': '1977073', 'n_tokens_mistral': 870, 'n_tokens_neox': 881, 'n_words': 147}