<commit_before><?php
use \admin\Module;
use \yii\helpers\Url;

$user = Yii::$app->adminuser->getIdentity();

$this->beginPage()
?><!DOCTYPE html>
<html ng-app="zaa" ng-controller="LayoutMenuController">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title><?= Yii::$app->siteTitle; ?> // {{currentItem.alias}}</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <base href="<?= Url::base(true); ?>/admin" />
    <style type="text/css">
        [ng:cloak],
        [ng-cloak],
        [data-ng-cloak],
        [x-ng-cloak],
        .ng-cloak,
        .x-ng-cloak {
            display: none !important;
        }
    </style>
    <?php $this->head() ?>
    <script>
        var authToken = '<?=$user->getAuthToken();?>';
    </script>

    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>

<body ng-cloak>
<?php $this->beginBody() ?>
<!-- ANGULAR SCRIPTS -->

<script type="text/ng-template" id="modal">
    <div class="modal__wrapper" ng-show="!isModalHidden">
        <div class="modal">
            <button class="btn waves-effect waves-light modal__close btn-floating red" ng-click="isModalHidden = true">
                <i class="material-icons">close</i>
            </button>
            <div class="modal-content" ng-transclude></div>
        </div>
        <div class="modal__background"></div>
    </div>
</script>

<script type="text/ng-template" id="storageFileUpload">
    <div class="fileupload">
        <div class="fileupload__btn btn-flat [ grey lighten-4 ]" ng-click="toggleModal()">
            <i class="material-icons left">attach_file</i>
                    <span>
                        Datei auswählen
                    </span>
        </div>
        <input class="fileupload__path" type="text" ng-model="fileinfo.source_http" disabled placeholder="<- Wählen Sie eine Datei aus. Der Pfad wird hier dargestellt." />

        <modal is-modal-hidden="modal"><storage-file-manager selection="true" /></modal>
    </div>
</script>

<script type="text/ng-template" id="storageImageUpload">
    <div class="imageupload">
        <storage-file-upload ng-model="fileId"></storage-file-upload>

        <div ng-show="originalFileIsRemoved">
            <div class="alert alert--danger">Die Originale Datei wurde entfernt. Sie können keine Filter anwenden ohne original Datei. Laden Sie eine neue Datei hoch und Filter anzuwenden.</div>
        </div>
        <div class="imageupload__filter" ng-show="!originalFileIsRemoved && !noFilters()">
            <label>Filter Auswahl</label>
            <select name="filterId" ng-model="filterId" class="browser-default"><option value="0">Kein Filter</option><option ng-repeat="item in filters" value="{{ item.id }}">{{ item.name }} ({{ item.identifier }})</option></select>
        </div><!--
                --><div class="imageupload__preview">
            <img ng-src="{{imageinfo.source}}" class="responsive-img" />
            <div class="imageupload__loading" ng-hide="!imageLoading">
                <div class="preloader-wrapper big active">
                    <div class="spinner-layer spinner-green-only">
                        <div class="circle-clipper left">
                            <div class="circle"></div>
                        </div><div class="gap-patch">
                            <div class="circle"></div>
                        </div><div class="circle-clipper right">
                            <div class="circle"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>

<script type="text/ng-template" id="reverseFolders">
    <div class="filemanager__folder-button" ng-click="loadFolder(folder.data.id)">
        <i class="material-icons filemanager__folder-icon filemanager__folder-icon--default">folder_open</i>
        <i class="material-icons filemanager__folder-icon filemanager__folder-icon--active">folder</i>

                        <span class="filemanager__folder-name" ng-show="!folder.edit"><span ng-click="loadFolder(folder.data.id)">{{folder.data.name }}</span>
                            <button  ng-click="moveFilesTo(folder.data)" ng-show="showFoldersToMove && currentFolderId != folder.data.id" type="button">{{selectedFiles.length}} Dateien verschieben</button>
                        </span>

        <i class="material-icons filemanager__edit-icon" ng-click="editMode(folder, 'edit')">mode_edit</i>
        <i class="material-icons filemanager__delete-icon" ng-click="editMode(folder, 'remove')">delete</i>
                        
                        <span ng-show="folder.edit">
                            <input type="text" ng-model="folder.data.name" class="filemanager__file-dialog__input"/>
                            <div class="filemanager__file-dialog">
                                <span>Speichern?</span>
                                <span class="btn-floating white">
                                    <i class="material-icons filemanager__file-dialog__icon" ng-click="updateFolder(folder)">check</i>
                                </span>
                                <span class="btn-floating white">
                                    <i class="material-icons filemanager__file-dialog__icon filemanager__cancel-icon" ng-click="folder.edit=!folder.edit">add</i>
                                </span><commit_msg>add a subfolder-class to folders with subfolders<commit_after><?php
use \admin\Module;
use \yii\helpers\Url;

$user = Yii::$app->adminuser->getIdentity();

