<commit_before>###* @jsx React.DOM ###

window.CwbResultsTable = React.createClass
  propTypes:
    resultPage: React.PropTypes.array
    corpus: React.PropTypes.object.isRequired
    rowNoShowingPlayer: React.PropTypes.number

  componentDidUpdate: (prevProps) ->
    # Create tooltips after a new result page is displayed
    if @props.resultPage and @props.resultPage[0] isnt prevProps.resultPage?[0]
      $('[data-ot]', @getDOMNode()).forEach (token, index) ->
        new Opentip token, $(token).data('ot'),
          style: 'dark'<commit_msg>jQuery collections have 'each', not 'forEach'<commit_after>###* @jsx React.DOM ###

window.CwbResultsTable = React.createClass
  propTypes:
    resultPage: React.PropTypes.array
    corpus: React.PropTypes.object.isRequired
    rowNoShowingPlayer: React.PropTypes.number

  componentDidUpdate: (prevProps) ->
    # Create tooltips after a new result page is displayed
    if @props.resultPage and @props.resultPage[0] isnt prevProps.resultPage?[0]
      $('[data-ot]', @getDOMNode()).each (index, token) ->
        new Opentip token, $(token).data('ot'),
          style: 'dark'
{'fraction_non_alphanumeric': 0.13398402839396628, 'fraction_numerical': 0.00354924578527063, 'mean_word_length': 3.9473684210526314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6545801', 'n_tokens_mistral': 354, 'n_tokens_neox': 353, 'n_words': 82}