<commit_before><div layout="column">

    <!-- Top buttons -->
    <div layout="row">
        <p>
            <md-button aria-label="Back to container list" class="md-raised bb-pin-button md-primary"
                       ui-sref="fileSystemState()">
                <md-icon md-font-set="material-icons">
                    arrow_back
                </md-icon>
                Back to container list
            </md-button>

            <md-button aria-label="Identify content types"
                       ui-sref="tasksState({container: container.name, task: 'identify_content'})">
                <md-icon md-font-set="material-icons">
                    flag
                </md-icon>
                Identify content types
            </md-button>

            <md-button aria-label="Extract metadata"
                       ui-sref="tasksState({container: container.name, task: 'extract_metadata'})">
                <md-icon md-font-set="material-icons">
                    format_indent_increase
                </md-icon>
                Extract metadata
            </md-button>

            <md-button aria-label="Replicate metadata to warehouse"
                       ui-sref="tasksState({container: container.name, task: 'replicate_metadata'})">
                <md-icon md-font-set="material-icons">
                    content_copy
                </md-icon>
                Replicate metadata to warehouse
            </md-button>

            <md-button aria-label="Dispose old objects"
                       ui-sref="tasksState({container: container.name, task: 'dispose'})">
                <md-icon md-font-set="material-icons">
                    delete_sweep
                </md-icon>
                Dispose old objects
            </md-button>
        </p>
    </div>


    <div layout="row">
        <div flex="" flex ng-if="!container.isMeta">
            <div class="md-whiteframe-4dp bb-container">
                <md-toolbar class="md-hue-2">
                    <div class="md-toolbar-tools">
                        <h2>
        <span>
         Upload new objects
        </span>
                        </h2>
                    </div>
                </md-toolbar>
                <md-content class="bb-container">


                    <form name="uploadForm" ng-show="!isGetObjectClassRequestPending" ng-submit="uploadObjects()">
                        <!-- FILE UPLOAD -->
                        <div ngf-no-file-drop="">
                            Sorry, file drag/drop is not supported in this browser
                        </div>
                        <div layout="row">
                            <div flex="30" accept="*" class="drop-box" ng-model="fileModel.files" ngf-allow-dir="true"
                                 ngf-drag-over-class="'dragover'" ngf-drop="" ngf-multiple="true" ngf-pattern="'*'"
                                 ngf-select="">
                                Drop files here or click to open select dialog
                            </div>
                            <div flex="70">
                                <ul class="md-body-1">
                                    <li ng-repeat="f in fileModel.files">
                                        {{ f.name }}
                                        <div ng-show="f.uploadProgress.hasError">
                                            <b>{{ f.uploadProgress.hasError }}</b>
                                        </div>
                                        <div ng-show="f.uploadProgress.percentage">
                                            {{ f.uploadProgress.percentage }} % ({{ f.uploadProgress.loaded | bytes }}
                                            / {{ f.uploadProgress.total | bytes }})
                                            <md-icon ng-show="f.uploadProgress.hasError" class="md-mini md-warn"
                                                     md-font-set="material-icons">
                                                error
                                            </md-icon>
                                            <md-icon ng-show="f.uploadProgress.hasSuccess" class="md-mini"
                                                     md-font-set="material-icons">
                                                check
                                            </md-icon>
                                        </div>
                                        <md-progress-linear ng-class="{'md-warn': f.uploadProgress.hasError}"
                                                            md-mode="determinate"
                                                            ng-show="f.uploadProgress.percentage"
                                                            value="{{ f.uploadProgress.percentage }}">
                                        </md-progress-linear>
                                    </li>
                                </ul>
                            </div>
                        </div>


                        <div layout="row" ng-hide="!fileModel.files">
                            <div>
                                <h3>Set retention date</h3>
                                <span>
                        <md-datepicker ng-model="fileModel.retentionDate" md-placeholder="No retention">
                        </md-datepicker></span>
                            </div>
                        </div>

                        <div layout="row" layout-fill ng-hide="!fileModel.files || !objectClassModel.name">
                            <div flex>
                                <h3>Set fields from object class <q>{{ objectClassModel.name }}</q></h3>
                                <span class="md-body-1">(Click on a field to insert suggested default value)</span>


                                <md-list>
                                    <md-list-item ng-repeat="ocField in objectClassModel.metadataFields">

                                        <!--    ############################################ -->
                                        <!--    1) Name -->
                                        <md-input-container flex>
                                            <label>
                                                {{ ocField.name }}
                                            </label>
                                            <input ng-model="fileModel.metadata[ocField.name]"
                                                   placeholder="{{ ocField.default }}"
                                                   ng-click="(!fileModel.metadata[ocField.name]) ? fileModel.metadata[ocField.name] = ocField.default : ''"
                                                   type="text"/>
                                        </md-input-container>
                                    </md-list-item>
                                </md-list>


                            </div>
                        </div>
                        <div layout="row" layout-align="space-between center">
                            <p>
                                <md-button class="md-raised md-warn" type="submit">
                                    <md-icon md-font-set="material-icons">
                                        cloud_upload
                                    </md-icon>
                                    Upload
                                </md-button>

                                <md-button ng-hide="!fileModel.files" class="md-flat" ng-click="fileModel = undefined">
                                    <md-icon md-font-set="material-icons">
                                        clear
                                    </md-icon>
                                    Clear
                                </md-button>
                            </p>
                        </div>

                    </form>
                </md-content>
            </div>

        </div>

        <div flex ng-if="container.isSdos">
            <sdos-details container="container">
            </sdos-details>
        </div>
        <div flex="50" ng-if="container.isMeta">
            <mcm-meta-container>
            </mcm-meta-container>
        </div>


        <div flex="10"></div>

    </div>


    <!-- Card which lists all objects in this container -->
    <div class="md-whiteframe-4dp bb-container" flex="">
        <md-toolbar class="md-hue-2">
            <div class="md-toolbar-tools">
                <h2>
       <span>
        Listing {{ container.metadata.objectCount | numberFormat }} objects in
        <q>{{ container.name }}</q>
       </span>
                </h2>
            </div>
        </md-toolbar>
        <md-content class="bb-container">
            <section layout="row">
                <!-- ###################################################################### --><commit_msg>let's make containers great again!<commit_after><div layout="column">

    <!-- Top buttons -->
    <div layout="row">
        <p>
            <md-button aria-label="Back to container list" class="md-raised bb-pin-button md-primary"
                       ui-sref="fileSystemState()">
                <md-icon md-font-set="material-icons">
                    arrow_back
                </md-icon>
                Back to container list
            </md-button>

            <md-button aria-label="Identify content types"
                       ui-sref="tasksState({container: container.name, task: 'identify_content'})">
                <md-icon md-font-set="material-icons">
                    flag
                </md-icon>
                Identify content types
            </md-button>

            <md-button aria-label="Extract metadata"
                       ui-sref="tasksState({container: container.name, task: 'extract_metadata'})">
                <md-icon md-font-set="material-icons">
                    format_indent_increase
                </md-icon>
                Extract metadata
            </md-button>

            <md-button aria-label="Replicate metadata to warehouse"
                       ui-sref="tasksState({container: container.name, task: 'replicate_metadata'})">
                <md-icon md-font-set="material-icons">
                    content_copy
                </md-icon>
                Replicate metadata to warehouse
            </md-button>

            <md-button aria-label="Dispose old objects"
                       ui-sref="tasksState({container: container.name, task: 'dispose'})">
                <md-icon md-font-set="material-icons">
                    delete_sweep
                </md-icon>
                Dispose old objects
            </md-button>
        </p>
    </div>


    <div layout="row">
        <div flex="" flex ng-if="!container.isMeta">
            <div class="md-whiteframe-4dp bb-container">
                <md-toolbar class="md-hue-2">
                    <div class="md-toolbar-tools">
                        <h2>
        <span>
         Upload new objects
        </span>
                        </h2>
                    </div>
                </md-toolbar>
                <md-content class="bb-container">


                    <form name="uploadForm" ng-show="!isGetObjectClassRequestPending" ng-submit="uploadObjects()">
                        <!-- FILE UPLOAD -->
                        <div ngf-no-file-drop="">
                            Sorry, file drag/drop is not supported in this browser
                        </div>
                        <div layout="row">
                            <div flex="30" accept="*" class="drop-box" ng-model="fileModel.files" ngf-allow-dir="true"
                                 ngf-drag-over-class="'dragover'" ngf-drop="" ngf-multiple="true" ngf-pattern="'*'"
                                 ngf-select="">
                                Drop files here or click to open select dialog
                            </div>
                            <div flex="70">
                                <ul class="md-body-1">
                                    <li ng-repeat="f in fileModel.files">
                                        {{ f.name }}
                                        <div ng-show="f.uploadProgress.hasError">
                                            <b>{{ f.uploadProgress.hasError }}</b>
                                        </div>
                                        <div ng-show="f.uploadProgress.percentage">
                                            {{ f.uploadProgress.percentage }} % ({{ f.uploadProgress.loaded | bytes }}
                                            / {{ f.uploadProgress.total | bytes }})
                                            <md-icon ng-show="f.uploadProgress.hasError" class="md-mini md-warn"
                                                     md-font-set="material-icons">
                                                error
                                            </md-icon>
                                            <md-icon ng-show="f.uploadProgress.hasSuccess" class="md-mini"
                                                     md-font-set="material-icons">
                                                check
                                            </md-icon>
                                        </div>
                                        <md-progress-linear ng-class="{'md-warn': f.uploadProgress.hasError}"
                                                            md-mode="determinate"
                                                            ng-show="f.uploadProgress.percentage"
                                                            value="{{ f.uploadProgress.percentage }}">
                                        </md-progress-linear>
                                    </li>
                                </ul>
                            </div>
                        </div>


                        <div layout="row" ng-hide="!fileModel.files">
                            <div>
                                <h3>Set retention date</h3>
                                <span>
                        <md-datepicker ng-model="fileModel.retentionDate" md-placeholder="No retention">
                        </md-datepicker></span>
                            </div>
                        </div>

                        <div layout="row" layout-fill ng-hide="!fileModel.files || !objectClassModel.name">
                            <div flex>
                                <h3>Set fields from object class <q>{{ objectClassModel.name }}</q></h3>
                                <span class="md-body-1">(Click on a field to insert suggested default value)</span>


                                <md-list>
                                    <md-list-item ng-repeat="ocField in objectClassModel.metadataFields">

                                        <!--    ############################################ -->
                                        <!--    1) Name -->
                                        <md-input-container flex>
                                            <label>
                                                {{ ocField.name }}
                                            </label>
                                            <input ng-model="fileModel.metadata[ocField.name]"
                                                   placeholder="{{ ocField.default }}"
                                                   ng-click="(!fileModel.metadata[ocField.name]) ? fileModel.metadata[ocField.name] = ocField.default : ''"
                                                   type="text"/>
                                        </md-input-container>
                                    </md-list-item>
                                </md-list>


                            </div>
                        </div>
                        <div layout="row" layout-align="space-between center">
                            <p>
                                <md-button class="md-raised md-warn" type="submit">
                                    <md-icon md-font-set="material-icons">
                                        cloud_upload
                                    </md-icon>
                                    Upload
                                </md-button>

                                <md-button ng-hide="!fileModel.files" class="md-flat" ng-click="fileModel = undefined">
                                    <md-icon md-font-set="material-icons">
                                        clear
                                    </md-icon>
                                    Clear
                                </md-button>
                            </p>
                        </div>

                    </form>
                </md-content>
            </div>

        </div>

        <div flex ng-if="container.isSdos">
            <sdos-details container="container">
            </sdos-details>
        </div>
        <div flex="50" ng-if="container.isMeta">
            <mcm-meta-container>
            </mcm-meta-container>
        </div>


        <div flex="10"></div>

    </div>


    <!-- Card which lists all objects in this container -->
    <div class="md-whiteframe-4dp bb-container" flex="">
        <md-toolbar class="md-hue-2">
            <div class="md-toolbar-tools">
                <h2>
       <span>
        Listing {{ container.metadata.objectCount | numberFormat }} {{ container.metadata.objectCount == 1 ? "object" : "objects" }} in
        <q>{{ container.name }}</q>
       </span>
                </h2>
            </div>
        </md-toolbar>
        <md-content class="bb-container">
            <section layout="row">
                <!-- ###################################################################### -->
{'fraction_non_alphanumeric': 0.12357158861752185, 'fraction_numerical': 0.002632758234371499, 'mean_word_length': 0.8426050159975229, 'pattern_counts': {'":': 0, '<': 277, '<?xml version=': 0, '>': 277, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 146, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5007122', 'n_tokens_mistral': 3954, 'n_tokens_neox': 3689, 'n_words': 709}