<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<!--  This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license.  -->

<concept id="xhtmltocjs" xml:lang="en-US">
  <title>TocJS processing</title>
  <shortdesc>The <option>tocjs</option> transformation was originally created as a plug-in that was distributed outside
    of the toolkit, but it now ships bundled in the default packages. This HTML5-based output type creates a
    JavaScript-based frameset with TOC entries that expand and collapse.</shortdesc>
  <conbody>
    <section>
      <p>The following Ant targets control most of the TocJS processing:</p>
      <p>
        <dl>
          <dlentry>
            <dt><codeph>tocjsInit</codeph></dt>
            <dd>Sets up default properties. This target detects whether builds have already specified a name for
              JavaScript control file; if not, the default name <filepath>toctree.js</filepath> is used.</dd>
          </dlentry>
          <dlentry>
            <dt><codeph>map2tocjs</codeph></dt>
            <dd>Calls the <codeph>dita.map.tocjs</codeph> target, which generates the contents frame for TocJS
              output.</dd>
          </dlentry>
          <dlentry>
            <dt><codeph>tocjsDefaultOutput</codeph></dt>
            <dd>Ensures that the HTML5 processing module is run. If scripts are missing required information, such as a
              name for the default frameset, this target copies default style and control files. This target was added
              to DITA-OT in version 1.5.4; earlier versions of the TocJS transformation created only the JavaScript
              control file by default.</dd>
          </dlentry>
        </dl>
      </p>
    </section>
  </conbody>
</concept>
<commit_msg>Restore XHTML references in TocJS<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<!--  This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license.  -->

<concept id="xhtmltocjs" xml:lang="en-US">
  <title>TocJS processing</title>
  <shortdesc>The <option>tocjs</option> transformation was originally created as a plug-in that was distributed outside
    of the toolkit, but it is now bundled in the default distribution. It generates a JavaScript-based frameset for
    XHTML output with Table of Contents entries that expand and collapse.</shortdesc>
  <conbody>
    <section>
      <p>The following Ant targets control most of the TocJS processing:</p>
      <p>
        <dl>
          <dlentry>
            <dt><codeph>tocjsInit</codeph></dt>
            <dd>Sets up default properties. This target detects whether builds have already specified a name for
              JavaScript control file; if not, the default name <filepath>toctree.js</filepath> is used.</dd>
          </dlentry>
          <dlentry>
            <dt><codeph>map2tocjs</codeph></dt>
            <dd>Calls the <codeph>dita.map.tocjs</codeph> target, which generates the contents frame for TocJS
              output.</dd>
          </dlentry>
          <dlentry>
            <dt><codeph>tocjsDefaultOutput</codeph></dt>
            <dd>Ensures that the XHTML processing module is run. If scripts are missing required information, such as a
              name for the default frameset, this target copies default style and control files. This target was added
              to DITA-OT in version 1.5.4; earlier versions of the TocJS transformation created only the JavaScript
              control file by default.</dd>
          </dlentry>
        </dl>
      </p>
    </section>
  </conbody>
</concept>

{'fraction_non_alphanumeric': 0.09857293868921777, 'fraction_numerical': 0.004228329809725159, 'mean_word_length': 2.660541586073501, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 2, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5363708', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1021, 'n_words': 390}