<commit_before>import React from 'react';
import { Link } from '@curi/react';

const Sectional = ({ title, id, children, tag: Tag, type = 'section' }) => (
  <div className={type}>
    <Tag id={id}>
      {title}
      <Link className="header-link" details={{ hash: id }}>
        #
      </Link>
    </Tag>
    {children}
  </div>
);

export const Section = ({ tag = 'h2', ...rest }) => (
  <Sectional type="section" tag={tag} {...rest} />
);

export const Subsection = ({ tag = 'h3', ...rest }) => (
  <Sectional type="subsection" tag={tag} {...rest} />
);<commit_msg>(docs) Move id to section wrapper [ci skip]<commit_after>import React from 'react';
import { Link } from '@curi/react';

const Sectional = ({ title, id, children, tag: Tag, type = 'section' }) => (
  <div className={type} id={id}>
    <Tag>
      {title}
      <Link className="header-link" details={{ hash: id }}>
        #
      </Link>
    </Tag>
    {children}
  </div>
);

export const Section = ({ tag = 'h2', ...rest }) => (
  <Sectional type="section" tag={tag} {...rest} />
);

export const Subsection = ({ tag = 'h3', ...rest }) => (
  <Sectional type="subsection" tag={tag} {...rest} />
);
{'fraction_non_alphanumeric': 0.22393162393162394, 'fraction_numerical': 0.003418803418803419, 'mean_word_length': 2.9295302013422817, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, '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': '5996771', 'n_tokens_mistral': 393, 'n_tokens_neox': 396, 'n_words': 109}