<commit_before><template>
  <div
    class="theme-container"
    :class="pageClasses"
    @touchstart="onTouchStart"
    @touchend="onTouchEnd"
  >
    <Navbar v-if="shouldShowNavbar" @toggle-sidebar="toggleSidebar" />

    <div class="sidebar-mask" @click="toggleSidebar(false)"></div>

    <Sidebar :items="sidebarItems" @toggle-sidebar="toggleSidebar">
      <slot name="sidebar-bottom" slot="bottom" />
    </Sidebar>

    <Home v-if="$page.frontmatter.home" />

    <Ad />
    <Page v-if="!$page.frontmatter.home" :sidebar-items="sidebarItems">
      <slot name="page-top" slot="top" />
      <slot name="page-bottom" slot="bottom" />
    </Page>
  </div>
</template>

<script>
import Home from '@parent-theme/components/Home.vue';
import Navbar from '@parent-theme/components/Navbar.vue';
import Page from '@parent-theme/components/Page.vue';
import Sidebar from '@parent-theme/components/Sidebar.vue';
import Ad from '@theme/components/Ad.vue';
import { resolveSidebarItems } from '@parent-theme/util';

let isLoaded = false;

export default {
  components: { Home, Page, Sidebar, Navbar, Ad },<commit_msg>docs: load new ads on new page<commit_after><template>
  <div
    class="theme-container"
    :class="pageClasses"
    @touchstart="onTouchStart"
    @touchend="onTouchEnd"
  >
    <Navbar v-if="shouldShowNavbar" @toggle-sidebar="toggleSidebar" />

    <div class="sidebar-mask" @click="toggleSidebar(false)"></div>

    <Sidebar :items="sidebarItems" @toggle-sidebar="toggleSidebar">
      <slot name="sidebar-bottom" slot="bottom" />
    </Sidebar>

    <Home v-if="$page.frontmatter.home" />

    <Ad :key="$route.path" />
    <Page v-if="!$page.frontmatter.home" :sidebar-items="sidebarItems">
      <slot name="page-top" slot="top" />
      <slot name="page-bottom" slot="bottom" />
    </Page>
  </div>
</template>

<script>
import Home from '@parent-theme/components/Home.vue';
import Navbar from '@parent-theme/components/Navbar.vue';
import Page from '@parent-theme/components/Page.vue';
import Sidebar from '@parent-theme/components/Sidebar.vue';
import Ad from '@theme/components/Ad.vue';
import { resolveSidebarItems } from '@parent-theme/util';

let isLoaded = false;

export default {
  components: { Home, Page, Sidebar, Navbar, Ad },
{'fraction_non_alphanumeric': 0.17197170645446508, 'fraction_numerical': 0.0, 'mean_word_length': 4.275058275058275, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '3939314', 'n_tokens_mistral': 747, 'n_tokens_neox': 734, 'n_words': 147}