<commit_before>var React = require('react');
var _ = require('lodash');

var Link = React.createClass({
    render: function() {
        var handler = function(e) {
            this.props.action(this.props.value);
        }.bind(this);

        return (
            <a href="#" onClick={handler}>{this.props.children}</a>
        );
    }
});

module.exports = Link;<commit_msg>Update Link to include attrs and preventDefault<commit_after>var React = require('react');
var _ = require('lodash');

var Link = React.createClass({
    render: function() {
        var handler = function(e) {
            e.preventDefault();
            this.props.action(this.props.value);
        }.bind(this);

        return (
            <a href="#" id={this.props.id} className={this.props.className} onClick={handler}>{this.props.children}</a>
        );
    }
});

module.exports = Link;
{'fraction_non_alphanumeric': 0.16475972540045766, 'fraction_numerical': 0.0, 'mean_word_length': 2.5714285714285716, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3457596', 'n_tokens_mistral': 260, 'n_tokens_neox': 254, 'n_words': 50}