<commit_before>import React from 'react'
import { connect } from 'react-redux'

class EventDetail extends React.Component {

  static propTypes = {
    event: React.PropTypes.object,
  }

  renderEvent(event) {
    return (
      <div style={{ padding: 20 }}>
        <h2>{event.title}</h2>
        <img src={event.coverUrl} style={{ width: '100%' }} />
      </div>
    )
  }

  renderEmpty() {
    return null
  }

  render() {
    return this.props.event
      ? this.renderEvent(this.props.event)
      : this.renderEmpty()<commit_msg>Remove unnecessary function<commit_after>import React from 'react'
import { connect } from 'react-redux'

class EventDetail extends React.Component {

  static propTypes = {
    event: React.PropTypes.object,
  }

  renderEvent(event) {
    return (
      <div style={{ padding: 20 }}>
        <h2>{event.title}</h2>
        <img src={event.coverUrl} style={{ width: '100%' }} />
      </div>
    )
  }

  render() {
    return this.props.event
      ? this.renderEvent(this.props.event)
      : null
{'fraction_non_alphanumeric': 0.1453320500481232, 'fraction_numerical': 0.013474494706448507, 'mean_word_length': 2.6619718309859155, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6069642', 'n_tokens_mistral': 347, 'n_tokens_neox': 335, 'n_words': 72}