<commit_before>import React, { PureComponent } from 'react'
import Mousetrap from 'mousetrap'
import { SHORTCUT_KEYS } from '../../constants/application_types'

function toggleContainerColors() {
  document.body.classList.toggle('highlightContainers')
}


function renderGrid(isVisible, type) {
  return (
    isVisible ? <div className={type} /> : <span />
  )
}

class DevTools extends PureComponent {

  componentWillMount() {
    this.state = {
      isHorizontalGridVisible: false,
      isVerticalGridVisible: false,<commit_msg>Add a helper function to see what updated<commit_after>import React, { PureComponent } from 'react'
import Mousetrap from 'mousetrap'
import { SHORTCUT_KEYS } from '../../constants/application_types'

export const whatUpdated = (thisProps, nextProps) =>
  Object.keys(nextProps).filter(prop => nextProps[prop] !== thisProps[prop])

function toggleContainerColors() {
  document.body.classList.toggle('highlightContainers')
}

function renderGrid(isVisible, type) {
  return (
    isVisible ? <div className={type} /> : <span />
  )
}

class DevTools extends PureComponent {

  componentWillMount() {
    this.state = {
      isHorizontalGridVisible: false,
      isVerticalGridVisible: false,
{'fraction_non_alphanumeric': 0.1166394779771615, 'fraction_numerical': 0.0, 'mean_word_length': 4.628440366972477, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2538262', 'n_tokens_mistral': 362, 'n_tokens_neox': 360, 'n_words': 82}