<commit_before>import React from 'react'
import data from '../../data'

const SHEET_SIZE = 2624
const EMOJI_SIZE = 64

export default class Emoji extends React.Component {
  componentWillMount() {
    this.emoji = data.emojis[this.props.emoji]
  }

  shouldComponentUpdate(props) {
    if (props.size != this.props.size || props.sheetURL != this.props.sheetURL) {
      return true
    }

    return false
  }

  getSheetSize() {
    var { size } = this.props,
        sheetSize = SHEET_SIZE * size / EMOJI_SIZE

    return `${sheetSize}px ${sheetSize}px`
  }
<commit_msg>:lipstick:<commit_after>import React from 'react'
import data from '../../data'

const SHEET_SIZE = 2624
const EMOJI_SIZE = 64

export default class Emoji extends React.Component {
  componentWillMount() {
    this.emoji = data.emojis[this.props.emoji]
  }

  shouldComponentUpdate(nextProps) {
    return (
      nextProps.size != this.props.size ||
      nextProps.sheetURL != this.props.sheetURL
    )
  }

  getSheetSize() {
    var { size } = this.props,
        sheetSize = SHEET_SIZE * size / EMOJI_SIZE

    return `${sheetSize}px ${sheetSize}px`
  }

{'fraction_non_alphanumeric': 0.12024756852343059, 'fraction_numerical': 0.010610079575596816, 'mean_word_length': 3.0719424460431655, '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': '1646098', 'n_tokens_mistral': 396, 'n_tokens_neox': 379, 'n_words': 84}