<commit_before>import React, {Component, PropTypes} from 'react';
import { connect } from 'react-redux';
import { pushState } from 'redux-router';


@connect(null, {pushState})
export default class Addon extends Component {

  static propTypes = {
    // description: PropTypes.string,
    download_url: PropTypes.string, /*eslint-disable */
    icons: PropTypes.object,
    name: PropTypes.string,
    slug: PropTypes.string,
    summary: PropTypes.string,
    pushState: PropTypes.func.isRequired,
  }

  handleGetDetails = (event) => {
    event.preventDefault();
    this.props.pushState(null, `addon/${this.props.slug}`);
  }

  handleDownload = (event) => {
    event.stopPropagation();
  }

  render() {
    const {download_url, icons, name, slug, summary} = this.props;
    const styles = require('./AddonResult.scss');

    return (
      <div className={styles.addonresult + ' clickable'} onClick={this.handleGetDetails}>
        <h2>{name}</h2>
        <div className={styles.meta}>
          <img width="64" height="64" className={styles.resultimage} src={icons[64]} />
          <p dangerouslySetInnerHTML={{__html: summary}.replace(/[\r\n]/g, '<br/>')}></p>
          <a onClick={this.handleDownload} href={download_url} className="btn btn-success pull-right">Add to Firefox</a>
          <a href={'/addon/' + slug} className="jsonlyib btn btn-primary pull-right">View Details</a>
        </div>
      </div>
    );
  }
}
<commit_msg>fix broken replace<commit_after>import React, {Component, PropTypes} from 'react';
import { connect } from 'react-redux';
import { pushState } from 'redux-router';


@connect(null, {pushState})
export default class Addon extends Component {

  static propTypes = {
    // description: PropTypes.string,
    download_url: PropTypes.string, /*eslint-disable */
    icons: PropTypes.object,
    name: PropTypes.string,
    slug: PropTypes.string,
    summary: PropTypes.string,
    pushState: PropTypes.func.isRequired,
  }

  handleGetDetails = (event) => {
    event.preventDefault();
    this.props.pushState(null, `addon/${this.props.slug}`);
  }

  handleDownload = (event) => {
    event.stopPropagation();
  }

  render() {
    const {download_url, icons, name, slug, summary} = this.props;
    const styles = require('./AddonResult.scss');

    return (
      <div className={styles.addonresult + ' clickable'} onClick={this.handleGetDetails}>
        <h2>{name}</h2>
        <div className={styles.meta}>
          <img width="64" height="64" className={styles.resultimage} src={icons[64]} />
          <p dangerouslySetInnerHTML={{__html: summary.replace(/[\r\n]/g, '<br/>')}}></p>
          <a onClick={this.handleDownload} href={download_url} className="btn btn-success pull-right">Add to Firefox</a>
          <a href={'/addon/' + slug} className="jsonlyib btn btn-primary pull-right">View Details</a>
        </div>
      </div>
    );
  }
}

{'fraction_non_alphanumeric': 0.16132368148914167, 'fraction_numerical': 0.005515339538090314, 'mean_word_length': 3.417047184170472, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6259284', 'n_tokens_mistral': 905, 'n_tokens_neox': 906, 'n_words': 188}