<commit_before>import {StorageType} from "../StorageType";
import {StorageType} from "../StorageType";
<template>
    <card-nav>
        <tab label="Create" :active="true">
            <dataset-form @click="storeCreateDataset()" :peptides="createPeptides" :name="createName" :save="createSave" :loading="pendingStore"></dataset-form>
            <div class="search-buttons-centered">
                <simple-button label="Add to selected datasets" glyphicon="plus"></simple-button>
            </div>
        </tab>
        <tab label="Sample data">
        </tab>
        <tab label="Pride">
            <h3>Load data from the PRIDE archive</h3>
            <p>You can easily load data from the <a href="http://www.ebi.ac.uk/pride/" target="_blank">PRIDE</a> data repository. Simply enter an assay id (e.g. 8500) in the field below and click the 'Load PRIDE Dataset' button. The corresponding dataset will then be fetched using the PRIDE API and loaded into the search form on the left.</p>
            <validated-textfield v-model="prideAssay" label="Assay id" placeholder="e.g. 8500"></validated-textfield>
            <div class="search-buttons-centered">
                <simple-button glyphicon="cloud-download" label="Fetch PRIDE dataset" @click="fetchPrideAssay()"></simple-button>
            </div>
            <dataset-form :peptides="pridePeptides" :name="prideName" :save="prideSave" :loading="prideLoading || pendingStore"></dataset-form>
            <p>{{ prideLoading }}</p>
            <div class="search-buttons-centered">
                <simple-button v-if="!prideLoading" @click="storePrideDataset()" label="Add to selected datasets" glyphicon="plus"></simple-button>
                <determinate-striped-progress-bar v-if="prideLoading" :progress="prideProgress"></determinate-striped-progress-bar>
            </div>
        </tab>
        <tab label="Local data">
            <list placeholder="There are currently no datasets present in your browser's local storage.">
                <div class="list-item--two-lines" v-for="dataset of storedDatasets" style="cursor: pointer;" @click="selectDataset(dataset)">
                    <span class="list-item-primary-action">
                        <span class="glyphicon glyphicon-plus select-dataset-button"></span>
                    </span>
                    <span class="list-item-primary-content">
                        {{ dataset.getName() }}
                        <span class="list-item-date">
                            {{ dataset.getDateFormatted() }}<commit_msg>More work on display pending progress in LoadDatasetsCard<commit_after>import {StorageType} from "../StorageType";
import {StorageType} from "../StorageType";
<template>
    <card-nav>
        <tab label="Create" :active="true">
            <dataset-form @click="storeCreateDataset()" :peptides="createPeptides" :name="createName" :save="createSave" :loading="pendingStore"></dataset-form>
            <div class="search-buttons-centered">
                <simple-button label="Add to selected datasets" glyphicon="plus"></simple-button>
            </div>
        </tab>
        <tab label="Sample data">
        </tab>
        <tab label="Pride">
            <h3>Load data from the PRIDE archive</h3>
            <p>You can easily load data from the <a href="http://www.ebi.ac.uk/pride/" target="_blank">PRIDE</a> data repository. Simply enter an assay id (e.g. 8500) in the field below and click the 'Load PRIDE Dataset' button. The corresponding dataset will then be fetched using the PRIDE API and loaded into the search form on the left.</p>
            <validated-textfield v-model="prideAssay" label="Assay id" placeholder="e.g. 8500" :disabled="prideLoading || pendingStore"></validated-textfield>
            <div class="search-buttons-centered">
                <simple-button v-if="!prideLoading" glyphicon="cloud-download" label="Fetch PRIDE dataset" @click="fetchPrideAssay()"></simple-button>
                <determinate-striped-progress-bar v-if="prideLoading" :progress="prideProgress"></determinate-striped-progress-bar>
            </div>
            <dataset-form :peptides="pridePeptides" :name="prideName" :save="prideSave" :loading="prideLoading || pendingStore"></dataset-form>
            <p>{{ prideLoading }}</p>
            <div class="search-buttons-centered">
                <simple-button @click="storePrideDataset()" label="Add to selected datasets" glyphicon="plus"></simple-button>
            </div>
        </tab>
        <tab label="Local data">
            <list placeholder="There are currently no datasets present in your browser's local storage.">
                <div class="list-item--two-lines" v-for="dataset of storedDatasets" style="cursor: pointer;" @click="selectDataset(dataset)">
                    <span class="list-item-primary-action">
                        <span class="glyphicon glyphicon-plus select-dataset-button"></span>
                    </span>
                    <span class="list-item-primary-content">
                        {{ dataset.getName() }}
                        <span class="list-item-date">
                            {{ dataset.getDateFormatted() }}
{'fraction_non_alphanumeric': 0.14183850452881094, 'fraction_numerical': 0.003854307188282906, 'mean_word_length': 2.6116910229645094, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '821525', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1367, 'n_words': 341}