<commit_before>import React from 'react';
import {IntlMixin} from 'react-intl';

export default React.createClass({
    propTypes: {
        title: React.PropTypes.string.isRequired,
        href: React.PropTypes.string.isRequired,
        target: React.PropTypes.string
    },

    defaultProps: {
        target: '_self'
    },

    mixins: [IntlMixin],

    render() {
        return <li>
            <a href={this.props.href} target={this.props.target}>
                {this.getIntlMessage(this.props.title)}
            </a>
        </li>;
    }
});
<commit_msg>Refactoring<commit_after>import React from 'react';
import {IntlMixin} from 'react-intl';

export default React.createClass({
    propTypes: {
        title: React.PropTypes.string.isRequired,
        href: React.PropTypes.string.isRequired,
        target: React.PropTypes.string
    },

    defaultProps: {
        target: '_self'
    },

    mixins: [IntlMixin],

    render() {
        const {href, target, title} = this.props;

        const anchorProps = Object.assign(
            {href},
            target ? {target} : {}
        );

        return <li>
            <a {...anchorProps}>
                {this.getIntlMessage(title)}
            </a>
        </li>;
    }
});

{'fraction_non_alphanumeric': 0.13589128697042366, 'fraction_numerical': 0.0, 'mean_word_length': 1.966824644549763, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3893265', 'n_tokens_mistral': 388, 'n_tokens_neox': 379, 'n_words': 74}