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

var ReviewsDisplay = React.createClass ({
  dismissColumn: function(name, site) {
    console.log(this.props);
    console.log("DC in RD: " + name + " " + site);
    this.props.onDismissColumn(this.props.name, this.props.source);
  },

  render: function() {
    var resultNodes;

    if (this.props.source === 'Walmart') {
      resultNodes = this.props.data.map(function(result, index) {
        return (
          <WalmartIndividualReviewDisplay
            key={'walmartReview' + index}
            title={result.title}
            overallRating={result.overallRating}
            reviewer={result.reviewer}
            reviewText={result.reviewText}
            upVotes={result.upVotes}
            downVotes={result.downVotes} />
        );
      });
    } else if (this.props.source === 'Best Buy') {
      resultNodes = this.props.data.map(function(result, index) {
        return (
          <BestbuyIndividualReviewDisplay
            key={'bestbuyResult' + index}
            title={result.title}
            reviewer={result.reviewer[0].name}
            comment={result.comment}
            rating={result.rating} 
            sku={result.sku} />
        );
      });<commit_msg>Small cleanup fixes?<commit_after>var React = require('react');

var ReviewsDisplay = React.createClass ({
  dismissColumn: function(name, site) {
    this.props.onDismissColumn(this.props.name, this.props.source);
  },

  render: function() {
    var resultNodes;

    if (this.props.source === 'Walmart') {
      resultNodes = this.props.data.map(function(result, index) {
        return (
          <WalmartIndividualReviewDisplay
            key={'walmartReview' + index}
            title={result.title}
            overallRating={result.overallRating}
            reviewer={result.reviewer}
            reviewText={result.reviewText}
            upVotes={result.upVotes}
            downVotes={result.downVotes} />
        );
      });
    } else if (this.props.source === 'Best Buy') {
      resultNodes = this.props.data.map(function(result, index) {
        return (
          <BestbuyIndividualReviewDisplay
            key={'bestbuyResult' + index}
            title={result.title}
            reviewer={result.reviewer[0].name}
            comment={result.comment}
            rating={result.rating} 
            sku={result.sku} />
        );
      });
{'fraction_non_alphanumeric': 0.13316687473990846, 'fraction_numerical': 0.0008322929671244278, 'mean_word_length': 2.213903743315508, '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': '3211481', 'n_tokens_mistral': 701, 'n_tokens_neox': 678, 'n_words': 104}