<commit_before>import React, { Component } from "react";

export default class ResultItem extends Component {
  componentDidUpdate() {
    if (this.props.selected) {
      React.findDOMNode(this).scrollIntoView(false);
    }
  }
  clickEvent(event) {
    this.props.onClick(this.props.result);
  }
  render() {
    let result = this.props.result;
    return (
      <li onClick={this.clickEvent.bind(this)} className={this.props.selected ? 'selected' : ''}>
        <img src={result.thumbnail} className="video-thumbnail" />
        <div className="details">
          <div className="name">
            {result.name}
          </div>
          <div className="author">
            {result.author}
          </div>
        </div>
      </li>
    );
  }
}
<commit_msg>Fix depicated call<commit_after>import React, { Component } from "react";
import ReactDOM from "react-dom";

export default class ResultItem extends Component {
  componentDidUpdate() {
    if (this.props.selected) {
      ReactDOM.findDOMNode(this).scrollIntoView(false);
    }
  }
  clickEvent(event) {
    this.props.onClick(this.props.result);
  }
  render() {
    let result = this.props.result;
    return (
      <li onClick={this.clickEvent.bind(this)} className={this.props.selected ? 'selected' : ''}>
        <img src={result.thumbnail} className="video-thumbnail" />
        <div className="details">
          <div className="name">
            {result.name}
          </div>
          <div className="author">
            {result.author}
          </div>
        </div>
      </li>
    );
  }
}

{'fraction_non_alphanumeric': 0.14720812182741116, 'fraction_numerical': 0.0, 'mean_word_length': 2.4282608695652175, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '7042679', 'n_tokens_mistral': 473, 'n_tokens_neox': 476, 'n_words': 88}