<commit_before>import React, { Component, PureComponent } from 'react';
import Checkbox from 'checkbox';
import Radio from 'radio';
import cx from 'classnames';

import helper from '../helper';

export default class Td extends (PureComponent || Component) {
  renderText(name, data) {
    return data[name];
  }

  renderContent() {
    const { column, data, pos } = this.props;
    const { name, bodyRender = this.renderText(name, data) } = column;
    const isReactComponent = helper.isReactComponent(bodyRender);

    if (typeof bodyRender === 'function') {
      const BodyRender = bodyRender;

      return isReactComponent
        ? <BodyRender data={data} name={name} pos={pos} />
        : bodyRender(data, pos, name);
    }
    return bodyRender;<commit_msg>reduce the fn call consume<commit_after>import React, { Component, PureComponent } from 'react';
import Checkbox from 'checkbox';
import Radio from 'radio';
import cx from 'classnames';

import helper from '../helper';

export default class Td extends (PureComponent || Component) {
  renderContent() {
    const { column, data, pos } = this.props;
    const { name, bodyRender = data[name] } = column;
    const isReactComponent = helper.isReactComponent(bodyRender);

    if (typeof bodyRender === 'function') {
      const BodyRender = bodyRender;

      return isReactComponent
        ? <BodyRender data={data} name={name} pos={pos} />
        : bodyRender(data, pos, name);
    }
    return bodyRender;
{'fraction_non_alphanumeric': 0.12067796610169491, 'fraction_numerical': 0.0, 'mean_word_length': 3.761290322580645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4316618', 'n_tokens_mistral': 415, 'n_tokens_neox': 412, 'n_words': 130}