<commit_before><template>

  <core-base v-if="navBarNeeded" :topLevelPageName="topLevelPageName">
    <component
      slot="content"
      class="user page"
      :is="currentPage"
    />
  </core-base>

  <component
    v-else
    slot="content"
    class="user page"
    :is="currentPage"
    />

</template>


<script>

  const store = require('../state/store');
  const PageNames = require('../state/constants').PageNames;
  const TopLevelPageNames = require('kolibri.coreVue.vuex.constants').TopLevelPageNames;

  module.exports = {
    name: 'User-Plugin',
    components: {
      'core-base': require('kolibri.coreVue.components.coreBase'),
      'sign-in-page': require('./sign-in-page'),
      'sign-up-page': require('./sign-up-page'),
      'profile-page': require('./profile-page'),
    },
    computed: {
      topLevelPageName: () => TopLevelPageNames.USER,
      currentPage() {
        if (this.pageName === PageNames.SIGN_IN) {
          return 'sign-in-page';
        }
        if (this.pageName === PageNames.SIGN_UP) {
          return 'sign-up-page';
        }
        if (this.pageName === PageNames.PROFILE) {
          return 'profile-page';
        }
        return null;
      },
      navBarNeeded() {
        if (this.pageName === PageNames.SIGN_IN) {
          return false;
        }
        if (this.pageName === PageNames.SIGN_UP) {<commit_msg>Add app bar title for profile to user page.<commit_after><template>

  <core-base v-if="navBarNeeded" :topLevelPageName="topLevelPageName" :appBarTitle="appBarTitle">
    <component
      slot="content"
      class="user page"
      :is="currentPage"
    />
  </core-base>

  <component
    v-else
    slot="content"
    class="user page"
    :is="currentPage"
    />

</template>


<script>

  const store = require('../state/store');
  const PageNames = require('../state/constants').PageNames;
  const TopLevelPageNames = require('kolibri.coreVue.vuex.constants').TopLevelPageNames;

  module.exports = {
    $trNameSpace: 'user-root',
    $trs: {
      userProfileTitle: 'Profile',
    },
    name: 'User-Plugin',
    components: {
      'core-base': require('kolibri.coreVue.components.coreBase'),
      'sign-in-page': require('./sign-in-page'),
      'sign-up-page': require('./sign-up-page'),
      'profile-page': require('./profile-page'),
    },
    computed: {
      appBarTitle() {
        if (this.pageName === PageNames.PROFILE) {
          return this.$tr('userProfileTitle');
        }
        return null;
      },
      topLevelPageName: () => TopLevelPageNames.USER,
      currentPage() {
        if (this.pageName === PageNames.SIGN_IN) {
          return 'sign-in-page';
        }
        if (this.pageName === PageNames.SIGN_UP) {
          return 'sign-up-page';
        }
        if (this.pageName === PageNames.PROFILE) {
          return 'profile-page';
        }
        return null;
      },
      navBarNeeded() {
        if (this.pageName === PageNames.SIGN_IN) {
          return false;
        }
        if (this.pageName === PageNames.SIGN_UP) {
{'fraction_non_alphanumeric': 0.16034031413612565, 'fraction_numerical': 0.0, 'mean_word_length': 2.348302300109529, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '3424888', 'n_tokens_mistral': 974, 'n_tokens_neox': 981, 'n_words': 160}