<commit_before>import React from 'react';

const Article = React.createClass({
  displayName: 'Article',

  propTypes: {
    article: React.PropTypes.object
  },

  render() {
    const className = 'article';
    const ratingClass = `rating ${this.props.article.rating}`;
    const ratingMobileClass = `${ratingClass} tabconst-only`;
    const languagePrefix = this.props.article.language ? `${this.props.article.language}:` : '';
    const formattedTitle = `${languagePrefix}${this.props.article.title}`;

    return (
      <tr className={className}>
        <td className="popover-trigger desktop-only-tc">
          <p className="rating_num hidden">{this.props.article.rating_num}</p>
          <div className={ratingClass}><p>{this.props.article.pretty_rating || '-'}</p></div>
          <div className="popover dark">
            <p>{I18n.t(`articles.rating_docs.${this.props.article.rating || '?'}`)}</p>
          </div>
        </td>
        <td>
          <div className={ratingMobileClass}><p>{this.props.article.pretty_rating || '-'}</p></div>
          <p className="title">
            <a href={this.props.article.url} target="_blank" className="inline">{formattedTitle} {(this.props.article.new_article ? ' (new)' : '')}</a>
          </p>
        </td>
        <td className="desktop-only-tc">{this.props.article.character_sum}</td>
        <td className="desktop-only-tc">{this.props.article.view_count}</td>
        <td></td>
      </tr>
    );
  }
});

export default Article;<commit_msg>Add history link to Articles Edited rows<commit_after>import React from 'react';

const Article = React.createClass({
  displayName: 'Article',

  propTypes: {
    article: React.PropTypes.object
  },

  render() {
    const className = 'article';
    const ratingClass = `rating ${this.props.article.rating}`;
    const ratingMobileClass = `${ratingClass} tabconst-only`;
    const languagePrefix = this.props.article.language ? `${this.props.article.language}:` : '';
    const formattedTitle = `${languagePrefix}${this.props.article.title}`;
    const historyUrl = '${this.props.article.url}?action=history';

    return (
      <tr className={className}>
        <td className="popover-trigger desktop-only-tc">
          <p className="rating_num hidden">{this.props.article.rating_num}</p>
          <div className={ratingClass}><p>{this.props.article.pretty_rating || '-'}</p></div>
          <div className="popover dark">
            <p>{I18n.t(`articles.rating_docs.${this.props.article.rating || '?'}`)}</p>
          </div>
        </td>
        <td>
          <div className={ratingMobileClass}><p>{this.props.article.pretty_rating || '-'}</p></div>
          <p className="title">
            <a href={this.props.article.url} target="_blank" className="inline">{formattedTitle} {(this.props.article.new_article ? ' (new)' : '')}</a>
            <br />
            <small><a href={historyUrl} target="_blank" className="inline">(history)</a></small>
          </p>
        </td>
        <td className="desktop-only-tc">{this.props.article.character_sum}</td>
        <td className="desktop-only-tc">{this.props.article.view_count}</td>
        <td></td>
      </tr>
    );
  }
});

export default Article;
{'fraction_non_alphanumeric': 0.18362282878411912, 'fraction_numerical': 0.0012406947890818859, 'mean_word_length': 3.0668348045397225, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 68, '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': '3867265', 'n_tokens_mistral': 995, 'n_tokens_neox': 980, 'n_words': 161}