<commit_before>import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Editor, Html } from 'slate'
import plugins, { schema, serializers } from './plugins'
import prettify from 'prettify-html'

const HtmlSerializer = new Html({ rules: serializers })

export default class WikiEditor extends Component {
  constructor(props) {
    super(props)

    this.state = {
      state: HtmlSerializer.deserialize(props.html || props.defaultHtml),
    }
  }

  componentDidMount() {
    if (this.props.autoFocus) this.editor.focus()
  }
<commit_msg>Exporting prettify function<commit_after>import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Editor, Html } from 'slate'
import plugins, { schema, serializers } from './plugins'
import prettify from 'prettify-html'

const HtmlSerializer = new Html({ rules: serializers })

export { prettify }

export default class WikiEditor extends Component {
  constructor(props) {
    super(props)

    this.state = {
      state: HtmlSerializer.deserialize(props.html || props.defaultHtml),
    }
  }

  componentDidMount() {
    if (this.props.autoFocus) this.editor.focus()
  }

{'fraction_non_alphanumeric': 0.11291702309666382, 'fraction_numerical': 0.0, 'mean_word_length': 4.176991150442478, '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': '6498709', 'n_tokens_mistral': 352, 'n_tokens_neox': 349, 'n_words': 96}