<commit_before>// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { MarkdownDocGeneratorOptionsManager } from './optionsmanager';

import { INotebookHeading, INotebookHeadingTypes } from '../shared';

import * as React from 'react';

export function markdownDocItemRenderer(
  options: MarkdownDocGeneratorOptionsManager,
  item: INotebookHeading
) {
  const levelsSizes: { [level: number]: string } = {
    1: '18.74',
    2: '16.02',
    3: '13.69',
    4: '12',
    5: '11',
    6: '10'
  };
  let fontSize = '9px';
  let numbering = item.numbering && options.numbering ? item.numbering : '';
  if (item.type === INotebookHeadingTypes.header) {
    fontSize = levelsSizes[item.level] + 'px';
  }
  let jsx = <span style={{ fontSize }}> {numbering + item.text}</span>;
  return jsx;
}<commit_msg>removed unnecessary code<commit_after>// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { MarkdownDocGeneratorOptionsManager } from './optionsmanager';

import { INotebookHeading } from '../shared';

import * as React from 'react';

export function markdownDocItemRenderer(
  options: MarkdownDocGeneratorOptionsManager,
  item: INotebookHeading
) {
  const levelsSizes: { [level: number]: string } = {
    1: '18.74',
    2: '16.02',
    3: '13.69',
    4: '12',
    5: '11',
    6: '10'
  };
  let fontSize = '9px';
  let numbering = item.numbering && options.numbering ? item.numbering : '';
  fontSize = levelsSizes[item.level] + 'px';
  let jsx = <span style={{ fontSize }}> {numbering + item.text}</span>;
  return jsx;
}
{'fraction_non_alphanumeric': 0.1445929526123937, 'fraction_numerical': 0.030376670716889428, 'mean_word_length': 3.8157894736842106, 'pattern_counts': {'":': 0, '<': 7, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6125725', 'n_tokens_mistral': 557, 'n_tokens_neox': 540, 'n_words': 150}