<commit_before><article class="chapter">
  <h1>{{model.name}} {{#if model.access}}<span class="access">{{model.access}}</span>{{/if}}</h1>

  <p class="attributes">
    {{#if model.extends}}
      <div class="attribute">
        <span class="attribute-label">Extends:</span>
        <span class="attribute-value">{{#link-to 'project-version.class' model.projectVersion.version model.extends}}{{model.extends}}{{/link-to}}</span>
      </div>
    {{/if}}
    {{#if model.uses}}
      <div class="attribute">
        <span class="attribute-label">Uses:</span>
        <span class="attribute-value">
          {{#each model.uses as |parentClass idx|}}
            {{#unless (eq idx 0)}}<span class="comma">,</span>{{/unless}}
            {{#link-to 'project-version.class' model.projectVersion.version parentClass}}{{parentClass}}{{/link-to}}
          {{/each}}
        </span>
      </div>
    {{/if}}
    {{#if model.file}}
      <div class="attribute">
        <span class="attribute-label">Defined in:</span>
        <span class="attribute-value">
          <a href={{githubLinkTarget}}>{{model.file}}:{{model.line}}</a>
        </span>
      </div>
    {{/if}}
    {{#if model.module}}
      <div class="attribute">
        <span class="attribute-label">Module:</span>
        <span class="attribute-value">{{#link-to 'project-version.module' model.projectVersion.version model.module}}{{model.module}}{{/link-to}}</span>
      </div>
    {{/if}}
  </p>

  <p>{{{model.description}}}</p>

  {{#if (or model.methods model.properties model.events)}}
    <div class="tabbed-layout">
      <ul class="tabbed-layout__menu">
        {{#link-to (concat parentName ".index")
                   model.project.id
                   model.projectVersion.version
                   model.name
                   (query-params anchor="")
                   tagName="li"
                   class="tabbed-layout__menu__item"
                   activeClass="tabbed-layout__menu__item_selected"
                   current-when=(concat parentName ".index")
        }}
          <span>Index</span>
        {{/link-to}}
        {{#if model.methods}}
          {{#link-to (concat parentName ".methods")
                     model.project.id
                     model.projectVersion.version
                     model.name
                     (query-params anchor="")
                     tagName="li"
                     class="tabbed-layout__menu__item"
                     activeClass="tabbed-layout__menu__item_selected"
          }}
            <span>Methods</span>
          {{/link-to}}
        {{/if}}
        {{#if model.properties}}
          {{#link-to (concat parentName ".properties")
                     model.project.id
                     model.projectVersion.version
                     model.name
                     (query-params anchor="")
                     tagName="li"
                     class="tabbed-layout__menu__item"
                     activeClass="tabbed-layout__menu__item_selected"
          }}
            <span>Properties</span>
          {{/link-to}}
        {{/if}}
        {{#if model.events}}
          {{#link-to (concat parentName ".events")
                     model.project.id
                     model.projectVersion.version
                     model.name
                     (query-params anchor="")
                     tagName="li"
                     class="tabbed-layout__menu__item"
                     activeClass="tabbed-layout__menu__item_selected"
          }}
            <span>Events</span>
          {{/link-to}}
        {{/if}}
      </ul>
      <section>
        Show:
        <label class="access-checkbox">
          <input id="inherited-toggle"
                 type="checkbox"
                 checked={{filterData.showInherited}}
                 onchange={{action "updateFilter" "showInherited"}}>
          Inherited
        </label>
        <label class="access-checkbox">
          <input id="protected-toggle"
                 type="checkbox"
                 checked={{filterData.showProtected}}
                 onchange={{action "updateFilter" "showProtected"}}>
          Protected
        </label>
        <label class="access-checkbox">
          <input id="private-toggle"
                 type="checkbox"
                 checked={{filterData.showPrivate}}
                 onchange={{action "updateFilter" "showPrivate"}}>
          Private
        </label><commit_msg>Setting current-when keeps route active<commit_after><article class="chapter">
  <h1>{{model.name}} {{#if model.access}}<span class="access">{{model.access}}</span>{{/if}}</h1>

  <p class="attributes">
    {{#if model.extends}}
      <div class="attribute">
        <span class="attribute-label">Extends:</span>
        <span class="attribute-value">{{#link-to 'project-version.class' model.projectVersion.version model.extends}}{{model.extends}}{{/link-to}}</span>
      </div>
    {{/if}}
    {{#if model.uses}}
      <div class="attribute">
        <span class="attribute-label">Uses:</span>
        <span class="attribute-value">
          {{#each model.uses as |parentClass idx|}}
            {{#unless (eq idx 0)}}<span class="comma">,</span>{{/unless}}
            {{#link-to 'project-version.class' model.projectVersion.version parentClass}}{{parentClass}}{{/link-to}}
          {{/each}}
        </span>
      </div>
    {{/if}}
    {{#if model.file}}
      <div class="attribute">
        <span class="attribute-label">Defined in:</span>
        <span class="attribute-value">
          <a href={{githubLinkTarget}}>{{model.file}}:{{model.line}}</a>
        </span>
      </div>
    {{/if}}
    {{#if model.module}}
      <div class="attribute">
        <span class="attribute-label">Module:</span>
        <span class="attribute-value">{{#link-to 'project-version.module' model.projectVersion.version model.module}}{{model.module}}{{/link-to}}</span>
      </div>
    {{/if}}
  </p>

  <p>{{{model.description}}}</p>

  {{#if (or model.methods model.properties model.events)}}
    <div class="tabbed-layout">
      <ul class="tabbed-layout__menu">
        {{#link-to (concat parentName ".index")
           model.project.id
           model.projectVersion.version
           model.name
           (query-params anchor="")
           tagName="li"
           class="tabbed-layout__menu__item"
           activeClass="tabbed-layout__menu__item_selected"
           current-when=(concat parentName ".index")
        }}
          <span>Index</span>
        {{/link-to}}
        {{#if model.methods}}
          {{#link-to (concat parentName ".methods")
             model.project.id
             model.projectVersion.version
             model.name
             (query-params anchor="")
             tagName="li"
             class="tabbed-layout__menu__item"
             activeClass="tabbed-layout__menu__item_selected"
             current-when=(concat parentName ".methods")
          }}
            <span>Methods</span>
          {{/link-to}}
        {{/if}}
        {{#if model.properties}}
          {{#link-to (concat parentName ".properties")
             model.project.id
             model.projectVersion.version
             model.name
             (query-params anchor="")
             tagName="li"
             class="tabbed-layout__menu__item"
             activeClass="tabbed-layout__menu__item_selected"
             current-when=(concat parentName ".properties")
          }}
            <span>Properties</span>
          {{/link-to}}
        {{/if}}
        {{#if model.events}}
          {{#link-to (concat parentName ".events")
             model.project.id
             model.projectVersion.version
             model.name
             (query-params anchor="")
             tagName="li"
             class="tabbed-layout__menu__item"
             activeClass="tabbed-layout__menu__item_selected"
             current-when=(concat parentName ".events")
          }}
            <span>Events</span>
          {{/link-to}}
        {{/if}}
      </ul>
      <section>
        Show:
        <label class="access-checkbox">
          <input id="inherited-toggle"
                 type="checkbox"
                 checked={{filterData.showInherited}}
                 onchange={{action "updateFilter" "showInherited"}}>
          Inherited
        </label>
        <label class="access-checkbox">
          <input id="protected-toggle"
                 type="checkbox"
                 checked={{filterData.showProtected}}
                 onchange={{action "updateFilter" "showProtected"}}>
          Protected
        </label>
        <label class="access-checkbox">
          <input id="private-toggle"
                 type="checkbox"
                 checked={{filterData.showPrivate}}
                 onchange={{action "updateFilter" "showPrivate"}}>
          Private
        </label>
{'fraction_non_alphanumeric': 0.1564510667118185, 'fraction_numerical': 0.0006772773450728074, 'mean_word_length': 1.8180661577608141, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, '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': '1773232', 'n_tokens_mistral': 2443, 'n_tokens_neox': 2393, 'n_words': 390}