$this->beginPage()
?><!DOCTYPE html>
<html ng-app="zaa" ng-controller="LayoutMenuController">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title><?= Yii::$app->siteTitle; ?> // {{currentItem.alias}}</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <base href="<?= Url::base(true); ?>/admin" />
    <style type="text/css">
        [ng:cloak],
        [ng-cloak],
        [data-ng-cloak],
        [x-ng-cloak],
        .ng-cloak,
        .x-ng-cloak {
            display: none !important;
        }
    </style>
    <?php $this->head() ?>
    <script>
        var authToken = '<?=$user->getAuthToken();?>';
    </script>

    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>

<body ng-cloak>
<?php $this->beginBody() ?>
<!-- ANGULAR SCRIPTS -->

<script type="text/ng-template" id="modal">
    <div class="modal__wrapper" ng-show="!isModalHidden">
        <div class="modal">
            <button class="btn waves-effect waves-light modal__close btn-floating red" ng-click="isModalHidden = true">
                <i class="material-icons">close</i>
            </button>
            <div class="modal-content" ng-transclude></div>
        </div>
        <div class="modal__background"></div>
    </div>
</script>

<script type="text/ng-template" id="storageFileUpload">
    <div class="fileupload">
        <div class="fileupload__btn btn-flat [ grey lighten-4 ]" ng-click="toggleModal()">
            <i class="material-icons left">attach_file</i>
                    <span>
                        Datei auswählen
                    </span>
        </div>
        <input class="fileupload__path" type="text" ng-model="fileinfo.source_http" disabled placeholder="<- Wählen Sie eine Datei aus. Der Pfad wird hier dargestellt." />

        <modal is-modal-hidden="modal"><storage-file-manager selection="true" /></modal>
    </div>
</script>

<script type="text/ng-template" id="storageImageUpload">
    <div class="imageupload">
        <storage-file-upload ng-model="fileId"></storage-file-upload>

        <div ng-show="originalFileIsRemoved">
            <div class="alert alert--danger">Die Originale Datei wurde entfernt. Sie können keine Filter anwenden ohne original Datei. Laden Sie eine neue Datei hoch und Filter anzuwenden.</div>
        </div>
        <div class="imageupload__filter" ng-show="!originalFileIsRemoved && !noFilters()">
            <label>Filter Auswahl</label>
            <select name="filterId" ng-model="filterId" class="browser-default"><option value="0">Kein Filter</option><option ng-repeat="item in filters" value="{{ item.id }}">{{ item.name }} ({{ item.identifier }})</option></select>
        </div><!--
                --><div class="imageupload__preview">
            <img ng-src="{{imageinfo.source}}" class="responsive-img" />
            <div class="imageupload__loading" ng-hide="!imageLoading">
                <div class="preloader-wrapper big active">
                    <div class="spinner-layer spinner-green-only">
                        <div class="circle-clipper left">
                            <div class="circle"></div>
                        </div><div class="gap-patch">
                            <div class="circle"></div>
                        </div><div class="circle-clipper right">
                            <div class="circle"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>

<script type="text/ng-template" id="reverseFolders">
    <div ng-class="{'filemanager__folder-button--has-subfolders': folder.__items.length > 0 }" class="filemanager__folder-button" ng-click="loadFolder(folder.data.id)">
        <i class="material-icons filemanager__folder-icon filemanager__folder-icon--default">folder_open</i>
        <i class="material-icons filemanager__folder-icon filemanager__folder-icon--active">folder</i>

                        <span class="filemanager__folder-name" ng-show="!folder.edit"><span ng-click="loadFolder(folder.data.id)">{{folder.data.name }}</span>
                            <button  ng-click="moveFilesTo(folder.data)" ng-show="showFoldersToMove && currentFolderId != folder.data.id" type="button">{{selectedFiles.length}} Dateien verschieben</button>
                        </span>

        <i class="material-icons filemanager__edit-icon" ng-click="editMode(folder, 'edit')">mode_edit</i>
        <i class="material-icons filemanager__delete-icon" ng-click="editMode(folder, 'remove')">delete</i>
                        
                        <span ng-show="folder.edit">
                            <input type="text" ng-model="folder.data.name" class="filemanager__file-dialog__input"/>
                            <div class="filemanager__file-dialog">
                                <span>Speichern?</span>
                                <span class="btn-floating white">
                                    <i class="material-icons filemanager__file-dialog__icon" ng-click="updateFolder(folder)">check</i>
                                </span>
                                <span class="btn-floating white">
                                    <i class="material-icons filemanager__file-dialog__icon filemanager__cancel-icon" ng-click="folder.edit=!folder.edit">add</i>
                                </span>
{'fraction_non_alphanumeric': 0.160211110117184, 'fraction_numerical': 0.0008050809553627337, 'mean_word_length': 2.26328079392878, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 264, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7231928', 'n_tokens_mistral': 3260, 'n_tokens_neox': 3163, 'n_words': 580}