<commit_before>import React from 'react'
import ReactDOM from 'react-dom'

import DerivResults from './DerivResults'

describe('DerivResults', () => {
  it('renders without crashing', () => {
    const div = document.createElement('div')
    ReactDOM.render(
      <DerivResults
        classes={{ classes: 'classes' }}
        styles={{ styles: 'styles' }}
        results={{
          newWords: [
            {
              lexeme: 'nzi',
              definition: 'tree',
              suffix: {
                derivation: '-vo',
                gloss: 'person',
                definition:
                  'Creates a noun referring to a person associated with the base.'
              }
            },
            {
              lexeme: 'ilu',
              definition: 'flower',
              suffix: {
                derivation: '-lu',
                gloss: 'place',
                definition: 'Creates a noun denoting the location of the base.'
              }
            },
            {
              lexeme: 'ru',
              definition: 'person',
              prefix: {
                derivation: 'ña-',
                gloss: 'abstract',
                definition: 'Creates an abstract noun.'
              }
            },
            {
              lexeme: 'kwərə',
              definition: 'goat'
            },
            {
              lexeme: 'lɛtsi',
              definition: 'sword',
              prefix: {
                derivation: 'k-',
                gloss: 'collective',
                definition: 'Creates a noun referring to a collection of bases.'
              },
              suffix: {
                derivation: '-sa',
                gloss: 'collective',
                definition: 'Creates a noun referring to a collection of bases.'
              }
            },
            {
              lexeme: 'ru',
              definition: 'person',
              error: 'The affix ksa is missing a hyphen.'
            }
          ],
          possible: 25
        }}
      />,
      div
    )
    ReactDOM.unmountComponentAtNode(div)
  })
})<commit_msg>Fix data passed to DerivResults test<commit_after>import React from 'react'
import ReactDOM from 'react-dom'

import DerivResults from './DerivResults'

describe('DerivResults', () => {
  it('renders without crashing', () => {
    const div = document.createElement('div')
    ReactDOM.render(
      <DerivResults
        classes={{ classes: 'classes' }}
        styles={{ styles: 'styles' }}
        results={{
          newWords: [
            {
              lexeme: {
                lexeme: 'nzi',
                definition: 'tree'
              },
              suffix: {
                derivation: '-vo',
                gloss: 'person',
                definition:
                  'Creates a noun referring to a person associated with the base.'
              }
            },
            {
              lexeme: {
                lexeme: 'ilu',
                definition: 'flower'
              },
              suffix: {
                derivation: '-lu',
                gloss: 'place',
                definition: 'Creates a noun denoting the location of the base.'
              }
            },
            {
              lexeme: {
                lexeme: 'ru',
                definition: 'person'
              },
              prefix: {
                derivation: 'ña-',
                gloss: 'abstract',
                definition: 'Creates an abstract noun.'
              }
            },
            {
              lexeme: {
                lexeme: 'kwərə',
                definition: 'goat'
              },
              error: 'The affix ksa is missing a hyphen.'
            },
            {
              lexeme: {
                lexeme: 'lɛtsi',
                definition: 'sword'
              },
              prefix: {
                derivation: 'k-',
                gloss: 'collective',
                definition: 'Creates a noun referring to a collection of bases.'
              },
              suffix: {
                derivation: '-sa',
                gloss: 'collective',
                definition: 'Creates a noun referring to a collection of bases.'
              }
            }
          ],
          possible: 25
        }}
      />,
      div
    )
    ReactDOM.unmountComponentAtNode(div)
  })
})
{'fraction_non_alphanumeric': 0.10423825887743414, 'fraction_numerical': 0.0009163802978235968, 'mean_word_length': 1.0222325150532654, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2962133', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1059, 'n_words': 280}