<commit_before>import PropTypes from 'prop-types'
import React from 'react'
import Clone from 'clone'
import classNames from 'classnames'

import TextDrawer from './drawers/text.jsx'
import TextEditor from './editors/text.jsx'

class ObjectCell extends React.Component {
  static propTypes = {
    column: PropTypes.object,
    objectId: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.number,
    ]),
    onMouseDownCell: PropTypes.func,
    disabled: PropTypes.bool,
    beginEdit: PropTypes.func,
    selected: PropTypes.bool,
    copying: PropTypes.bool,
    editing: PropTypes.bool,
    value: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.number,
      PropTypes.object,
    ]),
    updateField: PropTypes.func,
    abortField: PropTypes.func,
    height: PropTypes.number,
    editReplace: PropTypes.string,
    cellError: PropTypes.func,
    editorContext: PropTypes.func,
    drawerContext: PropTypes.func,
  }

  shouldComponentUpdate(nextProps, nextState) {
    let isShallowDifferent = function(objectA, objectB, exemptions) {
      for (let key in objectA) {
        if (exemptions && key in exemptions) {
          continue
        }
        if (objectB[key] !== objectA[key]) {
          // console.log('key', key, 'does not equal')
          return true
        }
      }<commit_msg>Fix up another proptype<commit_after>import PropTypes from 'prop-types'
import React from 'react'
import Clone from 'clone'
import classNames from 'classnames'

import TextDrawer from './drawers/text.jsx'
import TextEditor from './editors/text.jsx'

class ObjectCell extends React.Component {
  static propTypes = {
    column: PropTypes.object,
    objectId: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.number,
    ]),
    onMouseDownCell: PropTypes.func,
    disabled: PropTypes.bool,
    beginEdit: PropTypes.func,
    selected: PropTypes.bool,
    copying: PropTypes.bool,
    editing: PropTypes.bool,
    value: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.number,
      PropTypes.object,
    ]),
    updateField: PropTypes.func,
    abortField: PropTypes.func,
    height: PropTypes.number,
    editReplace: PropTypes.string,
    cellError: PropTypes.func,
    editorContext: PropTypes.object,
    drawerContext: PropTypes.object,
  }

  shouldComponentUpdate(nextProps, nextState) {
    let isShallowDifferent = function(objectA, objectB, exemptions) {
      for (let key in objectA) {
        if (exemptions && key in exemptions) {
          continue
        }
        if (objectB[key] !== objectA[key]) {
          // console.log('key', key, 'does not equal')
          return true
        }
      }
{'fraction_non_alphanumeric': 0.10254491017964072, 'fraction_numerical': 0.0, 'mean_word_length': 2.9658753709198815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6845187', 'n_tokens_mistral': 766, 'n_tokens_neox': 802, 'n_words': 193}