<commit_before>import React from 'react';
import PropTypes from 'prop-types';

import { getHTMLStringFromInlinePropertiesAndText } from 'lib/content-editable/inlineProperties';

import ContentEditableContainer from 'lib/content-editable/ContentEditableContainer';

export default function Title(props) {
  if (props.editable) {
    const TitleTag = `h${props.headingLevel}`;

    return (
      <TitleTag>
        <ContentEditableContainer contentItem={props.contentItem} />
      </TitleTag>
    );
  }
  return (
    <h1
      dangerouslySetInnerHTML={{
        __html: getHTMLStringFromInlinePropertiesAndText(props.contentItem.inlineProperties, props.contentItem.text),
      }}
    />
  );<commit_msg>Fixed bug in Title contentitem rendering.<commit_after>import React from 'react';
import PropTypes from 'prop-types';

import { getHTMLStringFromInlinePropertiesAndText } from 'lib/content-editable/inlineProperties';

import ContentEditableContainer from 'lib/content-editable/ContentEditableContainer';

export default function Title(props) {
  const TitleTag = `h${props.headingLevel}`;

  if (props.editable) {
    return (
      <TitleTag>
        <ContentEditableContainer contentItem={props.contentItem} />
      </TitleTag>
    );
  } else {
    return (
      <TitleTag
        dangerouslySetInnerHTML={{
          __html: getHTMLStringFromInlinePropertiesAndText(props.contentItem.inlineProperties, props.contentItem.text),
        }}
      />
    );
  }
{'fraction_non_alphanumeric': 0.10415248468345814, 'fraction_numerical': 0.0006807351940095302, 'mean_word_length': 3.9328859060402683, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5614694', 'n_tokens_mistral': 408, 'n_tokens_neox': 415, 'n_words': 78}