<commit_before><template>
    <app-layout profile="standard">
        <div v-if="folder">
            <app-box shadow>
                <app-tag icon="folder-open">
                    <app-icon symbol="chevron-right" solid /> root
                    <span v-for="(element, index) in pathElements" :key="index">
                        <app-icon symbol="chevron-right" solid /> {{element}}
                    </span>
                </app-tag>
                <app-spacer />
                <app-more-list>
                    <a class="mdl-menu__item">Add Folder</a>
                    <a class="mdl-menu__item">Add File</a>
                    <a class="mdl-menu__item">Add Annotation</a>
                </app-more-list>
            </app-box>
            <app-box shadow>
                <app-cell :span="2" v-if="folder.parentId" key="has-parent">
                    <app-row align="center">
                        <app-icon size="big" theme="dark" symbol="arrow-alt-circle-up" />
                    </app-row>
                    <app-row align="center">
                        <router-link :to="folder.parentId">
                            parent
                        </router-link>
                    </app-row>
                </app-cell>
                <app-cell :span="2" v-for="subfolder in folder.content.folders" :key="subfolder.id">
                    <app-row align="center">
                        <app-icon size="big" theme="dark" symbol="folder" />
                    </app-row>
                    <app-row align="center">
                        <router-link :to="subfolder.id">
                            {{subfolder.name}}
                        </router-link>
                    </app-row>
                </app-cell>
            </app-box>
            <app-row align="right" gutter>
                <app-button @click="openAddContentDialog" floating>
                    <app-icon symbol="plus" solid />
                </app-button>
            </app-row>
            <add-content-dialog
                    ref="addContentDialog"
                    :parentId="id"
                    @change="retrieve"/>
        </div>
    </app-layout>
</template>

<script>
import AppLayout from "./layouts/app-layout";
import AppButton from "./widgets/app-button";
import AppRow from "./widgets/app-row";
import AppCell from "./widgets/app-cell";
import AppIcon from "./widgets/app-icon";
import AppTag from "./widgets/app-tag";
import AppBox from "./widgets/app-box";
import AppMoreList from "./widgets/app-more-list";
import AppSpacer from "./widgets/app-spacer";
import AddContentDialog from "./add-content-dialog";
<commit_msg>Show documents within folder<commit_after><template>
    <app-layout profile="standard">
        <div v-if="folder">
            <app-box shadow>
                <app-tag icon="folder-open">
                    <app-icon symbol="chevron-right" solid /> root
                    <span v-for="(element, index) in pathElements" :key="index">
                        <app-icon symbol="chevron-right" solid /> {{element}}
                    </span>
                </app-tag>
                <app-spacer />
                <app-more-list>
                    <a class="mdl-menu__item">Add Folder</a>
                    <a class="mdl-menu__item">Add File</a>
                    <a class="mdl-menu__item">Add Annotation</a>
                </app-more-list>
            </app-box>
            <app-box shadow>
                <app-cell :span="2" v-if="folder.parentId" key="has-parent">
                    <app-row align="center">
                        <app-icon size="big" theme="dark" symbol="arrow-alt-circle-up" />
                    </app-row>
                    <app-row align="center">
                        <router-link :to="folder.parentId">
                            parent
                        </router-link>
                    </app-row>
                </app-cell>
                <app-cell :span="2" v-for="subfolder in folder.content.folders" :key="subfolder.id">
                    <app-row align="center">
                        <app-icon size="big" theme="dark" symbol="folder" />
                    </app-row>
                    <app-row align="center">
                        <router-link :to="subfolder.id">
                            {{subfolder.name}}
                        </router-link>
                    </app-row>
                </app-cell>
                <app-cell :span="12" />
                <app-cell :span="2" v-for="document in folder.content.documents" :key="document.id">
                    <app-row align="center">
                        <app-icon size="big" theme="dark" symbol="file" />
                    </app-row>
                    <app-row align="center">
                        <router-link to="#">
                            {{document.name}}
                        </router-link>
                    </app-row>
                </app-cell>
            </app-box>
            <app-row align="right" gutter>
                <app-button @click="openAddContentDialog" floating>
                    <app-icon symbol="plus" solid />
                </app-button>
            </app-row>
            <add-content-dialog
                    ref="addContentDialog"
                    :parentId="id"
                    @change="retrieve"/>
        </div>
    </app-layout>
</template>

<script>
import AppLayout from "./layouts/app-layout";
import AppButton from "./widgets/app-button";
import AppRow from "./widgets/app-row";
import AppCell from "./widgets/app-cell";
import AppIcon from "./widgets/app-icon";
import AppTag from "./widgets/app-tag";
import AppBox from "./widgets/app-box";
import AppMoreList from "./widgets/app-more-list";
import AppSpacer from "./widgets/app-spacer";
import AddContentDialog from "./add-content-dialog";

{'fraction_non_alphanumeric': 0.14465837451013802, 'fraction_numerical': 0.001192707445902198, 'mean_word_length': 1.2858255451713396, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, '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': '4938162', 'n_tokens_mistral': 1630, 'n_tokens_neox': 1524, 'n_words': 306}