<commit_before><template>
  <v-app>
    <v-content>
      <v-container>
        <v-layout>
          <v-flex
            xs6
            offset-xs3
          >
            <div class="display-2">
              ISIC Forum Login
            </div>

            <template v-if="errorText !== null">
              <v-alert
                :value="true"
                type="error"
              >
                Error: {{ errorText }}
              </v-alert>
            </template>

            <template v-else-if="mustLogin">
              <div class="my-3 subheading">
                To login to the
                <a
                  href="https://forum.isic-archive.com/"
                  target="_blank"
                  rel="noreferrer noopener"
                >ISIC Forum</a>,
                use or create an account on the
                <a
                  href="https://www.isic-archive.com/"
                  target="_blank"
                  rel="noreferrer noopener"
                >ISIC Archive</a>:
              </div>
              <Authentication
                :register="true"
                :oauth="false"
              />
            </template>

            <template v-else>
              <div class="my-3 subheading">
                Loading...
              </div>
              <v-progress-circular indeterminate />
            </template>
          </v-flex>
        </v-layout>
      </v-container>
    </v-content>
  </v-app>
</template>

<script>
import Authentication from '@girder/components/src/components/Authentication';

export default {
  name: 'App',
  inject: ['girderRest'],
  components: {
    Authentication,
  },
  data() {
    return {
      mustLogin: false,
      errorText: null,
    };
  },
  created() {
    this.girderRest.$on('login', this.onLogin);

    this.tryRedirect();
  },
  methods: {
    onLogin() {
      this.tryRedirect();<commit_msg>Import girder-web-components from a more stable path<commit_after><template>
  <v-app>
    <v-content>
      <v-container>
        <v-layout>
          <v-flex
            xs6
            offset-xs3
          >
            <div class="display-2">
              ISIC Forum Login
            </div>

            <template v-if="errorText !== null">
              <v-alert
                :value="true"
                type="error"
              >
                Error: {{ errorText }}
              </v-alert>
            </template>

            <template v-else-if="mustLogin">
              <div class="my-3 subheading">
                To login to the
                <a
                  href="https://forum.isic-archive.com/"
                  target="_blank"
                  rel="noreferrer noopener"
                >ISIC Forum</a>,
                use or create an account on the
                <a
                  href="https://www.isic-archive.com/"
                  target="_blank"
                  rel="noreferrer noopener"
                >ISIC Archive</a>:
              </div>
              <Authentication
                :register="true"
                :oauth="false"
              />
            </template>

            <template v-else>
              <div class="my-3 subheading">
                Loading...
              </div>
              <v-progress-circular indeterminate />
            </template>
          </v-flex>
        </v-layout>
      </v-container>
    </v-content>
  </v-app>
</template>

<script>
import Authentication from '@girder/components/src/components';

export default {
  name: 'App',
  inject: ['girderRest'],
  components: {
    Authentication,
  },
  data() {
    return {
      mustLogin: false,
      errorText: null,
    };
  },
  created() {
    this.girderRest.$on('login', this.onLogin);

    this.tryRedirect();
  },
  methods: {
    onLogin() {
      this.tryRedirect();
{'fraction_non_alphanumeric': 0.12863825363825362, 'fraction_numerical': 0.002598752598752599, 'mean_word_length': 1.1502793296089386, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '4021340', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1043, 'n_words': 207}